atuinsh / atuin

✨ Magical shell history
https://atuin.sh
MIT License
20.29k stars 549 forks source link

Support customizing data displayed for TUI search #998

Open lazywei opened 1 year ago

lazywei commented 1 year ago

I'm building atuin on HEAD,

This is working as intended

atuin search --format "{time} {command}"

But the following doesn't, it just ignore the specified format

atuin search -i --format "{time} {command}"

Is this expected?

conradludgate commented 1 year ago

Yes, that is expected. I've been considering changing it to properly respect what flags are supported under interactive or not, but I haven't managed to find a decent solution yet

lazywei commented 1 year ago

Is it possible to allow user supplied a fzf command to the ctrl-r binding? so that the source will coming from atuin while the filtering / UI can be configured by a fzf command and/or fzf opts. The reason is FZF has already solved a lot of the UI configurability problems and it also provides a lot of flexibility. So it would be great if we can re-use that.

atuin-bot commented 2 months ago

This issue has been mentioned on Atuin Community. There might be relevant details there:

https://forum.atuin.sh/t/hostname-in-tui-overview-and-inspector/397/2

iloveitaly commented 18 hours ago

My use case here is I don't care about anything other than {command} in my results and would love the tui list to be nice and clean.