zed/crates/editor/src
Kirill Bulatov 3bebb8b401
Allow to cycle through center/top/bot scroll positions (#16134)
On top of `editor::ScrollCursorCenter`, `editor::ScrollCursorTop`,
`editor::ScrollCursorBottom` actions, adds an
`editor::ScrollCursorCenterTopBottom` one, that allows using a single
keybinding to scroll between positions on the screen.

The implementation matches a corresponding Emacs feature: there's a
timeout (1s) that is kept after every switch, to allow continuously
changing the positions, center (initial) -> top -> bottom
Scrolling behavior is the same as the existing actions (e.g. editor will
ignore scroll to bottom, if there's not enough space above).

After 1s, next position is reset to the initial, center, one.


Release Notes:

- Added an `editor::ScrollCursorCenterTopBottom` action for toggling
scroll position with a single keybinding

---------

Co-authored-by: Alex Kladov <aleksey.kladov@gmail.com>
2024-08-13 00:32:30 +03:00
..
display_map assistant: Polish /workflow and steps UI (#15936) 2024-08-08 15:46:33 +02:00
git Update http crate name (#15041) 2024-07-23 15:01:05 -07:00
scroll Allow to cycle through center/top/bot scroll positions (#16134) 2024-08-13 00:32:30 +03:00
signature_help
test chore: Bump Rust version to 1.80 (#15186) 2024-07-25 22:48:42 +02:00
actions.rs Allow to cycle through center/top/bot scroll positions (#16134) 2024-08-13 00:32:30 +03:00
blame_entry_tooltip.rs Add button to copy SHA from Git blame (#14883) 2024-07-21 12:02:16 -04:00
blink_manager.rs Hide blinking cursor when window is deactivated (#15408) 2024-07-30 10:49:15 +03:00
debounced_delay.rs
display_map.rs assistant: Polish /workflow and steps UI (#15936) 2024-08-08 15:46:33 +02:00
editor.rs Allow to cycle through center/top/bot scroll positions (#16134) 2024-08-13 00:32:30 +03:00
editor_settings.rs settings_ui: Add line number settings controls (#15310) 2024-07-26 18:31:45 -04:00
editor_settings_controls.rs ui: Give NumericSteppers an ID (#15344) 2024-07-27 13:02:27 -04:00
editor_tests.rs Allow to cycle through center/top/bot scroll positions (#16134) 2024-08-13 00:32:30 +03:00
element.rs Allow to cycle through center/top/bot scroll positions (#16134) 2024-08-13 00:32:30 +03:00
git.rs
highlight_matching_bracket.rs
hover_links.rs lsp: Check if "Goto Definition" supported before request (#15111) 2024-07-24 23:28:23 +03:00
hover_popover.rs Selectable diagnostic popover text (#14518) 2024-07-28 23:13:13 -06:00
hunk_diff.rs assistant: Polish /workflow and steps UI (#15936) 2024-08-08 15:46:33 +02:00
indent_guides.rs
inlay_hint_cache.rs Handle buffer diff base updates and file renames properly for SSH projects (#14989) 2024-07-23 11:32:37 -07:00
inline_completion_provider.rs Truncate line when accepting inline suggestions for Supermaven (#13884) 2024-07-22 11:59:38 -07:00
items.rs Open workflow step editors as preview tabs (#15928) 2024-08-07 19:33:58 -06:00
linked_editing_ranges.rs
mouse_context_menu.rs lsp: Support Goto Declaration (#15785) 2024-08-06 11:20:51 +02:00
movement.rs
persistence.rs zed: Mark restored buffers as conflicted if file changed on disk between store & restore (#15207) 2024-07-25 18:04:47 +02:00
rust_analyzer_ext.rs Start on adding support for editing via the assistant panel (#14795) 2024-07-19 11:13:15 +02:00
scroll.rs Clean up inline assist editor rendering (#15536) 2024-07-31 17:43:08 +02:00
selections_collection.rs vim: Support ranges in command (#15985) 2024-08-08 21:47:27 +01:00
signature_help.rs
tasks.rs refactoring: Use helper instead of adjusting selection manually (#15262) 2024-07-26 11:12:33 +02:00
test.rs Feature/fallback fonts (#15306) 2024-07-26 16:42:21 -07:00