lambdalisue/vim-fern

Reveal doesn't work with slach (`/`) separated path on Windows

Open

#478 geöffnet am 5. Juli 2023

Auf GitHub ansehen
 (13 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Vim Script (50 Forks)github user discovery
bughelp wantedwindows

Repository-Metriken

Stars
 (1.353 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Thanks for this plugin. I recently switched from nerdtree, it is so much faster.

Here is the issue. If I open a file via Fern explorer or Telescope search, then I can trigger Fern . -reveal=% -drawer -toggle to reveal current file. However, if the buffer is opened via diffview, then reveal won't work, it will always open the root directory and focus the root folder.

Steps to open a buffer via diffview:

  1. Setup up the plugin: use "sindrets/diffview.nvim"
  2. Open a git project and edit something
  3. Run :DiffviewOpen master to diff against master branch
  4. Press gf to go to selected file for editing
  5. In current buffer try to trigger Fern command to reveal it in directory

Contributor Guide