atuinsh/atuin

Problems understanding history_format

Jorres opened this issue · 4 comments

Hey! I'm loving Atuin this far, happy user for over two years. Thank you for your amazing work!

I'm having difficulties understanding the piece of docs about history_format: https://docs.atuin.sh/configuration/config/#history_format

For simplicity, assume I want to make the duration field disappear.

It seems to work when I invoke atuin CLI like this:

atuin history list --format "{time} - {directory}$\t{command}"
...
2024-03-19 12:09:10 - /home/jorres$     ls

However, I almost never invoke CLI. I almost always use the TUI. The option does not seem to work in the TUI. Specify the config option like this:

history_format = "{time}\t{command}"

Please see the following screenshot, the format does not seem to have changed:

image

Am I doing something wrong? I would assume that TUI is the primary use case for many users, it would be unexpected that something works in the CLI, exists in the stable documentation, but does not work in the TUI. Thank you for the help!

Hey! I'm loving Atuin this far, happy user for over two years. Thank you for your amazing work!

Thank you, glad Atuin is working well for you!

I've just updated the docs, but history_format only applies to CLI output. The TUI search output is not configurable at this time

edte commented

Hey! I'm loving Atuin this far, happy user for over two years. Thank you for your amazing work!

Thank you, glad Atuin is working well for you!

I've just updated the docs, but history_format only applies to CLI output. The TUI search output is not configurable at this time

截屏2024-04-11 16 18 01

the docs seems to be no explanation, and I hope TUI will also add this function. I think most people like use TUI much more than CLI.

the docs seems to be no explanation

more than happy to take suggestions as to how it can be written more clearly

I'm closing this issue for now as it's about documentation clarity, and not a request for changing the TUI format