Skip to main content

Questions tagged [key-binding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

Rebinding Direct Input joystick keys

A game I want to play reads joystick/gamepad input, but doesn't support key rebinding. Whenever Joy6 is pressed, game fastforwards text, and I want this key to increase system volume instead. ...
aiyo4930aiyo's user avatar
4 votes
1 answer
989 views

How can I revert Caps Lock key mapping in Windows 10

I have applied following answer Map Caps Lock to Ctrl in Windows 10 (https://superuser.com/a/997448/723632). Now if possible, I want to revert it: In case anyone needed this done via PowerShell: $...
alper's user avatar
  • 190
0 votes
0 answers
20 views

Keybindings for multiline edit in VS Code inside a Hyper-V VM

The CTRL+SHIFT+ALT with PgUp/PgDn function to multiline edit in VS Code seems broken inside a Hyper-V VM of Windows 10 (this is when I am inside a vmconnect.exe session. I can't think of a particular ...
YorSubs's user avatar
  • 939
-1 votes
1 answer
59 views

Bash readline command of scrolling terminal lines up/down

What is the Bash readline command, ie. the phrasal words command, of scrolling terminal lines up/down with shift - Page up/down How to have all complete Bash readline commands (that are used by ...
itil nonok's user avatar
0 votes
0 answers
50 views

What could have caused some of the keys of my keyboard to suddenly stop working?

I usually use an azerty keyboard configuration and this issue happened on a laptop (ASUS) with windows 10 as an OS. I recently tried a rather obscure game on steam which required me to switch to ...
Anne Aunyme's user avatar
1 vote
1 answer
146 views

CTL-Y no longer works

Suddenly the highlighting color, when copying changed from gray to yellow. CTL-Y no longer works, When I try it I get: Symbol's function definition is void: x-cut-buffer-or-selection-value. My .emacs ...
Edward Heaney's user avatar
3 votes
1 answer
2k 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 ...
Thibault Cimic's user avatar
1 vote
1 answer
295 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 &...
Scooby-Doo's user avatar
0 votes
1 answer
482 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 ...
Denis Kazakov's user avatar
1 vote
1 answer
194 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 ...
Vipul Rajan's user avatar
1 vote
0 answers
111 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 ...
0x539's user avatar
  • 217
2 votes
0 answers
326 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 ...
klepp0906's user avatar
  • 1,095
1 vote
0 answers
299 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 "...
paul valery's user avatar
2 votes
1 answer
245 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 ...
Juan José Peña Becerra's user avatar
8 votes
2 answers
8k views

How do I `Ctrl+C` copy to the system clipboard with 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 ...
questionto42's user avatar
  • 2,421
3 votes
1 answer
1k 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 ...
chener's user avatar
  • 171
1 vote
1 answer
3k views

Keybinding Ctrl + Shift + C opens a new external terminal in vscode/codium on Linux, how do I 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 ...
questionto42's user avatar
  • 2,421
1 vote
1 answer
1k 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 ...
Jason1923's user avatar
0 votes
1 answer
64 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
Wenfang Du's user avatar
1 vote
1 answer
2k 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 ...
Wenfang Du's user avatar
2 votes
1 answer
308 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 ...
user57202's user avatar
0 votes
0 answers
792 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 ...
Diecie's user avatar
  • 101
0 votes
0 answers
761 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 ...
Eideann's user avatar
1 vote
1 answer
273 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 ...
ConorSheehan1's user avatar
3 votes
3 answers
1k 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 ...
Wenfang Du's user avatar
0 votes
1 answer
74 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 ...
Nicholas's user avatar
  • 211
1 vote
1 answer
100 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,...
ChocolateOverflow's user avatar
2 votes
2 answers
2k 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 ...
Sam's user avatar
  • 170
0 votes
1 answer
131 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 ...
spioter's user avatar
  • 181
1 vote
1 answer
1k 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 ...
Edoardo's user avatar
  • 193
4 votes
0 answers
303 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'...
Elijas Dapšauskas's user avatar
1 vote
0 answers
1k 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: ...
Zack's user avatar
  • 111
2 votes
0 answers
609 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 ...
gfe's user avatar
  • 177
1 vote
1 answer
40 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 ...
blue-sky's user avatar
  • 629
2 votes
2 answers
964 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 ...
novapack's user avatar
  • 123
0 votes
0 answers
174 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 ...
Tohiko's user avatar
  • 101
4 votes
2 answers
7k 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 ...
JeremiahDuane's user avatar
1 vote
0 answers
251 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?
Embedded_Mugs's user avatar
1 vote
0 answers
577 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 ...
jmlorenzi's user avatar
  • 312
1 vote
1 answer
3k 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 ...
Chris's user avatar
  • 11
0 votes
0 answers
59 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 ...
Pfedj's user avatar
  • 109
0 votes
1 answer
384 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 ...
MikMak's user avatar
  • 2,107
1 vote
0 answers
1k 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"':"\...
Mayday's user avatar
  • 121
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> # ...
xliiv's user avatar
  • 755
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 ...
Galilean's user avatar
  • 101
21 votes
4 answers
8k 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 ...
Our_Benefactors's user avatar
1 vote
1 answer
78 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 ...
tschuy's user avatar
  • 31
3 votes
1 answer
6k 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, ...
San Nguyen's user avatar
1 vote
1 answer
360 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/...
Stilez's user avatar
  • 1,715
1 vote
2 answers
2k 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-...
Will G's user avatar
  • 21

1
2 3 4 5