Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom keybindings or missing keyboard shortcuts? Or Vim mode? Emacs? See here! (bindings / bind / bindable) #579

Closed
24 of 62 tasks
elviskahoro opened this issue Jan 8, 2022 Discussed in #500 · 2 comments
Assignees

Comments

@elviskahoro
Copy link
Member

elviskahoro commented Jan 8, 2022

We'll share major progress updates in this issue! So please subscribe (GitHub watch)

See the Custom Keybindings GitHub Discussion to report bugs and workarounds. This helps us keep it all in one place.

Try to use this precedence when referring to the keybindings: CTRL-ALT-SHIFT-CMD-KEY

Here's a summary of current requests and whether we've fulfilled them.

non-key

  • leader key (like tmux)

bugs

  • ESC -> in theme selector should exit
  • ESC -> in font selector should exit

misc

  • ENTER -> Ability to configure whether enter executes command or inserts new line (CMD-ENTER to run)
  • ALT -> in alt-screens to bypass mouse selection (vim)
  • ALT-. -> iterate over the arguments of prior commands
  • ALT-LEFT -> move word left
  • ALT-RIGHT -> move word right
  • ALT-CMD-DOWN -> multi-cursor down
  • ALT-CMD-UP -> multi-cursor up
  • CMD-, -> to quickly open settings tab
  • CMD-G -> find next item (in find)
  • CMD-L -> clear last block
  • CMD-M -> to minimize the window
  • CMD-LEFT -> move to start of line
  • CMD-RIGHT -> move to end of line
  • CTRL-CMD-F -> toggle full screen on Mac
  • SHIFT-ALT-UP -> duplicate current line in direction up
  • SHIFT-ALT-DOWN -> duplicate current line in direction down
  • SHIFT-CMD-G -> previous item (in find)
  • SHIFT-CMD-P -> command palette (VS Code)
  • SHIFT-CMD-T -> Reopen recently closed tab, pane, or window like in chrome
  • SHIFT-CMD-UP -> select all lines vertically (up)
  • SHIFT-CMD-DOWN -> select all lines vertically (down)
  • SHIFT-CMD-ENTER -> expand pane to take full window

autosuggestion

  • CTRL-LEFT -> autosuggestion backward
  • CTRL-RIGHT -> autosuggestion forward (whole line)
  • ALT-RIGHT -> autosuggestion forward (word)
  • ALT-LEFT -> autosuggestion backward (word)

emacs

  • CTRL-A -> move to start of line
  • CTRL-B - move back one char
  • CTRL-C - interrupt
  • CTRL-D - delete forward one char - if on empty command line = exit term
  • CTRL-E - move to end of line
  • CTRL-F - move forward on char
  • CTRL-G - visual bell + exit command history search
  • CTRL-H - delete back one char = backspace
  • CTRL-J - line feed - useful for editing multiline commands without executing them
  • CTRL-K - kill to end of line (kill buffer)
  • CTRL-L - clear screen
  • CTRL-M - carriage return (not needed?)
  • CTRL-N - move down / next in history
  • CTRL-O - accept current line and queue next line in history - run after history search or history browse
  • CTRL-P - move up / prev in history
  • CTRL-Q - continue after term output stop (after CTRL-s)
  • CTRL-R - search history backwards
  • CTRL-S - stop term output (continue with CTRL-q) - or history search forward
  • CTRL-T - transpose chars
  • CTRL-U - kill backward beg of line
  • CTRL-V - makes next character types verbatim (quotes it)
  • CTRL-W - kill word backward (kill buffer)
  • CTRL-Y - yank kill buffer
  • CTRL-Z - suspend process

collisions (clashing requests)

  • CMD-# -> Ability to switch panes instead of tabs
  • CMD-BACKSPACE -> To delete current block.
  • CMD-K -> command palette
  • CMD-LEFT -> switch terminal tab left
  • CMD-RIGHT -> switch terminal tab right
  • CTRL-H -> move to split pane left
  • CTRL-J -> move to split pane down
  • CTRL-K -> move to split pane up
  • CTRL-L -> move to split pane right
@warpdotdev warpdotdev locked as resolved and limited conversation to collaborators Jan 8, 2022
@elviskahoro elviskahoro pinned this issue Jan 8, 2022
@elviskahoro elviskahoro changed the title Customizable Keybindings / Keymaps / Keyboard Shortcuts Missing shortcuts? Or Vim mode? See here! Jan 8, 2022
@elviskahoro elviskahoro changed the title Missing shortcuts? Or Vim mode? See here! Missing shortcuts? Or Vim mode? Emacs? See here! Jan 8, 2022
@warpdotdev warpdotdev unlocked this conversation Jan 8, 2022
@warpdotdev warpdotdev locked as resolved and limited conversation to collaborators Jan 8, 2022
@warpdotdev warpdotdev unlocked this conversation Jan 8, 2022
@warpdotdev warpdotdev locked as resolved and limited conversation to collaborators Jan 8, 2022
@elviskahoro elviskahoro changed the title Missing shortcuts? Or Vim mode? Emacs? See here! Missing keyboard shortcuts? Or Vim mode? Emacs? See here! Jan 9, 2022
@elviskahoro elviskahoro self-assigned this Jan 9, 2022
@elviskahoro elviskahoro changed the title Missing keyboard shortcuts? Or Vim mode? Emacs? See here! Custom keybindings or missing keyboard shortcuts? Or Vim mode? Emacs? See here! Feb 5, 2022
@elviskahoro elviskahoro changed the title Custom keybindings or missing keyboard shortcuts? Or Vim mode? Emacs? See here! Custom keybindings or missing keyboard shortcuts? Or Vim mode? Emacs? See here! (bindings) Feb 7, 2022
@elviskahoro elviskahoro changed the title Custom keybindings or missing keyboard shortcuts? Or Vim mode? Emacs? See here! (bindings) Custom keybindings or missing keyboard shortcuts? Or Vim mode? Emacs? See here! (bindings / bind / bindable) Feb 7, 2022
@elviskahoro
Copy link
Member Author

elviskahoro commented Feb 18, 2022

Hey everyone!

We recently launched an update with support for setting custom keybindings. We have directions on our documentation.

Will share bugs that have been reported and updates as we iterate.

Set up an emacs keymap by following the directions in this repo:
https://github.com/warpdotdev/keysets/

@elviskahoro
Copy link
Member Author

We also added emacs functionality for navigating up and down lists with CTRL-N and CTRL-P!

@dannyneira dannyneira unpinned this issue Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant