Feature Request: Inspector - list of previous commands and option to CD to the path where the command was run

I would love to see in the inspector:

  • a list of a given set of previous commands executed just before the inspected command
  • to be able to change into the directory where the command was run

Usecase:
I often run into the situation that i execute certain commands/scripts two or three times a year in certain directories. With “normal history” i just grep’ed the command and took a look at the 5 commands before the match. Most of the time that helped to “jog my memory”. Currently i have no other option than to jump through the “previous” statements. It is not bad but every time I run into this i wish for a better option.

Maybe this would also be a interesting feature in the history view as a optional column - in which directory was a match executed?

PS: off topic but i love atuin so much i don’t understand how this was not a thing before <3

I also often need to find sequences of commands.
The workspace filter mode tends to work just fine for that purpose, cf. Excluding hosts - #2 by OliverS

You may also want to display the directory in the main search ui:

[ui]
#columns = ["duration", "time", "host", "user", "directory", "command"]
columns = ["duration", "time", { type = "directory", width = 35 }, "command"]
1 Like

You can use atuin history list to grep the command and context you are looking for:

2 Likes