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

Better support for Vim-like key bindings #36

Closed
janbuchar opened this issue Oct 25, 2017 · 6 comments · Fixed by #2279
Closed

Better support for Vim-like key bindings #36

janbuchar opened this issue Oct 25, 2017 · 6 comments · Fixed by #2279
Labels
enhancement This issue proposes a new feature or an improvement to an existing one
Milestone

Comments

@janbuchar
Copy link

I prefer to use vim-style keybindings in most programs. One thing that I find missing from newsboat is fast navigation using g/G (go to first/last item in list) and ^d/^u (scroll half a page down/up). Would it be possible to add actions that I could bind to those keys?

Minoru added a commit that referenced this issue Oct 25, 2017
@Minoru Minoru added the enhancement This issue proposes a new feature or an improvement to an existing one label Oct 25, 2017
@Minoru
Copy link
Member

Minoru commented Oct 25, 2017

g and G are already possible:

unbind-key g # bound to `sort` by default
bind-key g home
unbind-key G # bound to `rev-sort` by default
bind-key G end

home and end weren't documented, I fixed this.

Scrolling by half a page is impossible at the moment, though—only by a single screen (see pageup and pagedown key commands.) Adding those is a bit tricky because the ones we already have (home/end/pgup/pgdown) are handled by STFL, our UI library; AFAIK it doesn't provide anything for half-a-page scrolls, so we'll have to implement it on our end, and I'm not sure how much control we got there.

Won't promise anything yet, but thanks for filing the issue!

@janbuchar
Copy link
Author

g/G is perfect for now, thanks a lot!

@ghost
Copy link

ghost commented Dec 12, 2017

Can't you just edit the bindings for navigation in the config file?

unbind-key h
unbind-key j
unbind-key k
unbind-key l

bind-key h quit
bind-key j down
bind-key k up
bind-key l open

@Minoru
Copy link
Member

Minoru commented Dec 12, 2017

@hhiru that's tangential to the question, which is about specific operations, some of which aren't even implemented in Newsboat (yet).

@kmws
Copy link
Contributor

kmws commented Sep 29, 2018

For me, Jump up/down (C-d, C-u in vim) and go to first/last item (something like g/G that doesn't feel like a hack) would be perfect.

@oblitum
Copy link

oblitum commented May 14, 2019

Really missing vi-mode here...

@Minoru Minoru changed the title Key bindings for feed/article list navigation Better support for Vim-like key bindings Mar 29, 2021
@Minoru Minoru added this to the 2.31 milestone Apr 1, 2023
senatoreg added a commit to senatoreg/newsboat that referenced this issue Jan 3, 2024
Release Newsboat 2.31

Lists below only mention user-visible changes, but the full list of contributors
for this release also includes: Sergei Trofimovich and giuliano.

Added
=====

- Operations for scrolling by half a page (`halfpageup`, `halfpagedown`) (newsboat#36)
    (Dennis van der Schagt)
- If `--log-level` is specified but `--log-file` isn't, write the log to a file
    named after the template `newsboat_%Y-%m-%d_%H.%M.%S.log`, i.e. use the
    current date and time (Dennis van der Schagt)
- _contrib/move_url.py_ for moving feeds in Newsboat's database while keeping
    articles (blankie)

Changed
=======

- Updated translations: Dutch (Dennis van der Schagt), German (Lysander
    Trischler), Italian (Mauro Scomparin), Polish (Carno), Russian and Ukrainian
    (Alexander Batischev), Spanish (Roboron3042), Turkish (Emir SARI)
- Bumped minimum supported Rust version to 1.64.0

Fixed
=====

- Inability to exit search mode when `quit` is bound to `BACKSPACE` (newsboat#2336)
    (Dennis van der Schagt, Alexander Batischev)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue proposes a new feature or an improvement to an existing one
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants