Questions tagged [key-binding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
38 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: ...
0
votes
0answers
5 views

Make x11 keyboard grabs not steal focus

If I press any key combination grabbed by some program, the currently focused window loses focus for a moment. This is particularly noticeable on certain websites (including DuckDuckGo and Discord) ...
0
votes
0answers
26 views

Windows 10 space-shift key combination output has changed

For the last six months the combination of space+shift reacts differently than before: In games, my chat usually gets wiped so I have to start over. In Windows, it opens my Task Manager In Notepad, ...
0
votes
0answers
15 views

Binding meta+à for bash

I have been trying to clean up my bash bindings, and I'm trying to bind something to meta+à. In ~/.inputrc, I have added "\eà": character-search However, after reloading the config, doing meta+à ...
0
votes
0answers
43 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
1answer
23 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 ...
1
vote
1answer
29 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
0answers
20 views

How to disable the keybinds “inherent” in my keyboard on Ubuntu?

Regardless of which program I am in, the altgr key plus a normal key produces non-standard letters. E.g. "altgr + g" --> ŋ, "altgr + f" --> đ How can I view all these keybinds of my keyboard, and ...
0
votes
0answers
45 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 ...
1
vote
2answers
298 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 ...
1
vote
0answers
20 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
0answers
136 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
1answer
49 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
0answers
40 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
1answer
94 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 ...
0
votes
0answers
12 views

Use super+c and super+v to copy and paste into Gnome Terminal Centos 7

My question is similar to this post but different. I like using super+c and super+v to copy and paste similar to Mac Os. I used the above link to setup the bindings for the system, except doesn't ...
0
votes
0answers
144 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
1answer
433 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
1answer
345 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 ...
5
votes
3answers
1k 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
1answer
41 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 ...
2
votes
1answer
935 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
1answer
61 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
1answer
430 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
1answer
86 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
1answer
181 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
0answers
41 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
0answers
133 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
1answer
119 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
1answer
871 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
1answer
1k 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 ...
0
votes
2answers
3k 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
1answer
135 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
1answer
176 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, ...
1
vote
0answers
32 views

Use standard macOS text editing behavior in Microsoft Word for macOS

Is it possible to use the standard macOS text input behavior (keyboard commands) in Microsoft Word for macOS? For example, CMD+Backspace in a native macOS text input field deletes the entire row, ...
1
vote
0answers
63 views

Configure keyboard codes on the client-side to move PuTTY cursor between words

Related to StackOverflow Bash CTRL to move cursor between words/strings. While that thread provided good answers on the server-side, I'm looking for ways to control this on the client-side. I have ...
0
votes
1answer
342 views

Keybinding on Lubuntu

I would like to bind few keys to the characters "\" "{" "}" on my 32 bits Lubuntu Netbook. I was able to do it using Xmodmap : xmodmap -e "keycode 135 = backslash slash" xmodmap -e "keycode 48 = ...
0
votes
1answer
352 views

Binding on AutoHotkey isn't working?

I'm new to AHK and I'm trying to write a script which does the following: I press F3 and then there is a mouse click at certain coordinates on the screen and then the cursor goes back into its ...
1
vote
1answer
183 views

Vim mapping for .vimrc only

I know about autocmd FileType <TYPE> inoremap <MAPPING> for files like *.html. But i would like to create some keybinds for within my .vimrc like this: autocmd FileType vimrc inoremap ;...
0
votes
0answers
155 views

zsh: bindkey to only bind spaces not working

I run this command in my zsh: bindkey -s ' ' 'ls\n' and it was working nicely, when I press space twice, the ls command is executed. But when I add the exact same line to my .zshrc it does not ...
2
votes
0answers
118 views

Possible to set per-session/context-sensitive key bindings in tmux?

I do everything in tmux, so I have a stanza in my .bashrc to create/attach to a session whenever I enter a shell. Sometimes, I ssh into a machine that shares the same configuration. So I'm already in ...
1
vote
0answers
392 views

Delete key under iOS with Microsoft Universal Foldable Keyboard

I use the Microsoft Universal Foldable Keyboard with an iOS device (iPhone SE running iOS 10.3.2). I am trying to get the Delete key to work. I read on this data sheet that with the iOS key binding, ...
1
vote
1answer
114 views

Vim copy preserving cursor location

I would like to have a shortcut in vim that performs a line duplication, without messing up the cursor's position. Simply yanking and pasting always moves the cursor to the beginning of the next line, ...
2
votes
1answer
2k views

How to bind a mouse click to open task-view in Windows 10

I use the Sketchpad on Windows Ink Space a lot on my tablet and sometimes I wish to switch between applications without closing the Sketchpad and without moving much - ie: quickly swap to task view, ...
1
vote
1answer
287 views

How to enter Vi / Vim command mode with `;` instead of `:`?

When using Vi or Vim, I need to perform the following sequence to save a file: esc + :s But the : key is hard to reach on my keyboard. So I would like to switch : and ; so that I can type esc + ;s to ...
0
votes
1answer
563 views

How to disable Navigation Keys in Bash Shell?

I've did a serious research on Google Web and Stack Exchange websites prior asking the question, and come across to keywords and got acquainted with their meanings such as bind, bind -r, read, /etc/...
0
votes
0answers
89 views

How to stop Windows from overriding Alt modifier key?

I use an application (Blender) that makes use of a keyboard shortcut (Alt S) that is in conflict with Windows 8. The expected behavior is that Alt S will trigger the "Shrink/Fatten Geometry" function, ...
4
votes
1answer
814 views

Cannot make function key bindings (F1-F12) to work in byobu with tmux backend

I use Ubuntu 14.04 and have the latest version of byobu installed via apt-get. It has always worked flawlessly but started showing some weird behaviour just recently with no obvious reason. I use it ...
1
vote
0answers
72 views

Linux: How can the back/forward mouse buttons be configured to drag and resize windows?

My Logitech mouse has one extra button for going back, and another one for going forward. I figure I'd get more use out of them if I could instead use those two buttons to drag and resize windows, ...
0
votes
1answer
58 views

XKeymacs: how to bind to C-S-s?

I'm trying to make XKeymacs translate Ctrl+Shift+s key binding to VisualStudio's File.SaveAll command. But I can't find the correct notation of this key binding. So far I've tried several options, ...