ZIm/crates/workspace/src
Andrew Lygin 935e0d547e
Improve Find/Replace shortcuts (#10297)
This PR changes ways the Find/Replace functionality in the
Buffer/Project Search is accessible via shortcuts. It makes those panels
work the same way as in VS Code and Sublime Text.

The details are described in the issue: [Make Find/Replace easier to
use](https://github.com/zed-industries/zed/issues/9142)

There's a difficulty with the Linux keybindings:

VS Code uses on MacOS (this PR replicates it):

| Action | Buffer Search | Project Search |
| --- | --- | --- |
| Find | `cmd-f` | `cmd-shift-f` |
| Replace | `cmd-alt-f` | `cmd-shift-h` |

VS Code uses on Linux (this PR replicates all but one):

| Action | Buffer Search | Project Search |
| --- | --- | --- |
| Find | `ctrl-f` | `ctrl-shift-f` |
| Replace | `ctrl-h`  | `ctrl-shift-h` |

The problem is that `ctrl-h` is already taken by the `editor::Backspace`
action in Zed on Linux.

There's two options here:

1. Change keybinding for `editor::Backspace` on Linux to something else,
and use `ctrl-h` for the "replace in buffer" action.
2. Use some other keybinding on Linux in Zed. This PR introduces
`ctrl-r` for this purpose, though I'm not sure it's the best choice.

What do you think?

fixes #9142

Release Notes:

- Improved access to "Find/Replace in Buffer" and "Find/Replace in
Files" via shortcuts (#9142).

Optionally, include screenshots / media showcasing your addition that
can be included in the release notes.

- N/A
2024-04-08 22:07:59 -07:00
..
persistence collab ui: Fix notification windows on external monitors (#9817) 2024-03-26 13:07:38 -07:00
dock.rs workspace: Fix panel resize handles leaking through zoomed panels (#9909) 2024-03-28 12:18:51 +01:00
item.rs Add the ability for extensions to provide language settings (#10296) 2024-04-08 19:17:12 -04:00
modal_layer.rs Occlude only modal and not the space around it used to center it 2024-03-11 18:13:00 +01:00
notifications.rs Improve lsp notifications (#10220) 2024-04-06 10:17:18 -06:00
pane.rs Improve Find/Replace shortcuts (#10297) 2024-04-08 22:07:59 -07:00
pane_group.rs themes: Add pane_group.border color (#9986) 2024-04-01 12:07:26 -04:00
persistence.rs WIP: Refactor Linux platform implementation (#10227) 2024-04-08 16:40:35 -07:00
searchable.rs vim: Allow search with operators & visual mode (#10226) 2024-04-08 15:20:14 -06:00
shared_screen.rs vim: Allow : in empty panes and screen shares (#10171) 2024-04-04 14:24:49 -06:00
status_bar.rs Rename overflow_hidden_{x,y} to overflow_{x,y}_hidden (#4146) 2024-01-18 22:10:41 -05:00
toolbar.rs Editor toolbar configuration (#7338) 2024-02-03 22:40:54 +02:00
workspace.rs markdown preview: Improve live preview (#10205) 2024-04-08 21:17:40 +02:00
workspace_settings.rs Add the ability for extensions to provide language settings (#10296) 2024-04-08 19:17:12 -04:00