elves / elvish

Powerful scripting language & versatile interactive shell
https://elv.sh/
BSD 2-Clause "Simplified" License
5.63k stars 299 forks source link

Add more context like pwd, time in command history #1473

Open aca opened 2 years ago

aca commented 2 years ago

Currently elvish store only "commands" in boltdb. It's quite useful if we have more information about executed command. For example, I wrote fuzzy finder for command history with time information. image

As elvish use proper database (which is not in other shells), It would be great if we add additional metadatas like time, pwd.

href commented 2 years ago

+1, I've been wanting to limit my history to certain paths (i.e. when I run my history function I want to see commands from a certain set of paths only that belong to my project). If that information was found in the database I wouldn't have to build my own tracking.

krader1961 commented 2 years ago

Seems like a duplicate of #650 and #675.

aca commented 2 years ago

Currently command is stored as simple key(index) / command string pair

I think I'll just wait for #1222 just to be able to add columns in cmd table.