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

Improve multibuffer excerpt affordances #22167

Conversation

danilo-leal
Copy link
Contributor

@danilo-leal danilo-leal commented Dec 17, 2024

Changes:

  • Increase expand affordance surface area
  • Ensure expand buttons have tooltips with keybindings
  • Make line numbers clickable to jump you to location (only in multibuffers)
  • Hide the "Jump To File" element in not-focused excerpts

Improvements to consider for follow-up PRs:

  1. Experiment with increasing the width of the clickable surface area for line numbers
  2. Don't show (or disable) the "expand excerpt" button when at the top or bottom edge of the file
  3. Once you jump to location, centralize the cursor scroll position

Release Notes:

  • Improved multibuffer's "expand excerpt" affordance
  • Fixed "jump to file/location" and "expand excerpt" keybinding display
  • Made clicking on line numbers in multibuffers jump you to cursor location in file

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 17, 2024
@SomeoneToIgnore SomeoneToIgnore force-pushed the multibuffer-excerpt-interaction-improvement branch from 7e89b67 to 1a331ff Compare December 23, 2024 22:12
@danilo-leal danilo-leal marked this pull request as ready for review December 24, 2024 14:52
@agu-z agu-z added this pull request to the merge queue Dec 30, 2024
Merged via the queue into zed-industries:main with commit ad51df7 Dec 30, 2024
14 checks passed
@agu-z agu-z deleted the multibuffer-excerpt-interaction-improvement branch December 30, 2024 12:24
@notpeter
Copy link
Member

notpeter commented Jan 1, 2025

Make line numbers clickable to jump you to location (only in multibuffers)

🫶

helgemahrt pushed a commit to helgemahrt/zed that referenced this pull request Jan 1, 2025
Changes:
- [x] Increase expand affordance surface area
- [x] Ensure expand buttons have tooltips with keybindings
- [x] Make line numbers clickable to jump you to location (only in
multibuffers)
- [x] Hide the "Jump To File" element in not-focused excerpts

Before merging it:

- [x] Fix off-by-one header focus styles glitch

Improvements to consider for follow-up PRs:

1. Experiment with increasing the width of the clickable surface area
for line numbers
2. Don't show (or disable) the "expand excerpt" button when at the top
or bottom edge of the file
3. Once you jump to location, centralize the cursor scroll position

Release Notes:

- Improved multibuffer's "expand excerpt" affordance
- Fixed "jump to file/location" and "expand excerpt" keybinding display
- Made clicking on line numbers in multibuffers jump you to cursor
location in file

---------

Co-authored-by: Thorsten Ball <[email protected]>
Co-authored-by: Agus Zubiaga <[email protected]>
Co-authored-by: Kirill Bulatov <[email protected]>
Co-authored-by: Agus Zubiaga <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants