Yet Another Astoundingly Hackable, Keyboard-Controlled, Efficient, Versatile, Interactive, Fast, Elmish, Minimalistic, and Superlative File Explorer with Vim-Inspired Keybindings, Infused with the Magic of Lua, Allowing Users to Extend Its Functionality, Shape Its Behavior, and Create Customized Workflows Tailored to Their Unique Needs!
In short: y337
In every mode esc
switches to the next 'level' mode. The order is:
navigation < normal < insert
Exception to this order is the command mode. Leaving this mode will restore the previous one.
When transition from normal to navigation all changes to the filesystem will get
persisted. Thus, changes in insert and normal are handled like unsaved buffer changes
and are not present on the file system till :w
gets called or the mode changes
to navigation.
In navigation mode, all register interactions target the junk yard. The file register holds all files which got yanked and the last nine trashes.
keys | action |
---|---|
gh | goto home directory |
gn | go into normal mode |
h, l | navigating the file tree |
p | paste " from junk yard to current path |
"p<char> | paste register named <char> from junk yard to current path |
yp | copy current selected path to system clipboard |
yy | yank file to junk yard |
keys | action |
---|---|
j, k | navigating the current directory down/up |
o, O | add a new line and change to insert mode |
I, A | jump to line start/end and change to insert mode |
dd | go into normal and trash* the current line |
: | change to command mode |
/ | change to search downward |
? | change to search upward |
n, N | repeat last search in same/reverse direction |
<space> | add or remove (toggle) current file to quick fix list |
q<char> | start recording a macro on register <char>. Only letters [a-zA-Z] are allowed! |
q | while recording a macro, q finishes the recording and writes the input to the specified register. |
@<char> | replay a recorded macro on register <char> |
@@ | replay the last played macro |
m<char> | set mark for current selection. Only letters [a-zA-Z] are allowed! |
'<char> | jump to mark |
zt, zz, zb | move viewport to start, center, bottom of cursor position |
C-u, C-d | move viewport half screen up/down |
*trash: files are not deleted but moved to yeets cache folder to enable junk yard
interactions. Trashes get executed when leaving normal to navigation or saving the
current buffer. To delete the selected path completly, call command :d!
.
In normal mode, all register interactions target the default register (equal to
:reg
in nvim).
keys | action |
---|---|
h, l | move cursor left/right |
0, $ | move cursor to line start/end |
f<char>, F<char> | move cursor to next char forward/backward |
t<char>, T<char> | move cursor before next char forward/backward |
; | repeat the last motion with f or t. |
, | repeat the last motion with f or t in reverse direction. |
i, a | change to insert mode |
c<motion> | delete according to motion and change to insert mode |
d<motion> | delete according to motion |
s | delete char on cursor and change to insert mode |
x | delete char on cursor |
. | repeat last modification. Key sequence is stored in '.' register |
: | action |
---|---|
cfirst | navigates to first entry in quick fix list |
cl | list all quick fix entries and highlights the current path |
clearcl | clears the selection for quick fix list in current folder only |
cn, cN | navigates to next/previous path in quick fix list |
cdo <command> | navigates to each entry in the quick fix list and executes the given command. Cdo starts with the first entry and iterates over the given order. Thus, the list order is important! Non existing paths get ignored. |
cp <path> or '<mark> | copies the selected file to the target directory. The directory must exist without a file with the same name like the source |
d! | delete selected file/directory |
mv <path> or '<mark> | moves the selected file to the target. The directory must exist without a file with the same name like the source |
delm <chars> | delete current and cached marks. Every char represents one mark. ':delm AdfR', ':delm a d f R', and ':delm F' are all valid commands. Whitespaces are ignored. |
e! | reload current folder |
invertcl | inverts the cl selection in current folder |
junk | list junk yard contents |
marks | list all given marks |
noh | remove search highlights |
q | quit yeet |
reg | print all register entries |
resetcl | clears the current quick fix list without creating a new one |
w | write changes without changing mode |
wq | write changes and quit yeet |
It utilizes the same mechanics like yazi (tokio i/o) without that many roundtrips because of the underlying architecture. Thus, it should be equally fast. E.g. reading a directory with 500k entries takes only a couple of seconds without blocking the ui.
yeet utilizes xdg-open
to start files. Thus, not opening anything probably lies
in a misconfigured mime setup. Check ~/.local/share/applications/
for invalid entries.
Some programs causing problems regularly. Im looking at you wine
...
The main crate is handling frontend and backend and resolves cli arguments to pass them to the relevant components.
The frontend follows an elm architecture with one exception: The model is mutable and will not get created every update.
It holds the lifecycle of the tui. It starts an event stream to enable non lockable operations. This stream is implemented in event.rs and translates multiple event emitter like terminal interaction with crossterm into messages.
The modules model, update and view represent parts of the elm philosophy. Messages are defined in yeet-keymap to prevent cycling dependencies.
Buffer holds all buffer relevant functionality to render content in yeet. Except e.g. Statusline, everything is a buffer!
The create follows the elm architecture as well.
This crate holds all key relevant features. The MessageResolver uses buffer and tree to resolve possible messages, which follow the elm architecture to modify the model.
tree uses the keymap to build a key tree structure. Thus, in keymap all key combinations are mapped indirectly to messages.
conversion translates crossterm key events to the yeet-keymap representation.