[GH-ISSUE #46] vi mode #15

Closed
opened 2026-03-14 12:23:35 +03:00 by kerem · 7 comments
Owner

Originally created by @ink-splatters on GitHub (Nov 10, 2021).
Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/46

Hi,

@aome510 any plans for this one?

Anyone around interested in?

Thanks a lot

Originally created by @ink-splatters on GitHub (Nov 10, 2021). Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/46 Hi, @aome510 any plans for this one? Anyone around interested in? Thanks a lot
kerem 2026-03-14 12:23:35 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@aome510 commented on GitHub (Nov 10, 2021):

Hi @ink-splatters, can you elaborate more about what will a vi mode be used for?

<!-- gh-comment-id:965496414 --> @aome510 commented on GitHub (Nov 10, 2021): Hi @ink-splatters, can you elaborate more about what will a vi mode be used for?
Author
Owner

@BachoSeven commented on GitHub (Dec 13, 2021):

I guess OP means vim-like navigation keys, so hjkl with hl for opening/closing a post and jk to move verticallly between posts, plus things like gg/G to go to the first/last displayed entry. I agree it would be to have that, as many TUI applications provide such bindings and I'm used to them.

<!-- gh-comment-id:992478348 --> @BachoSeven commented on GitHub (Dec 13, 2021): I guess OP means vim-like navigation keys, so `hjkl` with `hl` for opening/closing a post and `jk` to move verticallly between posts, plus things like `gg/G` to go to the first/last displayed entry. I agree it would be to have that, as many TUI applications provide such bindings and I'm used to them.
Author
Owner

@aome510 commented on GitHub (Dec 13, 2021):

@BachoSeven thanks for the additional insight.

Tbh, the default keybindings are kinda a mess 😢. I haven't used any TUIs before I built HN-TUI, so I have no idea what the bindings other apps normally provide.

I hope this is still addressable with the help of key mapping in the configuration file.

<!-- gh-comment-id:992640476 --> @aome510 commented on GitHub (Dec 13, 2021): @BachoSeven thanks for the additional insight. Tbh, the default keybindings are kinda a mess 😢. I haven't used any TUIs before I built HN-TUI, so I have no idea what the bindings other apps normally provide. I hope this is still addressable with the help of key mapping in the configuration file.
Author
Owner

@BachoSeven commented on GitHub (Dec 13, 2021):

Key mappings in config file would be perfect, I could provide a vi-mode bindings config file which can be linked to in the README for those interested, will do soon.

<!-- gh-comment-id:992667108 --> @BachoSeven commented on GitHub (Dec 13, 2021): Key mappings in config file would be perfect, I could provide a `vi-mode` bindings config file which can be linked to in the README for those interested, will do soon.
Author
Owner

@slarrain commented on GitHub (Jan 25, 2022):

Hey @BachoSeven ! How's that binding config file coming through? This is an awesome app, but it is really needed!

<!-- gh-comment-id:1021716441 --> @slarrain commented on GitHub (Jan 25, 2022): Hey @BachoSeven ! How's that binding config file coming through? This is an awesome app, but it is really needed!
Author
Owner

@huyz commented on GitHub (Mar 24, 2022):

@slarrain

As someone who's used a ton of TUI apps and with a vim background, these bindings make a lot more sense to me, as they're more consistent with many other TUI apps:

[keymap.global_keymap]
quit = "C-c"
goto_previous_view = "q"
goto_search_view = "/"

[keymap.story_view_keymap]
page_down = "C-d"
page_up = "C-u"
prev_story_tag = "["
next_story_tag = "]"
open_article_in_article_view = "v"

[keymap.comment_view_keymap]
page_down = "C-d"
page_up = "C-u"
open_link_in_browser = "o"
open_link_in_article_view = "v"
toggle_collapse_comment = " "

[keymap.article_view_keymap]
page_down = "C-d"
page_up = "C-u"
open_link_in_browser = "o"
open_link_in_article_view = "v"
<!-- gh-comment-id:1077995419 --> @huyz commented on GitHub (Mar 24, 2022): @slarrain As someone who's used a ton of TUI apps and with a vim background, these bindings make a lot more sense to me, as they're more consistent with many other TUI apps: ```toml [keymap.global_keymap] quit = "C-c" goto_previous_view = "q" goto_search_view = "/" [keymap.story_view_keymap] page_down = "C-d" page_up = "C-u" prev_story_tag = "[" next_story_tag = "]" open_article_in_article_view = "v" [keymap.comment_view_keymap] page_down = "C-d" page_up = "C-u" open_link_in_browser = "o" open_link_in_article_view = "v" toggle_collapse_comment = " " [keymap.article_view_keymap] page_down = "C-d" page_up = "C-u" open_link_in_browser = "o" open_link_in_article_view = "v" ```
Author
Owner

@aome510 commented on GitHub (Jan 31, 2023):

The default keybindings are not perfect but I guess it can be worked around by using the above keymap.

I'll close this issue for now.

<!-- gh-comment-id:1410895467 --> @aome510 commented on GitHub (Jan 31, 2023): The default keybindings are not perfect but I guess it can be worked around by using the above keymap. I'll close this issue for now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hackernews-TUI#15
No description provided.