mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 17:56:00 +03:00
[GH-ISSUE #9] [Enhancement] Left and Right to jump pages in the message list #8
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#8
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 @Kabouik on GitHub (Jan 13, 2020).
Original GitHub issue: https://github.com/d99kris/nmail/issues/9
Originally assigned to: @d99kris on GitHub.
Pretty much like PageUp and PageDown, but Left and Right are easily accessible when already using Up and Down to move among messages, and not all devices have direct PageUp and PageDown keys.
I found myself 6 months in the past in my Inbox at some point, and have just arrows on my device. Jumping pages would have been a life-changer (I actually just ended up closing and reopening nmail to reset the view).
@d99kris commented on GitHub (Jan 13, 2020):
The default nmail keymapping follows closely that of
pine/alpine, but yeah there wouldn't be any harm in allowing re-mapping the arrow keys to different function. Due to how the keymapping is done today it's not super straight-forward, so I just need to think of how to best implement this.@Kabouik commented on GitHub (Jan 13, 2020):
I think the left/right arrow keys are not currently being used, hence why I thought about them for jumping pages. Space seems to jump page too, but I couldn't find a way to jump backwards, plus I use modifier+space for global keybindings anyway so having alternatives would be nice. Not something really crucial though.
@d99kris commented on GitHub (Jan 14, 2020):
Oh yeah you are right, left/right arrows are not currently being used. In
pine/alpinethey do have a different meaning (basically same as<and>) but not innmail. Ok I'll consider this.@d99kris commented on GitHub (Feb 10, 2020):
This feature request will take a bit of time as it requires some redesign in how
nmailhandles key mappings.@Kabouik commented on GitHub (May 30, 2020):
Just an additional note because I see that I initially asked for fixed additional keys for jumping pages. It would actually be best to make it user configurable, but I suspect that is what you had in mind anyway. I now switched to using
LeftandRightto navigate between views, so I would for example use^Leftand^Rightfor jumping pages; and of course others users may want something else, so custom key mapping for this would be great.@d99kris commented on GitHub (May 30, 2020):
Right, correct. 👍
@d99kris commented on GitHub (Aug 2, 2020):
Just FYI - In commit
7543d02I've changed defaultnmailkey handling so thatLeftandRightcan be used to navigate between views (in addition to what's configured). This followspine/alpineuser interface, and makes navigation faster (same keys can be used on every view, even in folder/address/file-selection lists).I've not yet made
PageUp,PageDownor other basic navigation configurable. Will try to get to that eventually.@Kabouik commented on GitHub (Aug 4, 2020):
Excellent, we can use
LeftandRightfrom the folder view too now, it's indeed much more consistent. And I like how you made it so the keys move views when no characters have been typed in the folder/email search field, and move cursor when something is being typed.@Kabouik commented on GitHub (Aug 4, 2020):
Just a note, it might make sense to allow navigating through folders in the file selection dialog with
LeftandRightas well, if deemed relevant.Perhaps better to reference thatThat was mentioned in #47.@d99kris commented on GitHub (Aug 4, 2020):
Ah, thanks for reminding me about that. Yes, that is an excellent idea (and should be simple to implement).
@d99kris commented on GitHub (Aug 4, 2020):
The right-arrow navigation was already working in the file selection view. I've added support for navigating to parent directory using left arrow in
62c26bc.@d99kris commented on GitHub (Jan 12, 2021):
Hi, just for my clarification. The remaining part of this request is to make
PageUpandPageDownkey bindings configurable, so that a user can use for exampleCtrl+LeftandCtrl+Rightinstead. Is my understanding correct? Thanks.@Kabouik commented on GitHub (Jan 12, 2021):
Absolutely.
@d99kris commented on GitHub (Jan 17, 2021):
A fix has been implemented in above commit, please let me know if you encounter any issues. Please help report as new issue(s) if there are remaining problems.
@Kabouik commented on GitHub (Jan 17, 2021):
Great, thank you. It works for me with
KEY_CTRLUandKEY_CTRLD, I finally chose those as they match keybindings of my TUI IRC client (tiny) . I assumeCtrl+LeftandCtrl+Downcould work too but I have to find the Octal key sequences for them (KEY_CTRLRIGHT/KEY_CTRLRIGHTdon't work).