* Best way to find and jump to tags and elements
@ 2015-01-10 22:43 Sayth Renshaw
2015-01-10 23:30 ` Sayth Renshaw
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Sayth Renshaw @ 2015-01-10 22:43 UTC (permalink / raw)
To: help-gnu-emacs
Hi
Using emacs 24.4.
What is the best way to search and jump to tags and elements especially in html and css.
so if I had a div id in my html #chocolate and I want to edit the css associated with this in its separate styles/styles.css file what would be the best way.
Is there a CTRL-P fuzzy match type search option to jump around?
Many thanks
Sayth
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Best way to find and jump to tags and elements
2015-01-10 22:43 Best way to find and jump to tags and elements Sayth Renshaw
@ 2015-01-10 23:30 ` Sayth Renshaw
2015-01-11 15:21 ` Oleksandr Gavenko
2015-01-19 11:01 ` Sayth Renshaw
2015-01-20 0:25 ` Robert Thorpe
2 siblings, 1 reply; 5+ messages in thread
From: Sayth Renshaw @ 2015-01-10 23:30 UTC (permalink / raw)
To: help-gnu-emacs
On Sunday, 11 January 2015 09:43:17 UTC+11, Sayth Renshaw wrote:
> Hi
>
> Using emacs 24.4.
>
> What is the best way to search and jump to tags and elements especially in html and css.
>
> so if I had a div id in my html #chocolate and I want to edit the css associated with this in its separate styles/styles.css file what would be the best way.
>
> Is there a CTRL-P fuzzy match type search option to jump around?
>
> Many thanks
>
> Sayth
Well the new isearch definetely does this for in document searching.
http://ergoemacs.org/emacs/emacs_search_current_word.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Best way to find and jump to tags and elements
2015-01-10 23:30 ` Sayth Renshaw
@ 2015-01-11 15:21 ` Oleksandr Gavenko
0 siblings, 0 replies; 5+ messages in thread
From: Oleksandr Gavenko @ 2015-01-11 15:21 UTC (permalink / raw)
To: help-gnu-emacs
On 2015-01-11, Sayth Renshaw wrote:
> Well the new isearch definetely does this for in document searching.
>
> http://ergoemacs.org/emacs/emacs_search_current_word.html
Yes, 【Alt+s .】 isearch-forward-symbol-at-point.
Even better - it does mini-refactoring tool!
After "Alt+s ." type M-% and you will prompted to replace exactly symbol (with
implicit surrounding "\<...\>" regex) without need to type that word!!!
It is a win for Emacs 24.4!!
--
Best regards!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Best way to find and jump to tags and elements
2015-01-10 22:43 Best way to find and jump to tags and elements Sayth Renshaw
2015-01-10 23:30 ` Sayth Renshaw
@ 2015-01-19 11:01 ` Sayth Renshaw
2015-01-20 0:25 ` Robert Thorpe
2 siblings, 0 replies; 5+ messages in thread
From: Sayth Renshaw @ 2015-01-19 11:01 UTC (permalink / raw)
To: help-gnu-emacs
Thanks that was really handy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Best way to find and jump to tags and elements
2015-01-10 22:43 Best way to find and jump to tags and elements Sayth Renshaw
2015-01-10 23:30 ` Sayth Renshaw
2015-01-19 11:01 ` Sayth Renshaw
@ 2015-01-20 0:25 ` Robert Thorpe
2 siblings, 0 replies; 5+ messages in thread
From: Robert Thorpe @ 2015-01-20 0:25 UTC (permalink / raw)
To: Sayth Renshaw; +Cc: help-gnu-emacs
Sayth Renshaw <flebber.crue@gmail.com> writes:
> Using emacs 24.4.
>
> What is the best way to search and jump to tags and elements especially in html and css.
>
> so if I had a div id in my html #chocolate and I want to edit the css associated with this in its separate styles/styles.css file what would be the best way.
>
> Is there a CTRL-P fuzzy match type search option to jump around?
Oleksandr Gavenko already mentioned 'M-s .' there's also 'M-s _' which
prompts you for a symbol in the minibuffer.
The 'etags' program understands HTML. You can use it to create a tags
file which can locate elements across many files. See the manual on
Tags, 'C-x C-e' the following to get there: (info "(emacs) Tags") . The
'M-.' command can then be used to navigate between files.
If you're using HTML mode here's another tip. 'C-c TAB' will do a
cheesy "render" of the HTML. It makes all the HTML tags invisible and
just shows the text; making bits of it bold and italic as
necessary. 'C-c TAB' again undoes this. In code that has a lot of tags
but little content this can be useful for navigation. It's not
bulletproof and often shows javascript as though it were content. It's
useful though, I often move somewhere by doing C-c TAB and using M-{ and
M-} to jump through paragraphs, then I do C-c TAB again.
BR,
Robert Thorpe
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-20 0:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-10 22:43 Best way to find and jump to tags and elements Sayth Renshaw
2015-01-10 23:30 ` Sayth Renshaw
2015-01-11 15:21 ` Oleksandr Gavenko
2015-01-19 11:01 ` Sayth Renshaw
2015-01-20 0:25 ` Robert Thorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).