![]() TAB ( ivy-partial-or-done)Īttempts partial completion, extending current input as much as C-j ( ivy-alt-done) When completing file names, selects the current directoryĬandidate and starts a new completion session there. Is available, there is no difference between M-o and C-m. M-o ( ivy-dispatching-done) Presents valid actions from which to choose. This delayed flexibility and customization of actionsĬ-m or RET ( ivy-done) Calls the default action and then exits the minibuffer. No need to exit the interface if unsure whichĪction to run. To call on the selected candidate can be delayed until after the Custom actions can be added to this interface. ForĮxample, when viewing a list of files, one action could open it forĮditing, one to view it, another to invoke a special function, and so This "calling an action" operates on the selected candidate. Ivy can offer several actions from which to choose which action to This discoverability minimizes exiting Ivy interface Matter of C-o in the minibuffer while in the midst of the Ivy So discovering even seldom used keys is simply a With short documentation strings and highlighted one-keyĬompletions. Opens up within an expanded minibuffer area. C-o in the minibuffer displays a hydra menu. Discoverability Ivy displays easily discoverable commands through the hydraįacility. M-o prefix can be uniformly used with characters like d to M-o d jumps to that function's definition in the code. RET usesĬounsel-describe-function to describe the function, whereas Or take the customization of actions, sayĪfter the candidate function is selected. Selected candidate with >, instead of highlighting the selectedĬandidate with the ivy-current-match face (see ForĮxample, adding a custom display function that points to a Interfaces of completion to tailor the selection process. Customizability Customizability is about being able to use different methods and Uses easy-to-examine global variables avoids needlessĬomplications with branch-introducing custom macros. SPC inserts a space, for example, instead of beingīound to the more complex minibuffer-complete-word. Minibuffer area behaves as close to fundamental-mode as It is alsoĪbout the code interface to extend Ivy's functionality. ![]() Simplicity Simplicity is about Ivy's behavior in the minibuffer. Customize ivy-height to adjust the number ofĬandidate matches displayed in the minibuffer. Ivy shows the completionĭefaults, the number of matches, and 10 candidate matches below Minimalism Uncluttered minibuffer is minimalism. Ivy strives for minimalism, simplicity, customizability and When Emacs promptsįor a string from a list of several possible choices, Ivy springs intoĪction to assist in narrowing and picking the right string from a vast Ivy is for quick and easy selection from a list. Example - define a new command with several actions Example - add two actions to each command Saving the current completion session to a buffer Key bindings that alter the minibuffer input ![]() Key bindings for multiple selections and actions, keep minibuffer open Key bindings for single selection, action, then exit minibuffer
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |