Última vez editado
Añadido:
> * '''`icicle-file'''' ('''`C-x C-f'''') -- Trip among files
| Previous: Icicles - Multi-Inputs | Icicles | IciclesIndex | Next: Icicles - Key Completion |
Among the more useful multi-commands are those whose actions take you to some location indicated by the completion candidate. This is the way commands such as ‘icicle-bookmark’, ‘icicle-find-tag’, ‘icicle-Info-goto-node’, and ‘icicle-occur’ work – you can use ‘next’ and so on to move among candidates to choose them to act on, but when you do act on them, Icicles takes you to the places they name.
So just holding down both the Control key and ‘next’ takes you from one place to the next. And ‘C-mouse-2’ takes you directly to the location you click. Typically, ‘C-g’ aborts the trip and puts you back at your starting point, and ‘RET’ ends the trip at the chosen destination.
There are many such Icicles tripping (or navigation or browsing) commands, and they all work similarly. They give you the normal cycling behavior provided by vanilla Emacs commands such as ‘find-tag’ (via `M-.’, `C-u M-.’, ‘M-*’ etc.) or ‘set-mark-command’ (via ‘C-u C-SPC’). But unlike the vanilla Emacs commands, the keys for this cycling are always the same.
More importantly, you need not cycle through all possibilities. You can go directly to particular locations with ‘C-RET’, ‘C-mouse-2’ or using completion. And your input filters the available candidates, as always. And you can, as always, use progressive completion, chipping away, and so on to define your ‘C-next’ trip itinerary using a process of refinement.
Whereas vanilla Emacs gives you some commands that let you use completion to enter a destination and go there, and it gives you other commands that let you cycle among locations, Icicles rolls all of that into one. And you use the same keys, always, to navigate.
Here are some of the Icicles tripping commands:
‘C-f’ is a reminder that the command uses ‘read-file-name’, like ‘find-file’. The ‘a’ indicates that the command completes an autofile bookmark name.)(Use prefix key ‘C-x 4 j’ for other-window commands.)
‘icicle-find-file-tagged’ (‘C-x j t C-f C-f’) – Tagged files (like ‘icicle-fundoc’: match file name and tags dynamically)‘icicle-find-file-all-tags’ (‘C-x j t C-f *’) – Files that have all of a given set of tags‘icicle-find-file-all-tags-regexp’ (`C-x j t C-f % *’) – Files all of whose tags match a regexp‘icicle-find-file-some-tags’ (`C-x j t C-f +’) – Files that have at least one of a given set of tags‘icicle-find-file-some-tags-regexp’ (`C-x j t C-f % +’) – Files that have at least one tag that matches a regexp‘icicle-bookmark-autofile-all-tags’ (‘C-x j t a *’) – Files that have all of a given set of tags‘icicle-bookmark-autofile-all-tags-regexp’ (`C-x j t a % *’) – Files all of whose tags match a regexp‘icicle-bookmark-autofile-some-tags’ (`C-x j t a +’) – Files that have at least one of a given set of tags‘icicle-bookmark-autofile-some-tags-regexp’ (`C-x j t a % +’) – Files that have at least one tag that matches a regexp‘icicle-bookmark-other-window’ (‘C-- C-x r m’) – Trip among bookmarks of all types. (Also bound to ‘C-x 4 j j’ if library bookmark+.el is used.)‘C-x 4 j’ for other-window commands.)‘icicle-bookmark-autofile’ (‘C-x j a’) – Autofile bookmarks‘icicle-bookmark-non-file’ (‘C-x j b’) – Non-file (buffer) bookmarks‘icicle-bookmark-bookmark-list’ (‘C-x j B’) – Bookmark-list bookmarks‘icicle-bookmark-dired’ (‘C-x j d’) – Dired bookmarks.‘icicle-bookmark-file’ (‘C-x j f’) – File bookmarks‘icicle-bookmark-file-this-dir’ (`C-x j . f’) – File bookmarks in the current directory‘icicle-bookmark-gnus’ (‘C-x j g’) – Gnus bookmarks‘icicle-bookmark-info’ (‘C-x j i’) – Info bookmarks‘icicle-bookmark-image’ (‘C-x j M-i’) – Image bookmarks‘icicle-bookmark-desktop’ (‘C-x j K’) – DeskTop bookmarks‘icicle-bookmark-local-file’ (‘C-x j l’) – Local-file bookmarks‘icicle-bookmark-man’ (‘C-x j m’) – man-page bookmarks‘icicle-bookmark-remote-file’ (‘C-x j n’) – Remote-file (Tramp or AngeFtp) bookmarks‘icicle-bookmark-region’ (‘C-x j r’, ‘C-u C-u C-x C-x’) – Region bookmarks‘icicle-bookmark-all-tags’ (C-x j t *’) – Bookmarks having all of a set of tags‘icicle-bookmark-some-tags’ (C-x j t +’) – Bookmarks having some of a set of tags‘icicle-bookmark-all-tags-regexp’ (C-x j t % *’) – Bookmarks having all tags match a regexp‘icicle-bookmark-some-tags-regexp’ (C-x j t % +’) – Bookmarks having some tags that match a regexp‘icicle-bookmark-file-all-tags’ (C-x j t f *’) – File and directory bookmarks having all of a set of tags‘icicle-bookmark-file-all-tags-regexp’ (C-x j t f % *’) – File and directory bookmarks having all tags match a regexp‘icicle-bookmark-file-some-tags’ (C-x j t f +’) – File and directory bookmarks having some of a set of tags‘icicle-bookmark-file-some-tags-regexp’ (C-x j t f % +’) – File and directory bookmarks having some tags that match a regexp‘icicle-bookmark-url’ (‘C-x j u’) – URL bookmarks‘icicle-bookmark-w3m’ (‘C-x j w’) – W3M bookmarks‘icicle-bookmark-temporary’ (‘C-x j x’) – Temporary bookmarks‘icicle-bookmark-bookmark-file’ (‘C-x j y’) – Bookmark-file bookmarks‘icicle-bookmark-autonamed’ (`C-x j #’) – Autonamed bookmarks‘icicle-bookmark-autonamed-this-buffer’ (`C-x j , #’) – Autonamed bookmarks in the current buffer‘icicle-bookmark-this-buffer’ (`C-x j , ,’) – Bookmarks for the current buffer‘icicle-bookmark-specific-buffers’ (`C-x j = b’) – Bookmarks for specific buffers‘icicle-bookmark-specific-files’ (`C-x j = f’) – Bookmarks for specific files‘icicle-buffer’ (‘C-x b’) – Trip among buffers‘icicle-compilation-search’ (`C-c `’) – Trip among ‘grep’ hits‘icicle-dired’ – Trip among directories in Dired mode‘icicle-file’ (‘C-x C-f’) – Trip among files‘icicle-find-file’ (‘C-x C-f’) – Trip among files‘icicle-find-file-absolute’ (‘C-u C-x C-f’) – Trip among files‘icicle-find-file-in-tags-table’ – Trip among the files listed in the current tags table (think “project”)‘icicle-find-file-read-only’ (‘C-x C-r’) – Visit files in read-only mode (‘C-u’ to flip)‘icicle-find-first-tag’ (`C-x 4 .’) – Trip among tag hits‘icicle-find-tag’ (`M-.’) – Trip among tag hits‘icicle-goto-global-marker’ (‘C-- C-x C-SPC’) – Trip among global markers‘icicle-goto-marker’ (‘C-- C-SPC’) – Trip among local markers‘icicle-imenu’ (`C-c =’) – Trip among definitions (‘icicle-imenu-full’ to search full definitions)‘*-full’ versions of each to search full definitions.)‘icicle-imenu-command’ – Emacs commands‘icicle-imenu-face’ – Emacs faces‘icicle-imenu-key-explicit-map’ – Emacs keys defined in explicit maps‘icicle-imenu-key-implicit-map’ – Emacs keys defined in implicit maps (e.g. ‘global-set-key’)‘icicle-imenu-macro’ – Lisp macros‘icicle-imenu-non-interactive-function’ – Lisp non-command functions‘icicle-imenu-user-option’ – Emacs user options‘icicle-imenu-variable’ – Lisp variables‘icicle-Info-goto-node’ (‘g’ in Info)– Trip among Info nodes‘icicle-Info-index’ (‘i’ in Info) – Trip among Info nodes‘icicle-Info-menu’ (‘m’ in Info)– Trip among Info nodes‘icicle-locate’ , ‘icicle-locate-file’ – Trip among files‘icicle-occur’ (`C-c '’) – Trip among ‘occur’ hits (‘icicle-search’ among single-line hits)‘icicle-recent-file’ – Trip among recent files‘icicle-search’ (`C-c `’) – Trip among regexp search hits‘icicles-search-bookmarks-together’ (`C-u C-c `’), ‘icicles-search-bookmark’ – Search multiple bookmarks‘icicle-search-bookmark-list-bookmark’ – ‘*Bookmark List*’ bookmarks‘icicle-search-dired-bookmark’ – Dired bookmarks‘icicle-search-file-bookmark’ – File bookmarks‘icicle-search-gnus-bookmark’ – Gnus bookmarks‘icicle-search-info-bookmark’ – Info bookmarks‘icicle-search-local-file-bookmark’ – Local-file bookmarks‘icicle-search-man-bookmark’ – ‘man’-page bookmarks‘icicle-search-non-file-bookmark’ – Non-file (buffer) bookmarks‘icicle-search-region-bookmark’ – Region bookmarks‘icicle-search-remote-file-bookmark’ – Remote-file bookmarks‘icicle-search-url-bookmark’ – URL bookmarks‘icicle-search-char-property’ – Trip among buffer strings with some text property or overlay property‘icicle-search-dired-marked-recursive’ – Search marked files in Dired‘icicle-search-file’ – Search multiple files‘icicle-search-ibuffer-marked’ – Search marked buffers in Ibuffer‘icicle-search-keywords’ (`C-c ^’) – Trip among keyword search hits‘icicle-search-overlay-property’ – Trip among buffer strings with some overlay property‘icicle-search-pages’ – Search Emacs pages‘icicle-search-paragraphs’ – Search Emacs paragraphs‘icicle-search-sentences’ – Search sentences as contexts‘icicle-search-text-property’ (`C-c "’) – Trip among buffer strings with some text property‘icicle-search-thing’ — Search ThingAtPoint things‘icicle-search-word’ (`C-c $’) – Search whole-word hits‘icicle-search-xml-element’ – Search XML elements‘icicle-search-xml-element-text-node’ – Search text() nodes of XML elements‘icicle-select-frame’ (‘C-x 5 o’) – Trip among frames, by name‘icicle-select-window’ (‘C-0 C-x o’) – Trip among windows, by buffer name(You need library Bookmark+ for ‘icicle-search-bookmark-list-marked’. You need library Dired+ for ‘icicle-search-dired-marked-recursive’.)
‘icicle-bookmark-region-other-window’ activates the bookmarked region (highlighting it) when you visit it, if you use TransientMarkMode (or, e.g., DeleteSelectionMode).
Starting with Emacs 22, most Icicles commands that have single positions as their trip visits (e.g. ‘icicle-bookmark’, ‘icicle-Info-goto-node’, ‘icicle-goto-marker’, ‘icicle-find-tag’) highlight those positions temporarily as they are visited. Except for the Icicles search commands, this highlighting is provided by library crosshairs.el. If crosshairs.el and the libraries it requires are not in your ‘load-path’, then no such highlighting occurs. See CrosshairHighlighting. Here’s a screenshot showing the effect:
The commands that employ Icicles search benefit from its highlighting when you visit a search hit. Here’s a screenshot to show the effect. The current location is in pink; other hits are in cyan:
This page has additional screenshots for Icicles search commands: Icicles - Search Commands, Overview.
See Also:
‘icicle-find-file’, ‘icicle-find-file-absolute’, ‘icicle-find-file-in-tags-table’, ‘icicle-locate’, ‘icicle-locate-file’, and ‘icicle-recent-file’.‘icicle-find-first-tag’ and ‘icicle-find-tag’.‘icicle-Info-goto-node’, ‘icicle-Info-index’, and ‘icicle-Info-menu’.‘icicle-occur’ and ‘icicle-search’.‘icicle-compilation-search’, ‘icicle-imenu*’ commands, ‘icicle-search-char-property’, ‘icicle-search-keywords’, ‘icicle-search-overlay-property’, and ‘icicle-search-text-property’.| Previous: Icicles - Multi-Inputs | Icicles | IciclesIndex | Next: Icicles - Key Completion |
DrewsElispLibraries referenced here: Lisp:icicles.el
CategoryMenus CategoryCommands CategoryBufferSwitching CategoryCompletion CategoryDocumentation CategoryHelp CategoryProgrammerUtils CategoryCode