Questions tagged [key-binding]
The key-binding tag has no usage guidance.
211
questions
0
votes
0
answers
16
views
How can I send Alt+Tab to an application on Windows?
My idea is that I would have Alt+Tab as a key binding in a text editor, but, if I'm on Windows, it's used to change windows. What can be done for that an application on Windows registers the key ...
0
votes
0
answers
8
views
Alt+num to switch tab instead of moving in YouTube video in Firefox
I'm using Mozilla Firefox 97.0.1 on Arch Linux.
When I'm on a YouTube video and press alt+1, I want to switch to tab 1 instead of moving in YouTube's video player.
This was the default behavior ...
1
vote
1
answer
44
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
0
answers
83
views
Using Ctrl-r for history searches
My question relates to various others (e.g. this from 9 years ago How to reverse-i-search back and forth?). I have not seen a full answer to this so please do not flag this question as already ...
0
votes
0
answers
35
views
Binding Tab+1 key combination with AutoHotkey
I have a ahk script which pops up a message box when I press the key combo Tab + 1.
Tab & 1::
MsgBox, 1
return
This works, but unfortunately this completely disables my Tab key for otherwise ...
0
votes
0
answers
128
views
How to map Alt + hjkl to arrow keys
I tried what the OP did in https://askubuntu.com/questions/1025765/how-to-map-alt-hjkl-keys-to-arrow-keys?noredirect=1&lq=1 and faced the same issue. The only answer did not work. Any suggestions? ...
0
votes
1
answer
27
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
0
votes
0
answers
14
views
How to enable CTRL+<number> to change tabs in Sublime Text on Ubuntu
Under key bindings I see these:
{ "keys": ["ctrl+pagedown"], "command": "next_view" },
{ "keys": ["ctrl+shift+pagedown"], "command"...
0
votes
1
answer
256
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
59
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
156
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
48
views
How to set keybind for green run button in VSCode
At the top right of VSCode is a green button that when pressed automatically runs my python file in terminal which is great, but I want to set a keybind like ctrl+enter to fire it. I'm not sure what ...
0
votes
0
answers
179
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
96
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
...
1
vote
2
answers
352
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
41
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
23
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,...
0
votes
2
answers
75
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
34
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
443
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 ...
2
votes
0
answers
99
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
463
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
140
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
32
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
177
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
94
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
3k
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
56
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
443
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
1k
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
47
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
217
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
545
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
1k
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
776
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 ...
13
votes
4
answers
5k
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
54
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
3k
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
119
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
128
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
515
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
46
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
0
answers
169
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 ...
1
vote
1
answer
245
views
Key binding for character insertion won't work in sublime text 3
I am trying to make my sublime text 3 instert a "<" character if I press alt + z, and ">" if I insert alt + x since my keyboard has no <> keys. I managed to make this work properly in Sublime ...
2
votes
1
answer
2k
views
How to enable emacs keybindings on macos globally?
I have a macbook pro 2015 that runs on High Sierra. I want to use emacs key-bindings or shortcuts for regular things like copying and pasting. For instance, I want to use "M-w" to copy instead of "...
1
vote
1
answer
3k
views
How do I bind a mouse button (specifically the scroll wheel buttons `4` and `5`) to a keyboard key on Arch Linux?
The scroll wheel on my mouse is broken (though middle-click still works, apparently) and I would like to bind two of my keyboard keys (yes, I have spare keys for this) in such a way as to emulate ...
1
vote
3
answers
5k
views
How to bind a key to left mouse button perfectly?
I am very new to AutoHotkey and I want to know if it's possible to bind a keyboard key to mouse left button one to one? Like if I hold down the key assigned to left click it would hold as if I'm ...
3
votes
1
answer
138
views
How can I change key bindings in MAMP using "and"/"not" logic?
How can I use and not logic in mame hotkeys? I figured out how to set or, by just setting new and new hotkeys. But and and not?
Also, where the hotkeys are stored, how to backup them?
0
votes
1
answer
339
views
Is it possible to bind the same hotkey to two different functions in VLC media player?
The only thread I could find on this topic is from 2007 on the VideoLAN forums.
I wanted to know if it's possible to bind one hotkey to two different functions using the VLC interface. For instance, ...