6 ms·
This reminds me of a problem I face. I write documents in LaTeX all the time, and my preferred text editor is vim. In vim, CTRL-W will remove the last word in i
by mixedmath 11y ago
This reminds me of a problem I face. I write documents in LaTeX all the time, and my preferred text editor is vim. In vim, CTRL-W will remove the last word in insert mode. This has become second nature to me, since I frequently find it faster to retype a whole word than to perform the correct number of backspaces to correct a typo midway.
What this really means is that I close browser windows with great frequency whenever I'm typing something and make a typo, and hit CTRL-W.
- semi-extrinsic 11y agoYou should use pentadactyl then ;) Close browser windows with :t, Ctrl-w does nothing, clicking in a textarea and doing Ctrl-i opens a gvim window where you can edit your text properly. And much more.
- ttrmw 11y agoAs another option, Vimperator also allows vim like editing in textareas with Ctrl+t and supports Firefox >30
- simendsjo 11y agoI even did this during a test running in a browser at school. Luckily it was possible to reopen it and nobody noticed. I've done this so many times that I have some setup always running vim in the background in a tmux session only a keypress away. Super+Shift+v then type <leader>y and paste in the browser.
- mlrtime 11y agoEven more annoying is using virtual box with a linux guest and resetting the VM when you wanted to recall a command (CTRL-r).
- 0942v8653 11y agoWell, I never use right control :) There's no reason to keep the host key as right control if it causes problems like that. You can set it to something different in VirtualBox's global preferences (Control-G) > Input > Virtual Machine. Also, you may prefer to run your VMs headless with vboxheadless (man vboxheadless). May save you some time and frustration, and video memory. Then ssh into them by going into the guest settings and forwarding port 22 to a host port (I use 12322).
- stephengillie 11y agoWhy can't we rebind this key to another key? Why not make CTRL+Q or CTRL+B remove the last word. Something which really grinds my gears is when software has non-rebindable hotkeys. Why are keybinds hardcoded? We can change our controls in games from WASD to ESDF. Why can't we change our copy key in Windows from CTRL+C to CTRL+L, without using 3rd party software? Having written my own applications on occasion, I know this isn't that difficult. So why is it so uncommon?
- philippotto 11y agoI guess, this is often not prioritized because the majority wouldn't use the configurable keybindings. For what it's worth: I use AutoHotkey (on Windows) for configuring system wide shortcuts. Official homepage: http://www.autohotkey.com/ http://www.autohotkey.com/ My own ahk files: https://github.com/philippotto/shortcut-collection https://github.com/philippotto/shortcut-collection
- minot 11y agoalso control + q would quit many sane applications
- stephengillie 11y agoAnother hotkey we could rebind! How about we change it to Alt+Q?
- skolor 11y agoAt least in vim, you can remap just about anything that you want to. The reason the feature doesn't get included as often is because of exactly this. Even someone who could make use of the feature, and is annoyed by the current keybindings, doesn't take advantage of re-binding. The reason it is available on video games, on the other hand, is because its necessary for controller support, which a large enough portion of the video game community uses for it to have high demand.
- wmil 11y agoRebinding system shortcuts makes life difficult for application developers. They have no idea if they can use CTRL+L for their shortcuts or not. In-app rebinding also makes life difficult for the developer in the future, because any new feature added may have it's key rebound by some users. Look at Emacs. Technically users can rebind things, but it's easier to learn the defaults since every other key is already bound to something else. Generally everything is rebindable internally, but users are only offered compatibility modes with other popular software.
- baddox 11y agoI have the same issue with screen sessions. I use Ctrl-a to move to the beginning of the line (an Emacs shortcut, also implemented in lots of shells), but screen's default command prefix is Ctrl-a. Of course, that one's simple to change.
- bm98 11y agoCtrl-a Ctrl-k in Emacs moves to the beginning of the line and then erases the line. In screen, that key combination kills the current window! At some point, screen added a "Really kill this window [y/n]" which was a terrific enhancement...
- baddox 11y agoHa, I don't remember running into that exactly. I have found several lines in my local text editor where I type "a" at the beginning because I mistakenly think I'm in screen, so I type "Ctrl-a a" instead of just "Ctrl-a".
- jweather 11y agoChange screen's hotkey to something else. I like Ctrl-b.
- bcjordan 11y agoBtw, to delete a single word on OS X, alt + backspace. For Windows, ctrl + backspace.
- karlb 11y ago…and on a Mac, to delete to the start of the line, type CMD + backspace. I started using this shortcut, and the parent one, about two weeks ago. They are just now becoming muscle memory, and I find them very useful.
- merijnv 11y agoFYI, in OSX a lot of emacs/shell shortcuts work in textboxes/-fields too. e.g., ctrl-a, ctrl-e, and ctrl-k respectively for beginning of line, end of line and deleting to end of line.
- SpaceManNabs 11y agoThanks for the tip. I have this problem all the time.
- jamestomasino 11y agoOr accidentally clearing a web form that you painstakingly filled out because of ESC muscle memory. :(
- not_with_retard 11y agohttps://chrome.google.com/webstore/detail/lazarus-form-recovery/loljledaigphbcpfhfmgopdkppkifgno?hl=en https://chrome.google.com/webstore/detail/lazarus-form-recov... https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-recovery/ https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-... You're welcome! ^_^
- rocky1138 11y agoWhat about attempting CTRL+Z directly after clearing it? It might undo your clear.
- gprasanth 11y agoTaiga does this. Hate it.
- scrollaway 11y agoThe Lazarus Form Recovery addon, recommended by a dead comment below, looks really good - compatible with both Firefox and Chrome.
- pandler 11y agoI do this all the time. I also accidentally try to save web pages with cmd+s constantly.
- yAnonymous 11y agoYou could deactivate the shortcut on that page (or everywhere) with Greasemonkey. http://userscripts-mirror.org/scripts/show/66162 http://userscripts-mirror.org/scripts/show/66162
- hobarrera 11y agoDisabling it when forms have focus would be useful. But this makes it a real pain to close a tab.
- deleted 11y ago[deleted]