`how to use
# this will install it to GOPATH. you can just `go build` this repo to get the binary instead
go install github.com/if-not-nil/horse@latest
# if you haven't tamed the horse yet, do this to see what the consequences of your actions could be
horse
# when you're comfortable,
alias h='eval "$(horse)"'- use it like you would
cd ls cd ls - try opening folders and files with tab
- try pressing backspace when in a folder
- try pressing enter
- try going to a folder and pressing enter
- try doing
Down,Up,<C-n>,<C-p>,<C-j>,<C-k> - try doing
<C-c>and see how its different fromEnter - try selecting an image, it previews inline if your terminal speaks the kitty graphics protocol (kitty, ghostty, wezterm)
`keymap
Escape, <C-C>:
exit without saving
Down, <C-J>, <C-N>:
cursor down
Up, <C-K>, <C-P>:
cursor up
C-w[ord]:
delete word
C-e:
go to `~` or `/`
C-a[dd]:
bring up a prompt for creating files/directories (try qwer/asdf/zx)
C-s[ave]:
copy the selected item's path
C-r[ename]:
rename the selected item inline
type a path (a/b/c) to move it
C-y[ank]:
copy the selected file/dir
C-x[ecute]:
start selection, mark current file
when selecting, run a bash command on the selection
in it, the % placeholder will be substituted for the selection like {file1,file2}
C-o[pen]:
open the selected file with the default application
C-d[elete]:
delete the selected file or directory
C-v[isibility]:
toggle the visibility of hidden files
C-t[Sort]:
cycle through directory sorting modes
Left, C-h, C-b:
go up a directory
Tab, Right, C-l, C-f:
select an entry. if a file, open, if a directory, enter (go down)
Enter:
cd to current/selected directory
Backspace:
erase a character or go back a directory
~[above tab]:
jump back to the last directory you were in (toggles)
`flags
-p[review]=true
show a file preview on the right side (default true)
-c[olor]=
colors for the preview: truecolor, 256 or 16 (default: guess from $TERM)
`todo [x] shared configurable read-line component for all inputs \ \ [ ] make it good [ ] consolidate more ops into C-x mode \ \ [ ] delete \ \ [ ] open