Commit graph

5 commits

Author SHA1 Message Date
Jonathan Hodgson
d70f5398a3 Adds the ability to index folder and re-populate the db
Misc:
The arguments are now sorted alphabetically in the main funciton

close #4
2020-12-22 09:38:04 +00:00
Jonathan Hodgson
0ac730ca3c Adds pager option and uses $PAGER environment variable
Due to bat also reading the $PAGER environment variable, I first look to
see if bat is available. If it is, I use that. If it isn't, I use the
$PAGER environment variable. If that's not available, I use cat.

I also added the --editor flag to the help output which had clearly been
missed

Close #12
2020-12-22 08:58:53 +00:00
Jonathan Hodgson
f8d04a304a Adds key combinations for fuzzy search
Currently:
* ctrl-n - new file from query
* ctrl-o - view file
* ctrl-e - edit file
* ctrl-d - delete file

close #11
2020-12-21 18:28:13 +00:00
Jonathan Hodgson
caab854c09 Adds update command for externally modified files
This can be used when a file is modified externally. It will update the
sqlite database and potentially run git commands for the change.

If there are 2 files provided, it assumes that the file was moved. The
first filename should be the old file.

The new, edit and delete functions were also re factored slightly to use
this new update function.

Relevant to #4
Close #2
Close #1
2020-12-20 20:04:52 +00:00
Jonathan Hodgson
ac031344d3 Splits up file into smaller files
Closes issue #9
2020-12-20 17:07:17 +00:00