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

Allow for customization of CTRL-R history listing #2080

Closed
5 of 10 tasks
pabloariasal opened this issue Jun 11, 2020 · 1 comment
Closed
5 of 10 tasks

Allow for customization of CTRL-R history listing #2080

pabloariasal opened this issue Jun 11, 2020 · 1 comment

Comments

@pabloariasal
Copy link

  • I have read through the manual page (man fzf)
  • I have the latest version of fzf
  • I have searched through the existing issues

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

Currently the CTRL-R command used to print the history is hardcoded to fc -rl 1, which shows the default history listing containing the event number followed by a command.
The fact that the command is hardcoded and can't be modified hinders the ability to customize how history is displayed. For example, using history -E or fc -rld the history listing can be extended to show the time when the command was run and the corresponding exit code.

My suggestion is to introduce a FZF_CTRL_R_COMMAND variable (just like CTRL-T and ALT-C), that can be set by the users who want to customize history listing. I can create a PR if considered a valuable feature.

@junegunn
Copy link
Owner

Thanks for the suggestion, but I decided not to add more options to shell extensions. See my previous comment on the matter: #1492 (comment)

You might also want to see https://github.com/junegunn/fzf/search?q=FZF_CTRL_R_COMMAND&type=Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants