Questions tagged [key-bindings]

Anything related to key-bindings (a.k.a. "keyboard shortcuts", "hotkeys", etc.), i.e. the associations between key combinations and the corresponding actions triggered when the user presses such combinations.

Anything related to key-bindings (a.k.a. keyboard shortcuts, hotkeys, etc.), i.e. the associations between key combinations and the corresponding actions triggered when the user presses such combinations. For example, pressing alt + F4 closes an application on Windows, while ctrl + C copies the selected text into the clipboard for both Linux and Windows GUI applications.

See Wikipedia on keyboard shortcuts.

1731 questions
6
votes
0 answers

Vim: temporary normal mode while holding Alt in insert mode

I wonder if there's a way to make the Alt (or another key) work like Ctrl-o, but for as long as the key is pressed. For example, if you're in insert mode and want to move 10 lines down and 2 words forward, you could hold Alt, press 10jww and then…
Kauê Reis
  • 81
  • 5
6
votes
1 answer

Double same key keyboard shortcuts

Is there a way to use the same key for a shortcut? For example, on Mac, IntelliJ uses shift shift (double tap the shift key) for searches. I would like to mimic that function in VSCode, but it doesn't appear to accept that as a valid shortcut. I…
Coder-guy
  • 414
  • 6
  • 16
6
votes
0 answers

How to Ctrl+Shift+←/→ to select previous or next word at the VSCode integrated terminal?

How to enable Ctrl+Shift+←/→ to select (highlight) previous or next word at the integrated terminal of VSCode? Ctrl+←/→ in order to move the cursor by one word works perfectly, but Ctrl+Shift+←/→ outputs D's and C's. I tried these to the…
6
votes
1 answer

xdotool commands bound to key shortcuts doesnot work

I like VIM a lot and I wanted to use it's keybindings everywhere. There are many IDE plugins that can emulate this but I wanted more, maybe VIM keybindings in Minecraft? :D or VIM keybindings everywhere without the need to download any plugin. I…
George Shalvashvili
  • 1,263
  • 13
  • 21
6
votes
2 answers

Visual studio code how to add a keybinding for a command palette entry

For example, I would like to add a key binding Ctrl+R Ctrl+T for the entry: Python: Run Python File In Terminal Many thanks.
user2813547
  • 75
  • 1
  • 6
6
votes
0 answers

How to enable scrolling with a touchpad (IntelliJ)?

I just downloaded the latest release of IntelliJ and recognized that I can't scroll in the code while using the touchpad of my notebook. I tried to add a mouse binding to the scroll actions but it doesn't work. My touchpad works fine with all other…
Melkor
  • 243
  • 2
  • 14
6
votes
2 answers

How do I select multiple lines going upwards on Kakoune?

In Vim I would enter visual mode with V then just move the cursor up (with k). In kak I can select a line with x and I can extend the selection downwards by pressing X multiple times or by moving the cursor down while still pressing shift with J,…
fiatjaf
  • 11,479
  • 5
  • 56
  • 72
6
votes
1 answer

How to make fish shell delete words like bash does

I'm giving a second try to the fish shell. One thing that really annoys me is the "new" behaviour of Ctrl+w shortcut. Consider following situation: $ vim ~/.config/fish/config.fish ...having the cursor at the end of the line. When you press Ctrl+w,…
Ikar Pohorský
  • 4,617
  • 6
  • 39
  • 56
6
votes
1 answer

How to setup a custom keybinding to run a script or execute a command in Atom editor?

Is it possible to make CMD+T keybinding run a bash script? Like for example i want to run my tests on my Heroku project, the command python manage.py test would be run if did CMD+T.
bogen
  • 9,954
  • 9
  • 50
  • 89
6
votes
2 answers

How to disable F10 default action in window (show window menu)?

The default action of F10 is to show the menu of the window. However, I would like to disable this feature. UPDATED: Background: I would like to implement a special behavior in a JTextField if the user presses any key. Unfortunately, the JTextField…
QStorm
  • 173
  • 12
6
votes
0 answers

Enthought Canopy emacs keybinding

Canopy's integrated Ipython terminal allows to use Emacs keybindings, but the integrated code editor won't. This is a problem when switching from one window to the other... Is there a way to activate Emacs keybindings in "Enthought" Canopy code…
slegroux
  • 610
  • 5
  • 11
6
votes
3 answers

Emacs keybinding not working in custom major mode

I'm in the early stages of creating a major mode for Emacs for browsing and interacting with the Stack Exchange Network. Involved in it are several major modes, all with one-key keybindings similar to dired. I looked at the source for dired, and…
Sean Allred
  • 3,558
  • 3
  • 32
  • 71
6
votes
3 answers

KeyPressed event in java

I have just created a java tic-tac-toe game i would like to figure out how to run a method once the enter key is pressed during a certain condition an example is below... if(/*condition is met*/){ //keyListener }
CodeLover
  • 977
  • 3
  • 9
  • 14
6
votes
2 answers

Java: Use keystroke with arrow key

I have some code that I need to modify. In the code, the original author uses KeyStroke.getKeyStroke to take user input. In this code, for example, he uses a instead of left arrow. I want to change this, but I don't know how. Here is the original…
hqt
  • 29,632
  • 51
  • 171
  • 250
6
votes
1 answer

How can I ensure that only one KeyBinding command is executed when a keyboard shortcut is used?

I have the following KeyBindings: When I press Ctrl+Shift+S to execute the SaveAs command, it works -- but directly afterwards, the Save command…
Showtime
  • 266
  • 2
  • 8