cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.77k stars 176 forks source link

Feature Request: Open history file at selected entry #233

Open delanym opened 2 years ago

delanym commented 2 years ago

Sometimes its useful to see the chronology of commands. I know not all commands entered are stored, but it would still be useful to open the history file at the selected entry.

cantino commented 2 years ago

MCFly keeps it's history in a SQLite database, and can optionally also write to the shell's history as a backup. Are you picturing it opening the shell's history, or an option to dump a chronological list from the database?

delanym commented 2 years ago

I see. In that case it might be better to open another pane with a scrollable list, but that's more of an ask. Alternatively you might dump the db chronologically to a temporary file and open it at the selected entry?

cantino commented 2 years ago

Either would be fine. I'd be happy to accept PRs around this.