[feature] Add nano's "ALT+<" and "ALT+>" key-bindings for file switching.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 14.6k
- Forks
- 735
- Avg merge
- 8h 40m
- Merged PRs (30d)
- 4
Description
Nano has got these key-binds to cycle current file:
ALT+<orALT+,: go to the previous file.ALT+>orALT+.: go to the next file
I found that I can use CTRL+P to switch current file in edit, but each time it requires four or more key strokes:
- CTRL
- P
- UP/DOWN (one or more times)
- ENTER
I need to press my keyboard 4-5 times to jump to another file.
while ALT+< and ALT+> only require two key strokes: ALT -> , or .
It is a faster way to cycle files if there are less than 5 files opening at the same time.
And two menu items can be added too:
- View -> Next file (N)
ALT+> - View -> Previous file (P)
ALT+<
Is it possible to add this key bindings?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing CTRL+P file-switching path and the View menu entries. Add the requested ALT+, and ALT+. bindings for previous and next file, expose matching View menu items, and verify both routes cycle files as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100