-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |