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

Vi mode (READ: Allow selection keys to be rebound to different keys) #11868

Open
sapphire41 opened this issue Dec 2, 2021 · 5 comments
Open
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal.
Milestone

Comments

@sapphire41
Copy link

Description of the new feature/enhancement

This issue suggests implementing a "Vi mode" similar to the very convenient one implemented by Alacritty, where the user can
move the cursor around, select and copy text using the keyboard alone in a fashion familiar to most programmers and power users;

  • The user presses a predefined keyboard shortcut to enter Vi mode
  • Once in Vi mode, the cursor is movable in the current terminal buffer using Vi motions (h j k l)
  • 'V' enters visual mode, where text can be selected and copied ('y')
  • '/' and '?' enter search mode where text can be searched and then copied
@sapphire41 sapphire41 added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Dec 2, 2021
@ghost ghost added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Dec 2, 2021
@zadjii-msft
Copy link
Member

zadjii-msft commented Dec 2, 2021

OH HEY LOOK GUYS, SOMEONE WHO WANTED TO REBIND THE MARK MODE KEYBINDINGS

Sorry, that's not directed at you, that's directed at the team. We've been having this discussion for a while now. @DHowett @carlos-zamora

linking to #10824, #715, #2840, #5804

@zadjii-msft zadjii-msft added Area-Settings Issues related to settings and customizability, for console or terminal Needs-Discussion Something that requires a team discussion before we can proceed Product-Terminal The new Windows Terminal. labels Dec 2, 2021
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Dec 2, 2021
@zadjii-msft
Copy link
Member

Also linking this to #9301, #11084, #9301 and MOST IMPORTANTLY #5790.

We discussed today and had ideas for:

  • different keymaps
  • keybindings that can switch between those keymaps
  • allowing the selection keybindings to get rebound
  • minimizing the appearance of all the selection keybindings in the SUI. Either use the SUI to pick between "Default, vi, emacs" selection bindings, or use the json to edit manually.

I'm gonna leave this open to track the third bullet point, because we agree we're open to the idea of rebinding the keys, so long as the SUI impact is relatively low (it's something like 12-30 actions in the SUI, which is a lot).

@zadjii-msft zadjii-msft removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Discussion Something that requires a team discussion before we can proceed labels Dec 8, 2021
@zadjii-msft zadjii-msft added this to the Terminal Backlog milestone Dec 8, 2021
@zadjii-msft zadjii-msft modified the milestones: Terminal Backlog, Backlog Jan 4, 2022
@sisrfeng
Copy link

sisrfeng commented Feb 21, 2022

:term of neovim is easy to use, and I use neovim-remote and abduco, making the register easier to use (do not need to specify a register for most time)

I do not use tmux anymore

@ofek ofek mentioned this issue May 26, 2022
10 tasks
@ghost
Copy link

ghost commented Aug 17, 2023

Really looking forward to this

@zadjii-msft zadjii-msft changed the title Vi mode Vi mode (READ: Allow selection keys to be rebound to different keys) Aug 17, 2023
@xuejiaW
Copy link

xuejiaW commented Jan 10, 2024

+1
I have tried to use Poweroys keyboard manager + markmode to work around this feature, something like remapping "ctrl+h" to "arrow left"
image

but no luck, once i press "ctrl+h", the mark mode will exit, so it not works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

4 participants