Iterm autocomplete escape11/21/2023 ![]() I had a brilliant idea of mapping, in the Keys preference pane for the app,ĬTRL-N to Select Menu Item… » Open Autocomplete… so that it mimics Vim. If you make a selection and press tab, your autocomplete will be extended with the selection. If you make a selection and press return, it will be entered for you. The filter can be reset by pressing backspace. The list can be filtered by typing a subsequence. An autocomplete window opens showing the top 20 choices for words beginning what what you have entered. To use autocomplete, type the beginning of a word and then press cmd. The built-in key combination isĬMD- (command + semicolon). Here’s the description of the feature from iTerm’s Highlights for New Usersguide:Īny text that exists in a tab or its scrollback buffer can be autocompleted in that tab. You can achieve the same functionality in iTerm2 without any special configuration. It all happens very quickly, and is almost always faster than typing the string in its entirety. ![]() If it’s the only match it’ll complete the string, otherwise I can choose which string I want, or type another letter or two and try again. For example, if I have a function called “agileadam_foo”, I can quickly retype that string by typing part of the string (e.g., agi) followed byĬTRL-N. It pops open a menu where I can choose the match I want. Personally, I rely heavily on omni and generic completion in Vim.ĬTRL-N is the key combination I use after I start typing a word that I know exists somewhere else in the buffer. ![]() If you use any auto-completion you know how important it is to your workflow. This is a really quick tip that could save you tons of time in iTerm2. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |