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

fix(explorer/#528): #528 - Part 1 - Initial vim navigation for Explorer #2502

Merged
merged 10 commits into from
Sep 24, 2020

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Sep 23, 2020

This brings in the the vim-navigable-tree introduced in #2492 , and wires it up to the file explorer:

2020-09-23 12 32 08

This supports some initial vim-style navigation, like j/k/zz/zb/zt.

There are a few additional gestures I'd like to support, to be able to resolve (soon) #528 :

  • Implement a search (hook up /, ?, n, N) experience
  • Implement cut/copy/paste (yy, dd, pp).

@bryphe
Copy link
Member Author

bryphe commented Sep 24, 2020

/azp run

@bryphe bryphe merged commit 3058e0b into master Sep 24, 2020
@bryphe bryphe deleted the fix/explorer/528.1/initial-vim-nav branch September 24, 2020 23:45
bryphe added a commit that referenced this pull request Sep 30, 2020
Following from #2502, and working towards #528, this adds `/` & `?` search functionality for the explorer, search results, and diagnostics:

![2020-09-28 15 53 54](https://user-images.githubusercontent.com/13532591/94494102-2eb76500-01a3-11eb-910c-df1cdac155c7.gif)

__TODO:__
- [x] When the search query changes, focus the next match.
- [x] Tweak theme colors - the 'active' background is a bit intense for the search bar, and the foreground search icon is drowned out
- [x] Add additional 'selection' indication - in some themes, it's hard to differentiate search results vs selection
 
__Additional work:__
- Set up `yy` (copy), `dd` (cut), and `p` gestures for the vim list, and support in the file explorer
- Set up `o` and `O` gestures in file explorer to insert a new file
- Visual mode primitives - `v`/`V` to switch to visual mode for multi-selection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant