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

Provide ability to add own log command #1526

Open
5 tasks done
PlasmaHH opened this issue Mar 1, 2024 · 2 comments
Open
5 tasks done

Provide ability to add own log command #1526

PlasmaHH opened this issue Mar 1, 2024 · 2 comments

Comments

@PlasmaHH
Copy link

PlasmaHH commented Mar 1, 2024

I have been using fzf on the command line for a long time now and been using an integration for git parameters extensively. However instead of pure git log output I am using an alternative output formatter called git-foresta. For this I am using an alias instead of log.

It would be most useful for me if fzf.vim could call a different command alltogether. So in vim.vim commits ~line 1457 instead of assembling the command with the commits_log_options check for the existence of a complete command option and if present use that instead.

@junegunn
Copy link
Owner

Should that be named g:fzf_vim.commits_command? Can you give an example of your git-foresta command?

@PlasmaHH
Copy link
Author

The aliases I use are pretty easy:

    lol = !git-foresta --style=10 $1
    lola = !git lol --all $1

as the git-foresta script hides basically all details.

but in the end I would think the default of the new option is log and one could replace it by whatever alias one likes (lola in my case probably), thats the most flexible thing to do.

Since the current config for the logs options is commits_log_options I would suggest maybe commits_log_command ?

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

No branches or pull requests

2 participants