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

Implement "Goto next buffer" command #950

Merged
merged 2 commits into from
Nov 4, 2021

Conversation

ath3
Copy link
Contributor

@ath3 ath3 commented Nov 1, 2021

In kakoune / tmux i often use goto next buffer / next window shortcut.
I find it faster for my workflow than using the buffer picker so i tried implementing it.

@archseer
Copy link
Member

archseer commented Nov 3, 2021

In kakoune / tmux i often use goto next buffer / next window shortcut.

Is this a built-in shortcut? I can't seem to find docs for gn. Should there be a matching shortcut for previous buffer?

@archseer
Copy link
Member

archseer commented Nov 3, 2021

I usually use ga to switch between two buffers (.c and.h files for example)

@ath3
Copy link
Contributor Author

ath3 commented Nov 3, 2021

You are right, there is a function for previous buffer too.
Its not bound to specific shortcut, but the functions are builtin: buffer-next / bn / buffer-previous / bp.

I implemented now the Goto previous buffer command.

Im ok with having no default shortcuts for them, i only use the forward one to cycle through my opened buffers.

helix-term/src/commands.rs Outdated Show resolved Hide resolved
helix-term/src/commands.rs Outdated Show resolved Hide resolved
@ath3 ath3 force-pushed the goto-next-buf branch 2 times, most recently from 75fafee to 05706f4 Compare November 3, 2021 19:59
@ath3
Copy link
Contributor Author

ath3 commented Nov 3, 2021

Thanks!
I made and pushed the changes you suggested.

helix-term/src/commands.rs Outdated Show resolved Hide resolved
@archseer archseer merged commit 7b65a6d into helix-editor:master Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants