Commit Graph
547 Commits
Author SHA1 Message Date
Kirill Bulatov 97bea79029 Add project search history 2023-08-01 01:31:28 +03:00
Kirill Bulatov a4f69b5b45 Add buffer search history 2023-08-01 01:31:28 +03:00
Nate Butler 67f2c24269 Format 2023-07-31 12:50:30 -04:00
Nate Butler db79c2a109 Add additional storage filetypes 2023-07-31 12:49:55 -04:00
Mikayla Maki 783832d41d feat(workspace): add action for closing inactive editors on all panes (#2771)
using zed more and more to develop zed itself I'm finding some small qol
features missing, this is one of them
I'm very used to open two or three splits, and sometimes I want to close
everything except for the active editor, but that wasn't supported, as
the `pane::CloseInactiveItems` action only closes inactive items on the
active pane

so I've implemented it really quick, although I'm not sure it's the
right way to do this

note: I really don't like the default keybinding I've set it to, I have
this action bound to `cmd-shift-w` on all editors, but in zed is taken,
so I chose something that's free but without thinking too much about it

Release Notes:

- Added action for closing inactive editors from all panes
2023-07-27 18:11:11 -07:00
Mikayla Maki ec042e0c14 Rework close_inactive_items to await all tasks
Update action name to be more accurate
2023-07-27 17:58:48 -07:00
KCaverly ccb967c295 remove default keymap for semantic search modal 2023-07-26 16:59:19 -04:00
Derek Briggs ecbeb0741c icon updates 2023-07-26 11:19:34 -06:00
KCaverly 3d2d6b9fa2 catchup with main 2023-07-26 09:50:38 -04:00
Joseph T. Lyons e7724c8621 Add open file in project finder via space (#2785)
@mikayla-maki for 👀 

[This PR added in the ability to rename a file via
`enter`](https://github.com/zed-industries/zed/pull/2784). Previously,
`enter` was used to both open a file and confirm a rename, so this PR
changes the opening of a file to use `space`, which is what VS Code
uses. It also makes a bit more sense because now `enter` is just used to
start a rename and confirm the rename, vs being used for 2 different
actions.

N/A on the release notes, as I adjusted the release note in the
previously-tagged PR.

Release Notes:

- N/A
2023-07-24 16:35:01 -04:00
Mikayla Maki ebb923a1c1 Add MacOS standard key binding for file renames 2023-07-24 10:20:10 -07:00
Kirill Bulatov aae5cf61e1 Add search in directory action in the project panel 2023-07-21 22:47:57 +03:00
Conrad Irwin f73e9f73b5 Vim shortcuts (#2760)
Refactors some of the vim bindings to make the vim.json file less
obtuse.

Release Notes:

- vim: add `;` and `,` to repeat last `{f,F,t,T}`
- vim: add zed-specific shortcuts for common IDE actions:
- - `g A` to find all references
- - `g .` to open the code actions menu.
- - `c d` for rename
2023-07-21 10:31:18 -06:00
Conrad Irwin 5ddb6c1db0 vim: add , and ; 2023-07-21 09:50:22 -06:00
Conrad Irwin 0f8a1759ae Quality of life shortcuts for code actions 2023-07-21 09:47:15 -06:00
Conrad Irwin a29e2eb5d4 refactor: Remove G/Z Namespace support
This previously enabled things like `d g g` to work, but we can
fix that instead by not clearing out pending vim state on change.

Either way, it is unnecessary and causes some user-confusion
(zed-industries/community#176), so remove this code for now; and use
comments to organize the file a bit instead.
2023-07-21 09:47:14 -06:00
Conrad Irwin e6a9730bfa Fix shift-enter in search (#2772)
Fixes shift-enter to go to previous result.

Release Notes:

- To type a newline in search use `ctrl-enter` (or `ctrl-shift-enter`
for a newline below).
2023-07-21 09:23:04 -06:00
Conrad Irwin 06405e4e19 Fix shift-enter in search
If you want to type a newline in an auto_height editor, ctrl and
ctrl-shift are your friends.
2023-07-21 09:10:12 -06:00
Alex Viscreanu 9a31609357 feat(workspace): add action for closing inactive editors on all panes 2023-07-21 13:16:00 +02:00
Joseph T. Lyons cd9caa8011 Add key binding to close all docks 2023-07-21 02:44:44 -04:00
Conrad Irwin bf78cb5f92 Fix enter in search (#2768)
Fixes a regression in non-vim search caused by my changes to vim search.

Release Notes:

- N/A
2023-07-20 20:53:31 -06:00
Conrad Irwin 94bdefefbe Fix enter in search 2023-07-20 20:48:36 -06:00
Mikayla Maki 167d34be50 Add wrap guides and associated settings 2023-07-20 16:39:13 -07:00
Derek Briggs 830e4f570e Adjustment 2023-07-20 15:05:26 -06:00
Derek Briggs 2fede58bb8 Detail adjustments 2023-07-20 15:04:23 -06:00
Mikayla Maki 7371d64993 Folder icons (#2764)
- Updates icons and adds more
- Adds ability to choose folders or chevrons in user settings
- Adds ability to set indent size in user settings
2023-07-20 13:59:21 -07:00
Derek Briggs c86c735acc Solid tab on folder icon 2023-07-20 13:13:44 -06:00
Derek Briggs 083552ec62 add indent size to project panel settings 2023-07-20 12:30:35 -06:00
Derek Briggs 0f8a72902a icon adjustment 2023-07-20 12:29:57 -06:00
Derek Briggs a176d5c689 gitmodules to git icon 2023-07-20 12:29:50 -06:00
Derek Briggs 27676c487a Update default settings 2023-07-20 12:03:07 -06:00
Derek Briggs 183f95508a Add moar icons 2023-07-20 12:01:41 -06:00
Derek Briggs 4f87366d4e code icon adjustment 2023-07-20 10:15:20 -06:00
Derek Briggs 3b694f685b Updated icons with additions 2023-07-20 10:07:32 -06:00
Conrad Irwin 7a098c5c48 Default keybindings for activating pane by direction
Breaking change: previously cmd-k cmd-{left,right} moved to the
{previous,next} pane; now they will move in the specified direction.
2023-07-19 18:33:08 -06:00
Conrad Irwin 2b63422a13 vim: Add support for ctrl-w commands
Primarily {h,j,k,l,left,right,up,down} for moving to a pane by
direction; but also {w,W,p} for going forward/back, and {v,s} for
splitting a pane vertically/horizontally, and {c,q} to close a pane.

There are a large number of ctrl-w commands that are not supported, and
which fall into three buckets:

* switch this pane with that one (VScode also has this, and it's a
  requested feature)
* move to top/bottom/leftmost/rightmost
* counts on any of these
* jump to "definition/file-under-cursor/etc.etc." in a new pane.
2023-07-19 18:29:13 -06:00
Conrad Irwin 08d5b2fd81 Make tab non-functional in vim mode (#2753)
Make tab do nothing (a surprisingly common vim request).

- Fixes
([#988](https://github.com/zed-industries/community/issues/988)).
- Fixes
([#897](https://github.com/zed-industries/community/issues/897)).
2023-07-19 16:26:32 -06:00
Mikayla Maki 72f550e68d Mute mics by default
Fix bug when file ends in line with 1 more digit displayed than previous lines
Remove stale UI elements from voice call development
2023-07-19 12:34:24 -07:00
Mikayla Maki 5a4f9c1eb6 File icons (#2719)
This PR adds the next most requested editor feature.

TODO:
- [x] Figure out styles and icons for supported file types with

fixes https://github.com/zed-industries/community/issues/206

Release Notes:

- Added file icons
2023-07-19 11:17:01 -07:00
Mikayla Maki f9d722e8fd Add a few more spare associations 2023-07-19 11:14:31 -07:00
Derek Briggs 82ab668575 Fix files that don’t have a prefix 2023-07-19 11:10:30 -07:00
Derek Briggs 8906ce8c8b Update icons to new zed file icon set 2023-07-19 11:10:30 -07:00
Mikayla Maki 157e96bc4d Make file types live reload 2023-07-19 11:10:30 -07:00
Mikayla Maki 98f263639e Added file suffix and icon associations data 2023-07-19 11:10:30 -07:00
Mikayla Maki e68edb7239 Add settings 2023-07-19 11:10:30 -07:00
Conrad Irwin ac91fb0990 Make tab non-functional in vim mode
Fixes: zed-industries/community#988
Fixes: zed-industries/community#897
2023-07-19 10:25:17 -06:00
Conrad Irwin 8ff6450c40 Merge branch 'main' into vim-search 2023-07-19 09:48:25 -06:00
KCaverly 88d4f066dc catch up with main 2023-07-18 10:26:28 -04:00
KCaverly 09b64c5c16 rename vector_store crate to semantic_index 2023-07-17 17:06:10 -04:00
Conrad Irwin 521a8e4299 Allow ctrl+[ as an alias for escape
Also remove unneeded mappings in `g` and `z` modes

Fixes: zed-industries/community#358
2023-07-17 14:59:08 -06:00