Tag Info

Hot answers tagged

106

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+backspace if you ...


76

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 ...


32

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)


23

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 ...


22

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


18

Enable the mark-symlinked-directories option for readline. Edit ~/.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.


14

In Thunderbird 3, open the Address Book. There's a section called "Collected Addresses". Delete entries from there. Also (this is what tripped me up), make sure you don't have an explicit entry for the obsolete email address in "Personal Address Book".


12

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.


10

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


10

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

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 ...


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 ...


9

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 ...


8

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 ...


8

The tilde is not an alias, it's part of bash's shell expansion (just like *.txt or $((1 + 2))). Bash tilde expansion supports the following tilde-prefixes: ~ The value of $HOME ~/foo $HOME/foo ~fred/foo The subdirectory foo of the home directory of the user fred ~+/foo $PWD/foo ~-/foo ${OLDPWD-'~-'}/foo ~N ...


8

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


8

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 ...


8

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 ...


8

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-/") ...


8

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.


7

Autocompletion for git is not a bash-builtin functionality, but an additional "third-party plugin" using the basic autocomplete system of the shell, which you happen to have installed (AFAIK it is a part of the git install). For zsh there either exists no similar autocomplete file or you don't have it installed. Nevertheless, this says nothing about the ...


7

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.


7

The short answer is no. The longer better answer is that since you are on Windows 7, you should move to using powershell instead of cmd which will autocomplete using /.


7

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 ...


7

In the browser bar, go to the website about:config. You may need to click a button before you see the table of available properties. Use the Search field to find a preference called browser.urlbar.autoFill. It will likely be set to true. Set it to false.


6

You haven't stated which browser you are using, but this is achievable using greasemonkey user scripts, which are available for a number of browsers. Preventing the autocompletion of fields and saving passwords is achieved using the autocomplete="no" attribute on form elements. This greasemonkey script removes the attribute from form fields allowing them ...


6

Bash has a built-in command compgen which can help you a lot. For example, if you want to know which dirs would be auto-completed when you type cd /etc/s<TAB>: $ compgen -d /etc/s /etc/security /etc/sgml /etc/skel /etc/ssh /etc/ssl /etc/subversion /etc/sudoers.d /etc/sysctl.d $ Then, the following command would tell you which dir you'll go into by ...


6

I don't think that it's possible to do within Emacs. But you can do this with xmodmap. Just create ~/.shift_on: clear Shift add Shift = Shift_R keycode 50 = U03DE NoSymbol U03DE and ~/.shift_off: keycode 50 = Shift_L add Shift = Shift_L Shift_R Calling xmodmap ~/.shift_on will make the shift key insert Ϟ - a regular character that you can bind to. ...


6

Autocomplete feature is disabled by default, but a simple Preferences setup will get you using the new auto-complete feature in no time at all. Go to Settings -> Preferences, and switch to the Backup/Auto-competion tab. At the bottom of that screen you’ll see where you can enable auto-completion, and you can optionally turn on the “show function parameters” ...


6

The Chrome Omnibar predicts web domains and web searches as you type into it. Once you've visited a site several times, it should start predicting that domain as you begin typing it. This is somewhat different from other browsers, which search your history for matching patterns (auto-complete). I think this is a trade-off, which makes Chrome more ...



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