ZIm/crates
Thorsten Ball 11bd28870a
editor: Add MoveUpByLines and MoveDownByLines actions (#7208)
This adds four new actions:

- `editor::MoveUpByLines`
- `editor::MoveDownByLines`
- `editor::SelectUpByLines`
- `editor::SelectDownByLines`

They all take a count by which to move the cursor up and down.
(Requested by Adam here:
https://twitter.com/adamwathan/status/1753017094248018302)


Example `keymap.json` entries:

```json
{
  "context": "Editor",
  "bindings": [
    "alt-up":         [ "editor::MoveUpByLines",     { "lines": 3 } ],
    "alt-down":       [ "editor::MoveDownByLines",   { "lines": 3 } ],
    "alt-shift-up":   [ "editor::SelectUpByLines",   { "lines": 3 } ],
    "alt-shift-down": [ "editor::SelectDownByLines", { "lines": 3 } ]
  ]
}
```

They are *not* bound by default, so as to not conflict with the
`alt-up/down` bindings that already exist.

Release Notes:

- Added four new actions: `editor::MoveUpByLines`,
`editor::MoveDownByLines`, `editor::SelectUpByLines`,
`editor::SelectDownByLines` that can take a line count configuration and
move the cursor up by the count.

### Demo



https://github.com/zed-industries/zed/assets/1185253/e78d4077-5bd5-4d72-a806-67695698af5d




https://github.com/zed-industries/zed/assets/1185253/0b086ec9-eb90-40a2-9009-844a215e6378
2024-02-02 08:48:04 -07:00
..
activity_indicator Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
ai Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
assets Fix some formatting issues in Cargo.toml files (#7127) 2024-01-30 22:01:35 -05:00
assistant assistant: render api key editor if no credentials are set (#7197) 2024-02-01 11:16:03 +01:00
audio Restrict access to global Audio (#7122) 2024-01-30 20:49:58 -05:00
auto_update app version to server (#7130) 2024-01-31 15:46:24 -07:00
breadcrumbs Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
call Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
channel Links to channel notes (#7262) 2024-02-01 22:22:02 -07:00
cli Clean up Cargo.toml files (#7044) 2024-01-29 23:47:20 -05:00
client app version to server (#7130) 2024-01-31 15:46:24 -07:00
clock Clean up Cargo.toml files (#7044) 2024-01-29 23:47:20 -05:00
collab Links to channel notes (#7262) 2024-02-01 22:22:02 -07:00
collab_ui Links to channel notes (#7262) 2024-02-01 22:22:02 -07:00
collections gpui: Add Global marker trait (#7095) 2024-01-30 14:08:20 -05:00
color Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
command_palette Fix some typos in comments (#7169) 2024-01-31 16:21:33 -05:00
copilot Send lsp_types::InitializeParams with Zed version (#7216) 2024-02-01 18:39:28 +02:00
copilot_ui WIP: Add a setting to visually redact enviroment variables (#7124) 2024-01-31 11:42:09 -08:00
db Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
diagnostics Fix some formatting issues in Cargo.toml files (#7127) 2024-01-30 22:01:35 -05:00
editor editor: Add MoveUpByLines and MoveDownByLines actions (#7208) 2024-02-02 08:48:04 -07:00
feature_flags Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
feedback app version to server (#7130) 2024-01-31 15:46:24 -07:00
file_finder Order history items by open recency (#7248) 2024-02-01 23:45:03 +02:00
fs Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
fsevent fix: isolate macos-specific dependencies (#6854) 2024-01-27 13:38:55 +01:00
fuzzy Fix panic in fuzzy-finder for unicode characters (#7080) 2024-01-30 16:10:35 +01:00
git Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
go_to_line Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
gpui Revert "Avoid excessive blocking of main thread when rendering in direct mode (#7253)" (#7272) 2024-02-02 10:33:08 +01:00
gpui_macros Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
install_cli Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
journal Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
language Show diagnostics in scrollbar (#7175) 2024-02-02 12:10:42 +02:00
language_selector Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
language_tools Send lsp_types::InitializeParams with Zed version (#7216) 2024-02-01 18:39:28 +02:00
live_kit_client Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
live_kit_server Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
lsp Add OCaml support (#6929) 2024-02-02 16:58:07 +02:00
markdown_preview Fix scrolling and wrapping in the markdown preview renderer (#7234) 2024-02-01 09:07:01 -08:00
media Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
menu Clean up Cargo.toml files (#7044) 2024-01-29 23:47:20 -05:00
multi_buffer Show diagnostics in scrollbar (#7175) 2024-02-02 12:10:42 +02:00
node_runtime Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
notifications Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
outline Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
picker Fix some formatting issues in Cargo.toml files (#7127) 2024-01-30 22:01:35 -05:00
plugin Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
plugin_macros Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
plugin_runtime Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
prettier Send lsp_types::InitializeParams with Zed version (#7216) 2024-02-01 18:39:28 +02:00
project project: Do not inline LSP related methods 2024-02-02 11:38:09 +01:00
project_panel Fix project panel selection related issues (#7245) 2024-02-02 11:17:46 +02:00
project_symbols Send lsp_types::InitializeParams with Zed version (#7216) 2024-02-01 18:39:28 +02:00
quick_action_bar Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
recent_projects Fix some formatting issues in Cargo.toml files (#7127) 2024-01-30 22:01:35 -05:00
refineable Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
release_channel app version to server (#7130) 2024-01-31 15:46:24 -07:00
rich_text Add inline code blocks in markdown preview (#7277) 2024-02-02 16:51:05 +02:00
rope Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
rpc disallow opening private files (#7165) 2024-01-31 12:05:51 -08:00
search Fix some formatting issues in Cargo.toml files (#7127) 2024-01-30 22:01:35 -05:00
semantic_index Fix some formatting issues in Cargo.toml files (#7127) 2024-01-30 22:01:35 -05:00
settings app version to server (#7130) 2024-01-31 15:46:24 -07:00
snippet Clean up Cargo.toml files (#7044) 2024-01-29 23:47:20 -05:00
sqlez Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
sqlez_macros Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
story Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
storybook Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
sum_tree Clean up Cargo.toml files (#7044) 2024-01-29 23:47:20 -05:00
terminal Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
terminal_view Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
text Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
theme Watch the themes directory for changes (#7173) 2024-01-31 18:17:31 -05:00
theme_importer theme_importer: Add ability to print theme JSON schema (#7129) 2024-01-30 23:33:54 -05:00
theme_selector Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
ui Fix some formatting issues in Cargo.toml files (#7127) 2024-01-30 22:01:35 -05:00
util Filter LSP github releases that have no assets to properly download LSP servers (#7189) 2024-02-01 10:59:35 +02:00
vcs_menu Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
vim Send lsp_types::InitializeParams with Zed version (#7216) 2024-02-01 18:39:28 +02:00
welcome Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
workspace Fix moving focus to docks when navigating via keybinds (#7221) 2024-02-01 16:28:51 +01:00
zed Fix Go tests failing on main (#7285) 2024-02-02 16:35:58 +01:00
zed_actions Fix casing of OpenZedUrl action (#7045) 2024-01-29 23:50:31 -05:00