-
Notifications
You must be signed in to change notification settings - Fork 1
/
yazi-config.5
1943 lines (1624 loc) · 39.7 KB
/
yazi-config.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.TH YAZI-CONFIG 1
.SH NAME
yazi-config
.SH DESCRIPTION
.B
Configuration options for yazi terminal file manager.
There are three configuration files for Yazi:
.IP \(bu 2
.I "yazi.toml"
: General Configuration.
.IP \(bu 2
.I "keymap.toml"
: Keybindings Configuration.
.IP \(bu 2
.I "theme.toml"
: Color scheme Configuration.
.PP
You can find the default configuration files on the latest tag
.I https://github.com/sxyazi/yazi/tree/latest/yazi-config/preset.
.PP
.PP
To override any of the defaults, begin by creating the corresponding file at:
.IP \(bu 2
.I "~/.config/yazi/"
on Unix-like systems.
.IP \(bu 2
.I "C:\[rs]Users\[rs]USERNAME\[rs]AppData\[rs]Roaming\[rs]yazi\[rs]config\[rs]"
on Windows.
.PP
.SH CONFIGURATION MIXING
.PP
The options from your configuration file will be used to override the default. However, for key bindings, if you don't want to override the default directly:
.P
.TS
box;
L.
# keymap.toml
_
[manager]
keymap = [
# ...
]
.TE
.P
and instead want to customize your keys upon the default, you can use prepend_* or append_* directories to prepend or append them to the default.
.PP
.P
.TS
box;
L.
# keymap.toml
_
[manager]
prepend_keymap = [
# ...
]
append_keymap = [
# ...
]
.TE
.P
.PP
They are also available for open, icon, previewer, and preloader rules.
.PP
.SH CUSTOM CONFIG DIRECTORY
.PP
You can change the Yazi configuration directory by exporting the YAZI_CONFIG_HOME environment variable. For example:
.TS
box;
L.
env "YAZI_CONFIG_HOME=~/.config/yazi-alt" yazi
.TE
will start Yazi with
.I "~/.config/yazi-alt"
as the configuration directory, and can have its own
.I "yazi.toml"
,
.I "keymap.toml"
,
.I "init.lua"
, etc. files within it.
.PP
.SH "GENERAL CONFIG (yazi.toml)"
.SS "[manager]"
.IP \(bu 2
.I "ratio"
Manage layout by ratio, 3\-element array.
.RS
.PP
.TS
L L.
[1,4,3] 1/8 width for parent, 4/8 width for current, 3/8 width for preview
.TE
.PP
.RE
.IP \(bu 2
.I "sort_by"
File sorting method.
.RS
.PP
.TS
L L.
"none" Don't sort
"modified" Sort by last modified time
"created" Sort by creation time (Due to a Rust bug, this is not available at the moment)
"extension" Sort by file extension
"alphabetical" Sort alphabetically, e.g. 1.md < 10.md < 2.md
"natural" Sort naturally, e.g. 1.md < 2.md < 10.md
"size" Sort by file size
.TE
.PP
.RE
.IP \(bu 2
.I "sort_sensitive"
Sort case-sensitively.
.RS
.PP
.TS
L L.
"true" Case-sensitive
"false" Sort by last modified time
.TE
.PP
.RE
.IP \(bu 2
.I "sort_reverse"
Display files in reverse order.
.RS
.PP
.TS
L L.
"true" Reverse order
"false" Normal order
.TE
.PP
.RE
.IP \(bu 2
.I "sort_dir_first"
Display directories first.
.RS
.PP
.TS
L L.
"true" Directories first
"false" Respects sort_by and sort_reverse only
.TE
.PP
.RE
.IP \(bu 2
.I "sort_translit"
Transliterate filenames for sorting (i.e. replaces  as A, Æ as AE, etc.), only available if sort_by = "natural".
This is useful for files that contain Hungarian characters. (Currently requires nightly builds)
.RS
.PP
.TS
L L.
"true" Enabled
"false" Disabled
.TE
.PP
.RE
.IP \(bu 2
.I "linemode"
Display information associated with the file on the right side of the file list row.
.PP
"none" No line mode.
"size" Display the size in bytes of the file. Since file sizes are only
evaluated when sorting by size, it only works after sort_by = "size"
set, and this behavior might change in the future.
"permissions" Display the permissions of the file, only available on
Unix-like systems.
"mtime" Display the last modified time of the file.
"owner" Display the owner of the file, only available on Unix-like systems.
(Nightly version of Yazi required atm)
.PP
.IP \(bu 2
.I "show_hidden"
Show hidden files
.RS
.PP
.TS
L L.
"true" Show
"false" Do not show
.TE
.PP
.RE
.IP \(bu 2
.I "show_symlink"
Show the path of the symlink file point to, after the filename.
.RS
.PP
.TS
L L.
"true" Show
"false" Do not show
.TE
.PP
.RE
.IP \(bu 2
.I "scrolloff"
The number of files to keep above and below the cursor when moving through the file list.
If the value is larger than half the screen height (e.g. 200), the cursor will be centered.
.IP \(bu 2
.I "mouse_events"
Array of strings, the types of mouse events can be received by the plugin system, available values:
.RS
.PP
.TS
L L.
"true" Show
"false" Do not show
"click" Mouse click
"scroll" Mouse vertical scroll
"touch" Mouse horizontal scroll
"move" Mouse move
"drag" Mouse drag (Some terminals do not support this)
.TE
.PP
.RE
.IP \(bu 2
.I "mouse_events"
Array of strings, the types of mouse events can be received by the plugin system, available values:
.RS
.PP
.TS
L L.
"true" Show
"false" Do not show
"click" Mouse click
"scroll" Mouse vertical scroll
"touch" Mouse horizontal scroll
"move" Mouse move
"drag" Mouse drag (Some terminals do not support this)
.TE
.PP
.RE
.SS "[preview]"
.IP \(bu 2
.I "tab_size"
Tab width.
.IP \(bu 2
.I "max_width"
Maximum preview width for images. Run a `yazi --clear-cache` to take effect after changing this.
This value is also used for preloading images; the larger it is, the larger the image cache generated, which consumes more CPU.
.IP \(bu 2
.I "max_height"
Maximum preview height for images. Run a `yazi --clear-cache` to take effect after changing this.
This value is also used for preloading images; the larger it is, the larger the image cache generated, which consumes more CPU.
.IP \(bu 2
.I "cache_dir"
The system cache directory is used by default, and the cached files will go away on a reboot automatically.
If you want to make it more persistent, you can specify the cache directory manually as an absolute path.
.IP \(bu 2
.I "image_filter"
The filter used on image downscaling, available values:
.RS
.PP
.TS
L L.
"nearest" Nearest Neighbor
"triangle" Linear Triangle
"catmull-rom" Catmull-Rom
"lanczos3" Lanczos with window 3
.TE
.PP
They are arranged in order from fast to slow, and from poor to good quality - Lanczos3 provides the highest quality but is also the slowest.
.RE
.IP \(bu 2
.I "image_quality"
Quality on pre-caching images, range 50-90.
The larger value, the better image quality, but slower with more CPU consumption, and generates larger cache files that occupy more storage space.
.IP \(bu 2
.I "sixel_fraction"
Sixel is a very old image format that only supports 256 colors. For better image preview, Yazi trains a neural network for each image to find the most representative colors.
This value determines the number of samples used during the training, range 10-20. A smaller value produces better results but is also slower.
.IP \(bu 2
.I "ueberzug_scale"
/
.I "ueberzug_offset"
.RS
.IP \(bu 2
.I "ueberzug_scale"
(Float): Ueberzug image scaling ratio, scale>1 for enlargement, scale<1 for reduction. For example, 0.5 indicates a reduction to half.
.IP \(bu 2
.I "ueberzug_offset"
([x, y, width, height]): Ueberzug image offset, in cell units. For example, [0.5, 0.5, -0.5, -0.5] indicates that the image is offset by half a cell in both directions, and the width and height are reduced by half a cell.
This is useful for solving a bug of Überzug++ image size calculation.
If your monitor has a 2.0 scale factor, and is running on Wayland under Hyprland, you may need to set ueberzug_scale: 0.5, and adjust the value of ueberzug_offset according to your case, to offset this issue.
.RE
.SS "[opener]"
.TS
box;
L.
[opener]
edit = [
{ run = 'nvim "$@"', block = true },
]
play = [
{ run = 'mpv "$@"', orphan = true, for = "unix" },
]
open = [
{ run = 'xdg-open "$@"', desc = "Open" },
]
# ...
.TE
Available options are as follows:
.IP \(bu 2
.I run
: The command to open the selected files, with the following variables available:
.RS
.IP \(bu 2
.I $n
(Unix) /
.I %n
(Windows): The N-th selected file, starting from 1. e.g. $2 represents the second selected file.
.IP \(bu 2
.I $@
(Unix) /
.I %*
(Windows): All selected files, i.e. $1, $2, ..., $n.
.IP \(bu 2
.I $0
(Unix) /
.I %0
(Windows): The hovered file.
.RE
.IP \(bu 2
.I block
: Open in a blocking manner. After setting this, Yazi will hide into a secondary screen and display the program on the main screen until it exits. During this time, it can receive I/O signals, which is useful for interactive programs.
.IP \(bu 2
.I orphan
: Keep the process running even if Yazi has exited, once specified, the process will be detached from the task scheduling system.
.IP \(bu 2
.I desc
: Description of the opener, display in interactive components, such as "Open with" and help menu.
.IP \(bu 2
.I for
: The opener is only available on this system; if not specified, it's available on all systems. Available values:
.RS
.IP \(bu 2
.I unix
: Linux and macOS
.IP \(bu 2
.I windows
: Windows
.IP \(bu 2
.I linux
: Linux
.IP \(bu 2
.I macos
: macOS
.RE
.SS "[open]"
Set rules for opening specific files. You can prepend or append rules to the default through
.I prepend_rules
and
.I append_rules
(See Configuration mixing for details):
.TS
box;
L.
[open]
prepend_rules = [
{ name = "*.json", use = "edit" },
# Multiple openers for a single rule
{ name = "*.html", use = [ "open", "edit" ] },
]
append_rules = [
{ name = "*", use = "my-fallback" },
]
.TE
If your
.I append_rules
contains wildcard rules, they will always take precedence over the default wildcard rules as the fallback (Currently requires nightly builds).
Or, use rules to rewrite the entire default rules:
.TS
box;
L.
[open]
rules = [
{ mime = "text/*", use = "edit" },
{ mime = "video/*", use = "play" },
# { mime = "application/json", use = "edit" },
{ name = "*.json", use = "edit" },
# Multiple openers for a single rule
{ name = "*.html", use = [ "open", "edit" ] },
]
.TE
Available rule options are as follows:
.PP
.IP \(bu 2
.I name
: Glob expression for matching the file name. Case insensitive by default, add \s to the beginning to make it sensitive.
.IP \(bu 2
.I mime
: Glob expression for matching the mime-type. Case insensitive by default, add \s to the beginning to make it sensitive.
.IP \(bu 2
.I use
: Opener name corresponding to the names in the [opener] section.
.PP
With that:
.PP
.IP \(bu 2
If you're using the default mime-type preloader, it retrieves the mime-type of a file through `file -bL --mime-type /path/to/file` command.
.IP \(bu 2
If
.I use
is an array containing multiple openers, all commands in these openers will be merged. open will run the first of these commands; open --interactive will list all of these commands in the "open with" menu.
.PP
.SS "[tasks]"
.PP
.IP \(bu 2
.I "micro_workers"
Maximum number of concurrent micro-tasks.
.IP \(bu 2
.I "macro_workers"
Maximum number of concurrent macro-tasks.
.IP \(bu 2
.I "bizarre_retry"
Maximum number of retries when a bizarre failure occurs.
.IP \(bu 2
.I "suppress_preload"
Exclude the preload tasks created by the system from the task list, do not report their progress, and do not consider them on app exit confirming.
.IP \(bu 2
.I "image_alloc"
Maximum memory allocation limit in bytes for decoding a single image, 0 for unlimited.
.IP \(bu 2
.I "image_bound"
An array of [width, height], maximum image size (in pixels) for decoding a single image, and 0 for unlimited.
.PP
.SS "[plugin]"
previewers (
.I "prepend_previewers"
&
.I "append_previewers"
)
You can prepend or append new preview rules to the default previewers under [plugin] by
.I "prepend_previewers"
and
.I "append_previewers."
See Configuration mixing for details. Here are the available options for a single rule:
.IP \(bu 2
.I name
(String): Glob expression for matching the file name. Case insensitive by default, add \[rs]s to the beginning to make it sensitive.
.IP \(bu 2
.I mime
(String): Glob expression for matching the mime-type. Case insensitive by default, add \[rs]s to the beginning to make it sensitive.
.IP \(bu 2
.I run
(String): The name of the Lua plugin to be ran.
.IP \(bu 2
.I sync
(Boolean): Whether to run in the sync context, default is false.
.TS
box;
L.
[plugin]
prepend_previewers = [
# HEIC previewer
{ mime = "image/heic", run = "heic" },
]
append_previewers = [
# My fallback previewer
{ name = "*" , run = "binary" },
]
.TE
If your
.I "append_previewers"
contains wildcard name rules ("*" or "*/"), they will always take precedence over the default wildcard rules as the fallback.
Yazi comes with the these previewer plugins:
.RS
.IP \(bu 2
folder: bridge between the Yazi file system and the preview
.IP \(bu 2
code: bridge between built-in code highlighting and the preview, providing async concurrent rendering
.IP \(bu 2
json: bridge between `jq` and the preview, providing async concurrent rendering
.IP \(bu 2
noop: no operation
.IP \(bu 2
image: presentation layer of built-in image preview, offering mixed preview capabilities
.IP \(bu 2
video: bridge between `ffmpegthumbnailer` and the preview, offering mixed preview capabilities
.IP \(bu 2
pdf: bridge between `pdftoppm` and the preview, offering mixed preview capabilities
.IP \(bu 2
archive: bridge between `unar` and the preview, offering mixed preview and concurrent rendering capabilities
.RE
If you want to create your own previewer, see Previewer API (
.I "https://yazi-rs.github.io/docs/plugins/overview#previewer"
).
preloaders (
.I "prepend_preloaders"
&
.I "append_preloaders"
)
You can prepend or append new preview rules to the default preloaders under [plugin] by
.I "prepend_preloaders"
and
.I "append_preloaders"
See Configuration mixing for details. Here are the available options for a single rule:
.IP \(bu 2
.I name
(String): Glob expression for matching the file name. Case insensitive by default, add \[rs]s to the beginning to make it sensitive.
.IP \(bu 2
.I mime
(String): Glob expression for matching the mime-type. Case insensitive by default, add \[rs]s to the beginning to make it sensitive.
.IP \(bu 2
.I cond
(String): Conditional expression – Only rules that meet this condition and satisfy either the name or mime will be applied. For example, A & B means A and B, and A | !B means A or not B. Here are the available factors:
.IP \(bu 2
.I mime
: This file has a mime-type.
.IP \(bu 2
.I run
(String): The name of the Lua plugin to be ran.
.IP \(bu 2
.I multi
(Boolean): Whether to preload multiple files at once.
.IP \(bu 2
.I prio
(String): Preload priority, low, normal or high. The default is normal if not specified.
.TS
box;
L.
[plugin]
prepend_preloaders = [
# HEIC preloader
{ mime = "image/heic", run = "heic" },
]
.TE
Yazi comes with the these preloader plugins:
.RS
.IP \(bu 2
mime: preloads mime-type of files in chunks
.IP \(bu 2
noop: no operation
.IP \(bu 2
image: preloads and caches images
.IP \(bu 2
video: preloads and caches videos
.IP \(bu 2
pdf: preloads and caches PDFs.
.RE
If you want to create your own preloader, see Preloader API (
.I "https://yazi-rs.github.io/docs/plugins/overview#preloader"
).
.SS "[input]"
You can customize the title and position of each input. As for position, it consists of two parts: Origin and Offset.
The origin is the top-left corner of the input, and the offset is the increment from this origin. Together, they determine the area of the input on the screen.
Origin
.PP
For the origin, the following values are available:
.IP \(bu 2
top-left
.IP \(bu 2
top-center
.IP \(bu 2
top-right
.IP \(bu 2
bottom-left
.IP \(bu 2
bottom-center
.IP \(bu 2
bottom-right
.IP \(bu 2
center
.IP \(bu 2
hovered (the cursor position of hovered file)
.PP
Offset
As for the offset, it's a 4-element tuple: (x, y, width, height).
Placeholder
Some inputs have special placeholders that will be replaced with actual content on display:
.IP \(bu 2
trash_title: String
.RS
.IP \(bu 2
{n}: Number of files to be trashed
.IP \(bu 2
{s}: "s" if n > 1, otherwise ""
.RE
.IP \(bu 2
delete_title: String
.RS
.IP \(bu 2
{n}: Number of files to be deleted
.IP \(bu 2
{s}: "s" if n > 1, otherwise ""
.RE
.IP \(bu 2
find_title: [String, String]
It's a tuple of 2-element: first for "Find next", second for "Find previous".
.IP \(bu 2
search_title: String
.RS
.IP \(bu 2
{n}: Name of the current search engine
.RE
.IP \(bu 2
shell_title: [String, String]
It's a tuple of 2-element: first for "Non-blocking shell", second for "Blocking shell".
.IP \(bu 2
quit_title: String
.RS
.IP \(bu 2
{n}: Number of tasks are running
.IP \(bu 2
{s}: "s" if n > 1, otherwise ""
.RE
.SS "[select]"
Same as the [input] section.
.SS "[which]"
.IP \(bu 2
.I "sort_by"
Candidate sorting method.
.RS
.PP
.TS
L L.
"none" Don't sort
"key" Sort by key
"desc" Sort by description
.TE
.PP
.RE
.IP \(bu 2
.I "sort_sensitive"
Sort case-sensitively.
.RS
.PP
.TS
L L.
"true" Case-sensitive
"false" Sort by last modified time
.TE
.PP
.RE
.IP \(bu 2
.I "sort_reverse"
Display files in reverse order.
.RS
.PP
.TS
L L.
"true" Reverse order
"false" Normal order
.TE
.PP
.RE
.SH "KEYBINDINGS CONFIGURATION (keymap.toml)"
.SS [manager]
.I escape
Cancel find, exit visual mode, clear selected, cancel filter, or cancel search.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--all@Do all of the below.
--find@Cancel find.
--visual@Exit visual mode.
--select@Clear selected.
--filter@Cancel filter.
--search@Cancel search.
.TE
Automatically determine the operation by default, and it will only execute the selected operation after specifying the option; multiple options can be stacked.
.I quit
Exit the process.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--no-cwd-file@Don't write the current directory to the cwd-file.
.TE
.I close
Close the current tab; if it's the last tab, exit the process instead.
.I arrow
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
[n] / [n%]@Move the cursor up or down by n or n% lines.
@Use negative values to move up and positive
@values to move down.
.TE
.I leave
Go back to the parent directory of the hovered file, or the parent of the current working directory if no file is hovered on.
.I enter
Enter the child directory.
.I back
Go back to the previous directory.
.I forward
Go forward to the next directory.
.I seek
Scroll the contents in the preview panel.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
[n]@Use negative values to seek up
@and positive values to seek down.
.TE
Note that the default scroll keys are Alt + j and Alt + k, make sure your terminal supports Alt key combinations, or you can change them in your keymap.toml.
.I cd
Change the current directory.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
[path]@The path to change to.
--interactive@Use an interactive UI to input the path.
.TE
.I reveal
Change the current directory to the parent of specified file, and hover on it.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
[path]@The path to reveal.
.TE
.I select
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--state=true@Select the current file.
--state=false@Deselect the current file.
--state=none@Default, toggle the selection state
@of the current file.
.TE
.I select_all
Select all files in the current working directory.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--state=true@Select all files
--state=false@Deselect all files
--state=none@Default, toggle the selection state of all files
.TE
Note that `--state=false` will deselect all files in the current working directory.
If you have selected files across directories and want to deselect all of them, use 'escape --select' instead.
.I visual_mode
Enter visual mode (selection mode).
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--unset@Enter visual mode (unset mode).
.TE
.I open
Open the selected files using the rules in [open].
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--interactive@Open the hovered/selected file(s) with an
@interactive UI to choose the opening method.
--hovered@Always open the hovered file regardless
@of the selection state.
.TE
.I yank
Yank the selected files.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--cut@Cut the selected files.
.TE
.I unyank
Cancel the yank status of files.
.I paste
Paste the yanked files.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--force@Overwrite the destination file if it exists.
--follow@Copy the file pointed to by a symbolic link,
@rather than the link itself. Only can be used
@during copying.
.TE
.I link
Create a symbolic link to the yanked files. (This is a privileged action in Windows and must be run as an administrator.)
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--relative@Use a relative path for the symbolic link.
--force@Overwrite the destination file if it exists.
.TE
.I remove
Move the files to the trash/recycle bin on macOS/Windows.
For Linux, it will follow The FreeDesktop.org Trash specification (https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html)
In the Android platform, you can only use it with the '--permanently' option, since there lacks the concept of a trash bin.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--force@Don't show the confirmation dialog, and
@trash/delete files directly.
--permanently@Permanently delete the files.
--hovered@Always remove the hovered file regardless
@of the selection state. (Nightly version of
@Yazi is required ATM)
.TE
.I create
Create a file or directory. Ends with / (Unix) or \[rs] (Windows) for directories.
.TS
box tab(@);
LB | LB
= = =
L | L.
Argument/Option@Description
--force@Overwrite the destination file directly if it exists,
@without showing the confirmation dialog.
.TE
.I rename
Rename a file or directory, or bulk rename if multiple files are selected ($EDITOR is used to edit the filenames by default).
.PP
.IP \(bu 2
--hovered:
Always rename the hovered file regardless of the selection state. (Nightly version of Yazi is required ATM)
.IP \(bu 2
--force:
Overwrite the destination file directly if it exists, without showing the confirmation dialog.
.IP \(bu 2
--empty:
Empty a part of the filename.
.RS
.IP \(bu 2
"stem":
Empty the stem. e.g. "foo.jpg" -> ".jpg".
.IP \(bu 2
"ext":
Empty the extension. e.g. "foo.jpg" -> "foo.".
.IP \(bu 2
"dot_ext":
Empty the dot and extension. e.g. "foo.jpg" -> "foo".
.IP \(bu 2
"all":
Empty the whole filename. e.g. "foo.jpg" -> "".
.RE
.IP \(bu 2
--cursor:
Specify the cursor position of the renaming input box.
.RS