sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
4.02k stars 111 forks source link

FR: Support for git pickaxe for `:DiffviewFileHistory` #244

Closed chrisgrieser closed 1 year ago

chrisgrieser commented 1 year ago

As far as I can tell, the :DiffviewFileHistory allows to dynamically search for an author name or the content of a commit message, but not for changes i.e., git pickaxe (git docs for git log -[SG])

Going through the docs, the only way to use the -G and -S options seems to be the default_args or log_options config, which would define those statically, instead of being able to dynamically search for a string.

sindrets commented 1 year ago

Yes, I've been meaning to add this for a while, but I haven't had much time to work on the plugin lately.

You can't add -[SG] to default_args. The default_args entries only accepts the same options as their respective commands. See :h :DiffviewOpen and :h :DiffviewFileHistory for the overview of the available options.

chrisgrieser commented 1 year ago

thanks so much 🥳