Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vincemann committed Jul 17, 2024
1 parent 282b5ea commit bdc7e88
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# last-file-history
script that finds last n files operated on in bash by checking bash history
can be combined with cd-history to also find files that were operted on in bash with a relative path
# file-history
Keeps track of all files operated on in your bash sessions.
You can show recent files, select one and that file will be opened in editor.
works in gui and terminal environments and can be installed system wide or only for one user (locally).

![demo](demo.gif)

## usage:
```files``` -> shows recent files, lets you select one and open selected in editor
```files foo``` -> same but only shows files whos path contain 'foo'
```files -h``` -> see this for more complex scenrios

## installation
```git clone https://github.com/vincemann/file-history```
```cd file-history```
```./install.sh gui|terminal local|system```

## complex usage example:
This showcases how this tool could be combined using i3.
You could map a hotkey to executing ```files --action=clip --filter=popup```.
This way when typing a command and you need a file to complete it, you can simply search for it in a popup and insert it:

![demo](demo-complex.gif)

0 comments on commit bdc7e88

Please sign in to comment.