mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #977] Request: Text area use VIM keyboard commands #709
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oceaster on GitHub (Apr 29, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/977
This is a big ask; however since everything else in my tool box uses vim key commands and the application I have built with tview sits right next to my neovim IDE on my screen.
It would be really awesome if I could maybe pass a parameter to a text area that makes it use vim key commands.
I would implement this myself in a PR but I'm probably about 6 months away from being comfortable enough with Go to make such an effort right now.
@rivo commented on GitHub (Apr 29, 2024):
You can customize your keybinds using
SetInputCapture. Have a look at the linked documentation.Having said that, although certainly possible, it might be difficult to implement modes like VIM (i.e. normal mode, insert mode, visual mode, command mode etc.). But if it's important to you, give it a shot.
I can tell you that this won't become part of
tviewfor various reasons (see this link for the main one). So I will close this issue now. If you have trouble withSetInputCapture, feel free to open a separate issue.