Questions tagged [key-binding]
The key-binding tag has no usage guidance.
218
questions
0
votes
1
answer
46
views
How to select text by paragraph in VS Code with a keybinding?
I've found how to customize a keybinding for jumping to the closest empty line here.
But I wonder if I can, in the same way, set a keybinding for selection of paragraph or to the next empty line. I'd ...
1
vote
1
answer
52
views
Can't input text in Bash function called with key binding
I have added a simple function to my .bashrc file and bound it to a key combination using the bind command. The function prompts the user for input using read, like this:
myscript() {
read -p &...
0
votes
1
answer
33
views
How to remove/reset a key binding hook in windows 10
I am trying to install the keyboard assistant "Langover" (that converts typing in the wrong layouts, e.g. from cyrillic 'руддщ' = hello or vice versa 'ghbdtn' = привет. It is activated by a ...
1
vote
1
answer
54
views
How can I unset Ctrl+L in Windows PowerShell?
I am trying a very simple thing. I have a neovim config in which I use Ctrl + L for something. In PowerShell it's already mapped to the clear command.
How can I unset this keybind? I am very habitual ...
1
vote
0
answers
36
views
How to make zsh ignore undefined escape sequences?
Is there a way to make zsh ignore all undefined escape sequences, including things like F1 which is ^[[15~ and usually causes a ~ to be inserted.
To be more precise, I'd like all characters that are ...
1
vote
0
answers
126
views
How can I get capslock recognized as a keybind for wow, or remap it in macos?
Long time wow player here. I've recently made the transition from a windows machine to my first mac.
All my keybinds came along with me when i transferred the data. The in-game GUI does show that my ...
0
votes
0
answers
19
views
VS Code, key bindings in Windows Sandbox
I have noticed the following when typing inside Visual Studio Code:
On normal Windows host OS: Ctrl key is as normal, Ctrl-<Left/Right> will jump back or forward a word.
On a remote Windows ...
0
votes
0
answers
134
views
Struggle to bind certain keyboard shortcuts to windows tiling on Linux Mint XFCE
I use Linux Mint 21 xfce, as a dualboot on a laptop with native Win10 (Acer Aspire E571). I struggle to make certain window displacement shortcuts work. In "Windows Manager" I've set "...
1
vote
1
answer
125
views
How do you bind double tap key in Zsh only if the input is empty?
I am trying to bind double tab to clear command only if input in terminal is empty in zsh shell.
What I have achieved up to this point is always delete with double tab but I want to add the condition ...
0
votes
0
answers
67
views
Rebinding caps lock to hyper (ctrl+alt+super) on hold and esc on tap (linux)
Title says most of it. I would prefer this to be done through xmodmap, although I understand that this is closer to a macro than a keybind. I've found some things online, but nothing has worked or ...
4
votes
2
answers
3k
views
How to `Ctrl+C` copy to the system clipboard using vscodevim extension in vscode/codium without using the `v` mode's system clipboard register `"*y`?
I have already changed the Ctrl+Shift+C keybinding so that I do not enter a terminal when I press it, see Keybinding Ctrl + Shift + C opens a new external terminal in vscode/codium on Linux, how to ...
2
votes
1
answer
663
views
How to bindkey alt+delete to kill word forward in zsh?
I want to bindkey alt+delete to kill word forward in zsh. Also, I use ohmyzsh for configuration, and I have found that use "bindkey ^U backward-kill-line" to kill line backward like bash. I ...
0
votes
1
answer
1k
views
Keybinding Ctrl + Shift + C opens a new external terminal in vscode/codium on Linux, how to change the shortcut?
In Visual Studio Code / Codium on Linux, the key binding Ctrl+Shift+c opens a new external terminal. This does not work together with vscodevim extension where I often need to copy to the system and ...
1
vote
1
answer
626
views
Location of standard macOS .keylayouts?
I'm trying to make a custom keyboard layout using the Ukelele program by SIL to be installed at Library/Keyboard Layouts. I would like to use the standard US keyboard .keylayout as a template, does ...
0
votes
1
answer
48
views
How to get the hotkey definition if a shortcut is pressed?
For example, if I press Ctrl+Shift+Alt+C in this order, how I do get the corresponding hotkey definition?
I expect something like the following:
; pseudo code
*::MsgBox %A_ThisHotkey% was pressed
1
vote
1
answer
1k
views
How to trigger an action if there's only one key being pressed?
Here's my current script:
Shift::Send ^{Space}
It doesn't only trigger ^{Space} on pressing Shift alone, it also triggers on Alt+Shift (just these two keys) and Ctrl+Shift (just these two keys) if ...
1
vote
1
answer
171
views
How can I rebind § to ð and ± to Ð on a Mac?
I want to make it so that when I type the key that is labelled "§" on my keyboard, a ð symbol is typed. I also want to do this with ± to Ð. I have tried using Karabiner, but when I ...
0
votes
0
answers
457
views
Windows 10 PC does random things: Apps open randomly, Magnifier randomly zooms in to 200, and when I click W, the Pen and Ink thing opens
So I had my Windows 10 PC turned on while not doing anything on it other than downloading. Then suddenly these random things started to happen to it one after another:
Apps opened randomly. Also, the ...
0
votes
0
answers
530
views
Remapping right command and option on a MacBook Pro
First of all, I am pretty new to MacOs, I've been Windows and Linux user for a long time.
I have been tinkering a lot with the remaping/shortcuts in macOS Big Sur so I can be comfortable while ...
1
vote
1
answer
160
views
Wrap text using zsh bindkey
I'm trying to make a keyboard shortcut which wraps the current command in the terminal like this:
($current_command && say done) || say error
I've got it partially working with:
# ~/.zshrc
...
3
votes
2
answers
826
views
How to assign multiple hotkeys to the same action?
Here're my current hotkeys:
Action
Hotkey
Short backward jump(10s)
J
Play / Pause
K
Short forward jump(10s)
L
Given this config, I'm losing Space for pausing/playing, so the question is, how to ...
0
votes
1
answer
51
views
Is it possible for an extended ('gaming') keypad to not duplicate keyboard keys?
I've been looking for an extended keypad, often called gaming keypads. These are like half keyboards that sit off to one side and can be used with one-hand. This is an example. I have no experience ...
1
vote
1
answer
26
views
Going from `view-source:https://example.com` to `https://example.com` in Firefox
In Firefox, when I want to view the source of a page, I often press Ctrl-U, which when I'm on https://example.com opens a new tab for view-source:https://example.com. Is there a way to do the opposite,...
1
vote
2
answers
429
views
Assigning a keyboard key as a shortcut to another key combo
Is it possible in Windows to hijack say the F3 key to do Ctrl+L? Or the tab key to do Ctrl+F9 (not that I'd re-purpose tab, but just as an example). I don't mind installing a third party utility if ...
0
votes
1
answer
95
views
bash unbind CTRL-W (bash 4.1 solaris 11.3)
I've looked through multiple old posts, but nothing is working.
I've made the following changes to no avail:
#file: .inputrc
set bind-tty-special-chars off #I have a cursory understanding of what ...
1
vote
1
answer
676
views
assign keybinding to windows terminal profile
I would like to assign to one of the new windows terminal profiles a keybinding, as in the following ("keys": "alt+shift+d"):
{
// Connects to a remote machine ...
3
votes
0
answers
218
views
How to disable default key action (horizontal scroll wheel) in xbindkeys?
I'm currently using horizontal scroll wheel (MX Master 3) with xbindkeys (~/.xbindkeysrc) to control volume on Pop OS 20.04 (~Ubuntu) but currently it activates horizontal scroll along also, and I don'...
1
vote
0
answers
905
views
Can't select text using keyboard in Visual Studio Code
For some reason, I can't select text using the keyboard in Visual Studio Code (version 1.45.1 on macOS 10.15.4).
If I press Shift+right, the cursor moves right, but the text isn't selected.
If I:
...
1
vote
0
answers
309
views
Make readline edit input command in external editor (similar behavior as "edit-and-execute-command" from bash)
Background
So far I've found readline very useful since just by modifying a single configuration file (i.e. ~/.inputrc), you are configuring all those programs that depends on readline. The programs ...
1
vote
1
answer
38
views
Finish command from history
A couple of years ago I enabled "finish text" command on iTerm2 + ZSH. For example, if I had "git commit" in my command history in a new command window if I typed "gi" "t history" would be viewable ...
2
votes
2
answers
527
views
Is there a way of mapping a key combination of a computer type a character?
M keyboard key "h" as failed to work and I want to be able to override any key combination to be able type it. In the meantime.
An example would be
Alt+P to return h and maybe
Alt+shift+h to return ...
0
votes
0
answers
141
views
Textboxes in Linux-based systems
I know this is a very wide-ranging question, but I hope someone can point me in the right direction.
For a long time now, I have been really frustrated with the fact that textboxes in my Linux ...
4
votes
2
answers
5k
views
Run script when power button pressed
When I push the power button, I want to run a script. For the sake of this scenario, say file.sh. So when I push the power button, I want to run file.sh and only file.sh.
Most of the solutions I found ...
1
vote
0
answers
204
views
How do I bind the escape key to something else for the vim keybindings in Rstudio
I usually use jk or kj in vim as the keybinding for escape to enter normal mode. How do I do this for the vim keybinds in Rstudio?
1
vote
0
answers
511
views
emacs keybindings in VS Code's Jupyter Notebook
How can I make emacs keybindings work on VS Code while editing a Jupyter Notebook?
I am using the "Emacs Friendly Keymap" extension. It works great while editing normal files (text), but are ignored ...
1
vote
1
answer
2k
views
How do I add a custom keybind to a button on any website? [duplicate]
I am doing annotation work and the web interface is not user friendly at all.
I would like to add my own keybinds to buttons like "clear current field" or "switch to a previous field" so I don't have ...
0
votes
0
answers
51
views
How to make remap Alt to Win button when there are Xbox Game key-bindings
I would like to bind my LAlt to LWin button. I have the AutoHotKey script:
LWin::LAlt
It works great except for a few key sentences: Win-r, Win-g, Win-b. They have their roots in Xbox Game ...
0
votes
1
answer
318
views
Sublime Text 3: Keybind/Shortcut for "Permute Selections > Sort"?
Is there some way to add a keybind for the following menu command?
Edit > Permute Selections > Sort
Also, if there is a comprehensive list defining how to properly reference all of the ST3 menu ...
1
vote
0
answers
941
views
Bash binding ctrl + alt modifiers
I am not being able to bind Ctrl+Alt+u in my bash.
I have followed this link but did not work for me.
I can bind it to Ctrl+u with:
bind '"\C-u"':"\"cd ..\C-m\""
and to Alt+u with:
bind '"\eu"':"\...
1
vote
1
answer
2k
views
How to escape quotes & (semi)colons in tmux bind-key?
I'd like to do something like this
bind-key -T root ' <some-command>
bind-key -T root " <some-command>
bind-key -T root : <some-command>
bind-key -T root ; <some-command>
# ...
0
votes
1
answer
1k
views
running ranger on urvxt in i3 with bindsym
I am trying to use
bindsym $mod+Mod1+b exec "urxvt -e bash -c ranger"
in my i3-config. It runs but many features of ranger is not accessible, like,
I can't copy the file(/folder) path using yp
When ...
19
votes
4
answers
6k
views
How to prevent VScode from closing editor when pressing ctrl+w with no tabs open?
According to the comment here: https://github.com/Microsoft/vscode/issues/50671 it's possible to edit this behavior in the keybindings, but provides no instructions for how to do so.
How do I edit ...
1
vote
1
answer
59
views
Key binding to create unordered list in Microsoft Word without changing font?
I'd like to use a key binding to create an unordered list in MS Word.
I know that CTRL-SHIFT-L will create the list, but it will always change the font to Microsoft Sans Serif. How can I change this ...
3
votes
1
answer
5k
views
How to bind Option-Delete to backward-delete-word in zsh vi mode in tmux and alacritty terminal
I use alacritty and currently, I have these key binding
key_bindings:
# (macOS only)
- { key: N, mods: Command, action: SpawnNewInstance }
- { key: F, mods: Command, ...
1
vote
1
answer
252
views
ZSH key binding to search backward/forward in buffer for [hardcoded list of chars]
I have [left arrow] [right arrow] mapped to backward/forward char, and [ctrl-left-arrow] [ctrl-right-arrow] mapped to backward/forward word"
Sometimes I want to move back and forward to the previous/...
1
vote
1
answer
1k
views
Bind Middle Click To Keyboard
does anyone know a way to bind the middle click function of a mouse to a key in ubuntu? Something like this answer here:
https://askubuntu.com/questions/7769/keyboard-shortcut-for-pasting-the-primary-...
1
vote
1
answer
155
views
How to provide a true alias key sequence in emacs?
I would like in Emacs a key sequence FOO to be an true alias for a sequence BAR. Whenever FOO is entered it should perform the same action as entering BAR does.
I cannot use something like:
(global-...
1
vote
1
answer
838
views
Custom Keybinds that don't interfere with other programs
I have a logitech G710+ keyboard, and it has several programmable G keys on the side:
My main issue is, I'd like to create some keybinds that I can use in other programs, that normally don't ...
1
vote
0
answers
52
views
Key binding with shift not working on Debian + Cinnamon
I'm trying to use a key binding with alt + shift + 1, but it is not recognized.
To check I created a personalized shortcut and when I pressed these 3 keys, it showed Alt + 1...
Thank you for your ...
1
vote
1
answer
336
views
Can I use Excel keybindings in Libreoffice Calc?
LibreOffice Calc has its own set of keybindings, which is different to those in Excel.
Is there a "compatibility mode", or some way to match Excel's keybindings?
I know I can change the bindings one ...