Add on-load command (#2010)
This commit is contained in:
1 parent
b76d2546e1
commit
ff0c7f1c96
6 files changed
+47
-3
No files matched your search
@@ -238,6 +238,7 @@ The following special shell commands are used to customize the behavior of lf wh
|
||||
delete
|
||||
pre-cd
|
||||
on-cd
|
||||
on-load
|
||||
on-focus-gained
|
||||
on-focus-lost
|
||||
on-init
|
||||
@@ -1143,6 +1144,11 @@ This shell command can be defined to be executed before changing a directory.
|
||||
|
||||
This shell command can be defined to be executed after changing a directory.
|
||||
|
||||
## on-load
|
||||
|
||||
This shell command can be defined to be executed after loading a directory.
|
||||
It provides the files inside the directory as arguments.
|
||||
|
||||
## on-focus-gained
|
||||
|
||||
This shell command can be defined to be executed when the terminal gains focus.
|
||||
@@ -1704,6 +1710,7 @@ You can add an extra call to make it run on startup as well:
|
||||
Note that all shell commands are possible but `%` and `&` are usually more appropriate as `$` and `!` causes flickers and pauses respectively.
|
||||
|
||||
There is also a `pre-cd` command, that works like `on-cd`, but is run before the directory is actually changed.
|
||||
Another related command is `on-load` which gets executed when loading a directory.
|
||||
|
||||
# COLORS
|
||||
|
||||
|
||||
Reference in new issue
Block a user