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

switch-to-buffer should not start on the current buffer #3513

Open
3 tasks
brosasaki opened this issue Sep 19, 2024 · 1 comment
Open
3 tasks

switch-to-buffer should not start on the current buffer #3513

brosasaki opened this issue Sep 19, 2024 · 1 comment
Labels
ui/ux Nyxt User Interface: themes, appearance and usability.

Comments

@brosasaki
Copy link

Purpose of request:
To improve the user experience when switching buffers.

Describe your proposed change:
When using switch-to-buffer, the current buffer should not be the initial focus of the highlight/pointer; either move it to the bottom of the list, or move the pointer by one increment.

Why do you believe this to be an improvement?
It would require one less button press to perform an action that is far more common (switching to the next buffer). There is little use case for switching to the currently-visited buffer.

Additional context/User story:
In Emacs, the switch-to-buffer command does not include the current buffer in the completion list (though it may be entered). Moreover, when using vertico-mode (which appears to have inspired Nyxt's interface), the current buffer is placed at the opposite end of the list from the initial pointer position.

Screenshots/Mock ups:
N/A


Pre-Build Checklist:

  • Discussion has occurred.
  • One or more developers have signed off on this change.
  • One or more user researchers have signed off on this change.
@brosasaki brosasaki added the ui/ux Nyxt User Interface: themes, appearance and usability. label Sep 19, 2024
@aadcg
Copy link
Member

aadcg commented Oct 8, 2024

It has been discussed before:

I agree 100%. The reason why it doesn't exhibit that behavior is because the current buffer suggestion at the prompt buffer sets the main buffer. In other words, it would be jarring for switch-buffer to immediately change the buffer view. See commit c61c17d. I find the current iteration a bit clumsy though. In my view, a better default would be to list the last visited buffer at the top of the prompt buffer; and disable having the main buffer follow the prompt buffer's current buffer suggestion. But we'd need to discuss it with @jmercouris.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/ux Nyxt User Interface: themes, appearance and usability.
Development

No branches or pull requests

2 participants