Hot answers tagged

327

Linux and Windows Just highlight it in the dropdown list (using the arrow keys, or your mouse cursor) and press delete on your keyboard. Note that you may have to press shift+delete in some cases, like if the autocomplete is in the address bar (URL) field. Mac Start typing so that the unwanted autocomplete URL comes up. Hit fn+shift+delete if you have a ...


124

You can remove entries from the list using the following steps: Select the "Username" field and make sure it is blank Press ↓ on your keyboard, a list of all of the "remembered" entries should appear. Using ↑ & ↓ highlight an entry you would like to delete. Press delete. (Note that you may need to use shift+delete, fn+delete, ctrl+delete ...


62

Follow the next steps: Clear the omnibar Start writing the address that gives you the unwanted history item As soon as the history item apears below the omnibar use the down arrow to select it Press Shift+Del (or Fn+Shift+Del if on a Mac)


50

I have found the solution to my problem in the ZSH documentation. Oh-my-zsh seems to map the ↑ and ↓ Keys to something like bindkey '\e[A' history-search-backward bindkey '\e[B' history-search-forward Which yields the exact behavior I described above. The ZSH Documentation describes the behavior of history-search-backward as Search backward in the ...


41

Enable the mark-symlinked-directories option for readline. Edit ~/.inputrc: $include /etc/inputrc set mark-symlinked-directories on Press C-x, C-r to reload the settings. See section READLINE in the manual page of bash for further documentation.


33

echo "set mark-symlinked-directories on" >> ~/.inputrc Ctrl+x, then Ctrl+r via Ubuntu Forums - Strange bash shell tab completion behaviour


28

Try this: Open the Address Book. Select Collected Addresses. Select the entries to delete. Type Del to delete the entries. Ensure no explicit entries for the obsolete email address exist in Personal Address Book.


24

On a Macintosh, type enough text to bring up the autofill entry you would like to remove and use the arrow keys to highlight the entry you would like to delete, then do fn+shift+delete and the entry will be deleted.


24

As you're typing the v i ... in the location bar and the autocomplete menu pops up underneath, use the arrow keys to select/highlight the unwanted entry, then press the DEL key to remove it from the list.


19

Add this to your .vimrc: set wildmenu set wildmode=list:longest


14

Hover the mouse cursor over each one and press the specified key. Most browsers: Del Chrome: Shift + Del Mac + Chrome: Fn + Shift + Del In some browsers, this also works for removing history entries from the address bar.


14

Go to the Chrome menu on the browser toolbar Click Settings Click Show advanced settings (on the bottom) In the Privacy section, deselect the "Use a prediction service to help complete searches and URLs typed in the address bar" checkbox Keep in mind that the address bar shows matches from your browsing history, in addition to predictions. If you don't ...


13

Download bash_completion and source it from your .bashrc. Then put contrib/completion/git-completion.bash from the git distribution into bash_completion.d. Alternatively you can install it via MacPorts.


13

You can use the glob-expand-word function, from man bash: The word before point is treated as a pattern for pathname expansion, and the list of matching file names is inserted, replacing the word. If a numeric argument is supplied, an asterisk is appended before pathname expansion. Add something like this to your ~/.inputrc: Control-x: glob-expand-word ...


13

I use bind 'TAB:menu-complete' to achieve it


12

I usually type Ctrl-X Ctrl-F like I would open a file, but instead of pressing RET I press Ctrl-A Ctrl-K Ctrl-G to copy the path and then paste it into the buffer I was editing with Ctrl-Y. I don't need this often enough, but if I really wanted a better solution, I would definitely use Trey Jackson's solution using hippie-expand. I thought about how hippie-...


12

In bash, the readline capability is called glob-expand-word and is bound to CtrlX* by default.


11

I think you can just add the relevant new keywords to the langs.xml file within the Notepad++ directory (back it up first, the usual warnings, etc). But, I believe this will do syntax highlighting only. So, if you then go in to the plugins\APIs subdirectory you can edit the relevant .xml to also provide auto completion.


10

Disabling tilde expansion is quick and painless. Open up ~/.bashrc and insert this: _expand() { return 0; } This will override the expand function from /etc/bash_completion. I'd recommend commenting on what it does above the function in case you want the expansion back in the future. Changes will take effect in a new instance.


10

What Vim does in response to your typing the <Enter> key while using insert completion depends on the state of the completion menu. The behavior of the menu is described here: :help ins-completion-menu and the behavior of various keys when using insert completion is described in the next section, :help popupmenu-keys where it explains that the ...


10

To get first completion and a listing you can add the following to bashrc bind 'set show-all-if-ambiguous on' bind 'TAB:menu-complete' show-all-if-ambiguous: This alters the default behavior of the completion functions. If set to β€˜on’, words which have more than one possible completion cause the matches to be listed immediately instead of ringing ...


10

Add this to your vimrc to auto close the preview window when you exit the insert mode: autocmd InsertLeave * if pumvisible() == 0|pclose|endif


10

I wanted the same behaviour for zsh with oh-my-zsh installed and found plugin history-substring-search. I achieved the same behaviour described above by adding the plugin to my ~/.zshrc: plugins=(git brew npm history-substring-search) I guess this plugin did not exist back when this question was raised. Just an alternate way to achieve the same thing.


10

I have been using this for some time now: function! InsertTabWrapper() let col = col('.') - 1 if !col || getline('.')[col - 1] !~ '\k' return "\<tab>" else return "\<c-p>" endif endfunction inoremap <tab> <c-r>=InsertTabWrapper()<cr> This lets you use the tab key normally when the cursor is at ...


9

Try Hippie Expand, which as one of it's possibilities has 'try-complete-file-name. You can change the order and list of expansion functions hippie expand will use to favor expanding the file name. Or, you could even write a custom wrapper that would only do the file name expansion. Something like: (global-set-key (kbd "C-M-/") 'my-expand-file-name-at-...


9

Tab completion should work in PuTTY. Tab completion is provided by the shell you're running on the server, not by PuTTY itself. Please edit your question and provide more details including what shell you're using and what specifically happens when you try to use tab completion.


9

I got it, finally. It was hiding in /etc/bash_completions which - ironically - I overlooked as it didn't appear on my filename completions. The helpful bash_completions thinks that gv means ghostview so it will only allow me to complete filenames that it expects ghostview can handle: complete -f -X '!*.@(@(?(e)ps|?(E)PS|pdf|PDF)?' gv ggv kghostview I ...


9

As others have mentioned, the steps in the top-voted answer don't actually work in many cases. This is because Chrome stores autocomplete information for login-related fields separately, and a bug (which is two years old and shows no sign of being fixed) prevents that class of autocomplete info from being cleared with DELETE (or any other combination of ...


9

In Bash, it performs the readline function complete-into-braces. Brace expansion is a useful way of abbreviating a reference to multiple files. For example: ls -l /path/to/dir/*.{c,h} would list all the files that end in ".c" or ".h". From man bash: complete-into-braces (M-{) Perform filename completion and insert the list of ...


8

You can use abbreviations in your ~/.vimrc file for just a couple of words: :abbr supe superuser :abbr autoc autocomplete :abbr que question These will auto-complete after pressing Space or Enter. So if you typed que then pressed Space or Enter it would finish the word "question" for you. If you are adding a lot and want this interface: You can use ...



Only top voted, non community-wiki answers of a minimum length are eligible