justinmk / vim-dirvish

Directory viewer for Vim :zap:
Other
1.19k stars 64 forks source link

show the metadata next to filename #240

Open TamaMcGlinn opened 1 year ago

TamaMcGlinn commented 1 year ago

There's a feature in the original Emacs dirvish that would be great to have. Using the attribute git-msg you can see the last commit that modified a file or directory, just like how it is shown on github/gitlab.

image

As far as I can find, there is not yet any way to do this in dirvish; it probably makes sense to make a separate plugin for this, but any pointers would be much appreciated.

justinmk commented 1 year ago

a feature in the original Emacs dirvish ...

vim-drivish is the original 😏 , from the readme :

The name dirvish is a tribute to vim-dirvish.

P.S. the name "dirvish" has at least three puns:

  1. dir = "directory"
  2. vi = vi/vim
  3. sh = shell

The last two don't apply to the emacs dirvish! Though, it looks like a cool plugin.

Anyway... now that Vim and Nvim have "virtual text", vim-dirvish should add a hook similar to dirvish#add_icon_fn, perhaps named something like dirvish#add_overlay(). Then plugins could add virtual text next to filenames.