neue Dateien
This commit is contained in:
1
.config/vifm/colors
Submodule
1
.config/vifm/colors
Submodule
Submodule .config/vifm/colors added at cc809544b9
71
.config/vifm/favicons.vifm
Normal file
71
.config/vifm/favicons.vifm
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
" Ranger devicons for ViFM
|
||||||
|
" https://github.com/cirala/vifm_devicons
|
||||||
|
"
|
||||||
|
" Filetypes/directories
|
||||||
|
set classify=' :dir:/, :exe:, :reg:, :link:,? :?:, ::../::'
|
||||||
|
|
||||||
|
" Specific files
|
||||||
|
set classify+=' ::.Xdefaults,,.Xresources,,.bashprofile,,.bash_profile,,.bashrc,,.dmrc,,.d_store,,.fasd,,.gitconfig,,.gitignore,,.jack-settings,,.mime.types,,.nvidia-settings-rc,,.pam_environment,,.profile,,.recently-used,,.selected_editor,,.xinitpurc,,.zprofile,,.yarnc,,.snclirc,,.tmux.conf,,.urlview,,.config,,.ini,,.user-dirs.dirs,,.mimeapps.list,,.offlineimaprc,,.msmtprc,,.Xauthority,,config::'
|
||||||
|
set classify+=' ::dropbox::'
|
||||||
|
set classify+=' ::favicon.*,,README,,readme::'
|
||||||
|
set classify+=' ::.vim,,.vimrc,,.gvimrc,,.vifm::'
|
||||||
|
set classify+=' ::gruntfile.coffee,,gruntfile.js,,gruntfile.ls::'
|
||||||
|
set classify+=' ::gulpfile.coffee,,gulpfile.js,,gulpfile.ls::'
|
||||||
|
set classify+=' ::ledger::'
|
||||||
|
set classify+=' ::license,,copyright,,copying,,LICENSE,,COPYRIGHT,,COPYING::'
|
||||||
|
set classify+=' ::node_modules::'
|
||||||
|
set classify+=' ::react.jsx::'
|
||||||
|
|
||||||
|
" File extensions
|
||||||
|
set classify+='λ ::*.ml,,*.mli::'
|
||||||
|
set classify+=' ::*.styl::'
|
||||||
|
set classify+=' ::*.scss::'
|
||||||
|
set classify+=' ::*.py,,*.pyc,,*.pyd,,*.pyo::'
|
||||||
|
set classify+=' ::*.php::'
|
||||||
|
set classify+=' ::*.markdown,,*.md::'
|
||||||
|
set classify+=' ::*.json::'
|
||||||
|
set classify+=' ::*.js::'
|
||||||
|
set classify+=' ::*.bmp,,*.gif,,*.ico,,*.jpeg,,*.jpg,,*.png,,*.svg,,*.svgz,,*.tga,,*.tiff,,*.xmb,,*.xcf,,*.xpm,,*.xspf,,*.xwd,,*.cr2,,*.dng,,*.3fr,,*.ari,,*.arw,,*.bay,,*.crw,,*.cr3,,*.cap,,*.data,,*.dcs,,*.dcr,,*.drf,,*.eip,,*.erf,,*.fff,,*.gpr,,*.iiq,,*.k25,,*.kdc,,*.mdc,,*.mef,,*.mos,,*.mrw,,*.obm,,*.orf,,*.pef,,*.ptx,,*.pxn,,*.r3d,,*.raf,,*.raw,,*.rwl,,*.rw2,,*.rwz,,*.sr2,,*.srf,,*.srw,,*.tif,,*.x3f,,*.webp,,*.avif,,*.jxl::'
|
||||||
|
set classify+=' ::*.ejs,,*.htm,,*.html,,*.slim,,*.xml::'
|
||||||
|
set classify+=' ::*.mustasche::'
|
||||||
|
set classify+=' ::*.css,,*.less,,*.bat,,*.conf,,*.ini,,*.rc,,*.yml,,*.cfg::'
|
||||||
|
set classify+=' ::*.rss::'
|
||||||
|
set classify+=' ::*.coffee::'
|
||||||
|
set classify+=' ::*.twig::'
|
||||||
|
set classify+=' ::*.c++,,*.cpp,,*.cxx,,*.h::'
|
||||||
|
set classify+=' ::*.cc,,*.c::'
|
||||||
|
set classify+=' ::*.hs,,*.lhs::'
|
||||||
|
set classify+=' ::*.lua::'
|
||||||
|
set classify+=' ::*.jl::'
|
||||||
|
set classify+=' ::*.go::'
|
||||||
|
set classify+=' ::*.ts::'
|
||||||
|
set classify+=' ::*.db,,*.dump,,*.sql::'
|
||||||
|
set classify+=' ::*.sln,,*.suo::'
|
||||||
|
set classify+=' ::*.exe::'
|
||||||
|
set classify+=' ::*.diff,,*.sum,,*.md5,,*.sha512::'
|
||||||
|
set classify+=' ::*.scala::'
|
||||||
|
set classify+=' ::*.java,,*.jar::'
|
||||||
|
set classify+=' ::*.xul::'
|
||||||
|
set classify+=' ::*.clj,,*.cljc::'
|
||||||
|
set classify+=' ::*.pl,,*.pm,,*.t::'
|
||||||
|
set classify+=' ::*.cljs,,*.edn::'
|
||||||
|
set classify+=' ::*.rb::'
|
||||||
|
set classify+=' ::*.fish,,*.sh,,*.bash::'
|
||||||
|
set classify+=' ::*.dart::'
|
||||||
|
set classify+=' ::*.f#,,*.fs,,*.fsi,,*.fsscript,,*.fsx::'
|
||||||
|
set classify+=' ::*.rlib,,*.rs::'
|
||||||
|
set classify+=' ::*.d::'
|
||||||
|
set classify+=' ::*.erl,,*.hrl::'
|
||||||
|
set classify+=' ::*.ai::'
|
||||||
|
set classify+=' ::*.psb,,*.psd::'
|
||||||
|
set classify+=' ::*.jsx::'
|
||||||
|
set classify+=' ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::'
|
||||||
|
set classify+=' ::*.avi,,*.flv,,*.mkv,,*.mov,,*.mp4,,*.mpeg,,*.mpg,,*.webm,,*.av1::'
|
||||||
|
set classify+=' ::*.epub,,*.pdf,,*.fb2,,*.djvu::'
|
||||||
|
set classify+=' ::*.7z,,*.apk,,*.bz2,,*.cab,,*.cpio,,*.deb,,*.gem,,*.gz,,*.gzip,,*.lh,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.tar,,*.tgz,,*.xz,,*.zip,,*.zst::'
|
||||||
|
set classify+=' ::*.cbr,,*.cbz::'
|
||||||
|
set classify+=' ::*.log::'
|
||||||
|
set classify+=' ::*.doc,,*.docx,,*.adoc::'
|
||||||
|
set classify+=' ::*.xls,,*.xlsmx::'
|
||||||
|
set classify+=' ::*.pptx,,*.ppt::'
|
||||||
|
|
||||||
6
.config/vifm/scripts/README
Normal file
6
.config/vifm/scripts/README
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
This directory is dedicated for user-supplied scripts/executables.
|
||||||
|
vifm modifies its PATH environment variable to let user run those
|
||||||
|
scripts without specifying full path. All subdirectories are added
|
||||||
|
as well. File in a subdirectory overrules file with the same name
|
||||||
|
in parent directories. Restart might be needed to recognize files
|
||||||
|
in newly created or renamed subdirectories.
|
||||||
535
.config/vifm/vifmrc
Normal file
535
.config/vifm/vifmrc
Normal file
@@ -0,0 +1,535 @@
|
|||||||
|
" __ __ _____
|
||||||
|
" / \ / \ / __ \
|
||||||
|
" / /\ \ / /\ \ | |__| | Manuel Prinz (MP)
|
||||||
|
" / / \ \/ / \ \ | ___/
|
||||||
|
" / / \__/ \ \| |
|
||||||
|
" /_/ \_\_|
|
||||||
|
"
|
||||||
|
" Beschreibung: configfile vifm
|
||||||
|
" letzte Änderung: 22.11.2022
|
||||||
|
|
||||||
|
" vim: filetype=vifm :
|
||||||
|
" Sample configuration file for vifm (last updated: 9 September, 2020)
|
||||||
|
" You can edit this file by hand.
|
||||||
|
" The " character at the beginning of a line comments out the line.
|
||||||
|
" Blank lines are ignored.
|
||||||
|
" The basic format for each item is shown with an example.
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
source ~/.config/vifm/favicons.vifm
|
||||||
|
|
||||||
|
" Command used to edit files in various contexts. The default is vim.
|
||||||
|
" If you would like to use another vi clone such as Elvis or Vile
|
||||||
|
" you will need to change this setting.
|
||||||
|
|
||||||
|
set viewcolumns=*{name}..,16{mtime},7{}.
|
||||||
|
|
||||||
|
set vicmd=vim
|
||||||
|
" set vicmd=elvis\ -G\ termcap
|
||||||
|
" set vicmd=vile
|
||||||
|
|
||||||
|
" This makes vifm perform file operations on its own instead of relying on
|
||||||
|
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
||||||
|
" solution, it's also much slower when processing large amounts of files and
|
||||||
|
" doesn't support progress measuring.
|
||||||
|
|
||||||
|
set syscalls
|
||||||
|
|
||||||
|
" Trash Directory
|
||||||
|
" The default is to move files that are deleted with dd or :d to
|
||||||
|
" the trash directory. If you change this you will not be able to move
|
||||||
|
" files by deleting them and then using p to put the file in the new location.
|
||||||
|
" I recommend not changing this until you are familiar with vifm.
|
||||||
|
" This probably shouldn't be an option.
|
||||||
|
|
||||||
|
set trash
|
||||||
|
|
||||||
|
" This is how many directories to store in the directory history.
|
||||||
|
|
||||||
|
set history=100
|
||||||
|
|
||||||
|
" Automatically resolve symbolic links on l or Enter.
|
||||||
|
|
||||||
|
set nofollowlinks
|
||||||
|
|
||||||
|
" With this option turned on you can run partially entered commands with
|
||||||
|
" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te<tab>).
|
||||||
|
|
||||||
|
" set fastrun
|
||||||
|
|
||||||
|
" Natural sort of (version) numbers within text.
|
||||||
|
|
||||||
|
set sortnumbers
|
||||||
|
|
||||||
|
" Maximum number of changes that can be undone.
|
||||||
|
|
||||||
|
set undolevels=100
|
||||||
|
|
||||||
|
" Use Vim's format of help file (has highlighting and "hyperlinks").
|
||||||
|
" If you would rather use a plain text help file set novimhelp.
|
||||||
|
|
||||||
|
set vimhelp
|
||||||
|
|
||||||
|
" If you would like to run an executable file when you
|
||||||
|
" press Enter, l or Right Arrow, set this.
|
||||||
|
|
||||||
|
set norunexec
|
||||||
|
|
||||||
|
" List of color schemes to try (picks the first one supported by the terminal)
|
||||||
|
|
||||||
|
colorscheme palenight
|
||||||
|
" colorscheme Default-256 Default
|
||||||
|
|
||||||
|
" Format for displaying time in file list. For example:
|
||||||
|
" TIME_STAMP_FORMAT=%m/%d-%H:%M
|
||||||
|
" See man date or man strftime for details.
|
||||||
|
|
||||||
|
set timefmt=%d.%m.%Y\ %H:%M
|
||||||
|
" set timefmt=%m/%d\ %H:%M
|
||||||
|
|
||||||
|
" Show list of matches on tab completion in command-line mode
|
||||||
|
|
||||||
|
set wildmenu
|
||||||
|
|
||||||
|
" Display completions in a form of popup with descriptions of the matches
|
||||||
|
|
||||||
|
set wildstyle=popup
|
||||||
|
|
||||||
|
" Display suggestions in normal, visual and view modes for keys, marks and
|
||||||
|
" registers (at most 5 files). In other view, when available.
|
||||||
|
|
||||||
|
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
|
||||||
|
|
||||||
|
" Ignore case in search patterns unless it contains at least one uppercase
|
||||||
|
" letter
|
||||||
|
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
|
||||||
|
" Don't highlight search results automatically
|
||||||
|
|
||||||
|
set nohlsearch
|
||||||
|
|
||||||
|
" Use increment searching (search while typing)
|
||||||
|
set incsearch
|
||||||
|
|
||||||
|
" Try to leave some space from cursor to upper/lower border in lists
|
||||||
|
|
||||||
|
set scrolloff=4
|
||||||
|
|
||||||
|
" Don't do too many requests to slow file systems
|
||||||
|
|
||||||
|
if !has('win')
|
||||||
|
set slowfs=curlftpfs
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Set custom status line look
|
||||||
|
|
||||||
|
set statusline=" Hint: %z%= %A %10u:%-7g %15E %20d "
|
||||||
|
"set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d "
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" :mark mark /full/directory/path [filename]
|
||||||
|
|
||||||
|
mark b ~/bin/
|
||||||
|
mark h ~/
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" :com[mand][!] command_name action
|
||||||
|
" The following macros can be used in a command
|
||||||
|
" %a is replaced with the user arguments.
|
||||||
|
" %c the current file under the cursor.
|
||||||
|
" %C the current file under the cursor in the other directory.
|
||||||
|
" %f the current selected file, or files.
|
||||||
|
" %F the current selected file, or files in the other directory.
|
||||||
|
" %b same as %f %F.
|
||||||
|
" %d the current directory name.
|
||||||
|
" %D the other window directory name.
|
||||||
|
" %m run the command in a menu window
|
||||||
|
|
||||||
|
command! df df -h %m 2> /dev/null
|
||||||
|
command! diff vim -d %f %F
|
||||||
|
command! untar tar -xvf %f
|
||||||
|
command! unzip unzip %f
|
||||||
|
command! unzipo unzip %f -d %D
|
||||||
|
command! tar tar -cvzf %a.tar.gz %f
|
||||||
|
command! zip zip -r %a.zip %f
|
||||||
|
command! zipo zip -r %D/%a.zip %f
|
||||||
|
command! run !! ./%f
|
||||||
|
command! make !!make %a
|
||||||
|
command! mkcd :mkdir %a | cd %a
|
||||||
|
command! vgrep vim "+grep %a"
|
||||||
|
command! reload :write | restart full
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" The file type is for the default programs to be used with
|
||||||
|
" a file extension.
|
||||||
|
" :filetype pattern1,pattern2 defaultprogram,program2
|
||||||
|
" :fileviewer pattern1,pattern2 consoleviewer
|
||||||
|
" The other programs for the file type can be accessed with the :file command
|
||||||
|
" The command macros like %f, %F, %d, %D may be used in the commands.
|
||||||
|
" The %a macro is ignored. To use a % you must put %%.
|
||||||
|
|
||||||
|
" For automated FUSE mounts, you must register an extension with :file[x]type
|
||||||
|
" in one of following formats:
|
||||||
|
"
|
||||||
|
" :filetype extensions FUSE_MOUNT|some_mount_command using %SOURCE_FILE and %DESTINATION_DIR variables
|
||||||
|
" %SOURCE_FILE and %DESTINATION_DIR are filled in by vifm at runtime.
|
||||||
|
" A sample line might look like this:
|
||||||
|
" :filetype *.zip,*.jar,*.war,*.ear FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR
|
||||||
|
"
|
||||||
|
" :filetype extensions FUSE_MOUNT2|some_mount_command using %PARAM and %DESTINATION_DIR variables
|
||||||
|
" %PARAM and %DESTINATION_DIR are filled in by vifm at runtime.
|
||||||
|
" A sample line might look like this:
|
||||||
|
" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR
|
||||||
|
" %PARAM value is filled from the first line of file (whole line).
|
||||||
|
" Example first line for SshMount filetype: root@127.0.0.1:/
|
||||||
|
"
|
||||||
|
" You can also add %CLEAR if you want to clear screen before running FUSE
|
||||||
|
" program.
|
||||||
|
|
||||||
|
" Pdf
|
||||||
|
filextype {*.pdf},<application/pdf>
|
||||||
|
\ {View in Evince}
|
||||||
|
\ evince %f &,
|
||||||
|
"filextype {*.pdf},<application/pdf> zathura %c %i &, apvlv %c, xpdf %c
|
||||||
|
"fileviewer {*.pdf},<application/pdf> pdftotext -nopgbrk %c -
|
||||||
|
|
||||||
|
" PostScript
|
||||||
|
filextype {*.ps,*.eps,*.ps.gz},<application/postscript>
|
||||||
|
\ {View in zathura}
|
||||||
|
\ zathura %f,
|
||||||
|
\ {View in gv}
|
||||||
|
\ gv %c %i &,
|
||||||
|
|
||||||
|
" Djvu
|
||||||
|
filextype {*.djvu},<image/vnd.djvu>
|
||||||
|
\ {View in zathura}
|
||||||
|
\ zathura %f,
|
||||||
|
\ {View in apvlv}
|
||||||
|
\ apvlv %f,
|
||||||
|
|
||||||
|
" Audio
|
||||||
|
filetype {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus},
|
||||||
|
\<audio/*>
|
||||||
|
\ {Play using ffplay}
|
||||||
|
\ ffplay -nodisp -autoexit %c,
|
||||||
|
\ {Play using MPlayer}
|
||||||
|
\ mplayer %f,
|
||||||
|
fileviewer {*.mp3},<audio/mpeg> mp3info
|
||||||
|
fileviewer {*.flac},<audio/flac> soxi
|
||||||
|
|
||||||
|
" Video
|
||||||
|
filextype {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||||
|
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||||
|
\*.as[fx]},
|
||||||
|
\<video/*>
|
||||||
|
\ {View using ffplay}
|
||||||
|
\ ffplay -fs -autoexit %f,
|
||||||
|
\ {View using Dragon}
|
||||||
|
\ dragon %f:p,
|
||||||
|
\ {View using mplayer}
|
||||||
|
\ mplayer %f,
|
||||||
|
fileviewer {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||||
|
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||||
|
\*.as[fx]},
|
||||||
|
\<video/*>
|
||||||
|
\ ffprobe -pretty %c 2>&1
|
||||||
|
|
||||||
|
" Web
|
||||||
|
filextype {*.html,*.htm},<text/html>
|
||||||
|
\ {Open with dwb}
|
||||||
|
\ dwb %f %i &,
|
||||||
|
\ {Open with firefox}
|
||||||
|
\ firefox %f &,
|
||||||
|
\ {Open with uzbl}
|
||||||
|
\ uzbl-browser %f %i &,
|
||||||
|
filetype {*.html,*.htm},<text/html> links, lynx
|
||||||
|
|
||||||
|
" Object
|
||||||
|
filetype {*.o},<application/x-object> nm %f | less
|
||||||
|
|
||||||
|
" Man page
|
||||||
|
filetype {*.[1-8]},<text/troff> man ./%c
|
||||||
|
fileviewer {*.[1-8]},<text/troff> man ./%c | col -b
|
||||||
|
|
||||||
|
" Images
|
||||||
|
filextype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
|
||||||
|
\ {View in sxiv}
|
||||||
|
\ sxiv -g 1650x946 %f &,
|
||||||
|
\ {View in gpicview}
|
||||||
|
\ gpicview %c,
|
||||||
|
\ {View in shotwell}
|
||||||
|
\ shotwell,
|
||||||
|
fileviewer {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
|
||||||
|
\ identify %f
|
||||||
|
|
||||||
|
" OpenRaster
|
||||||
|
filextype *.ora
|
||||||
|
\ {Edit in MyPaint}
|
||||||
|
\ mypaint %f,
|
||||||
|
|
||||||
|
" Mindmap
|
||||||
|
filextype *.vym
|
||||||
|
\ {Open with VYM}
|
||||||
|
\ vym %f &,
|
||||||
|
|
||||||
|
" MD5
|
||||||
|
filetype *.md5
|
||||||
|
\ {Check MD5 hash sum}
|
||||||
|
\ md5sum -c %f %S,
|
||||||
|
|
||||||
|
" SHA1
|
||||||
|
filetype *.sha1
|
||||||
|
\ {Check SHA1 hash sum}
|
||||||
|
\ sha1sum -c %f %S,
|
||||||
|
|
||||||
|
" SHA256
|
||||||
|
filetype *.sha256
|
||||||
|
\ {Check SHA256 hash sum}
|
||||||
|
\ sha256sum -c %f %S,
|
||||||
|
|
||||||
|
" SHA512
|
||||||
|
filetype *.sha512
|
||||||
|
\ {Check SHA512 hash sum}
|
||||||
|
\ sha512sum -c %f %S,
|
||||||
|
|
||||||
|
" GPG signature
|
||||||
|
filetype {*.asc},<application/pgp-signature>
|
||||||
|
\ {Check signature}
|
||||||
|
\ !!gpg --verify %c,
|
||||||
|
|
||||||
|
" Torrent
|
||||||
|
filetype {*.torrent},<application/x-bittorrent> ktorrent %f &
|
||||||
|
fileviewer {*.torrent},<application/x-bittorrent> dumptorrent -v %c
|
||||||
|
|
||||||
|
" FuseZipMount
|
||||||
|
filetype {*.zip,*.jar,*.war,*.ear,*.oxt,*.apkg},
|
||||||
|
\<application/zip,application/java-archive>
|
||||||
|
\ {Mount with fuse-zip}
|
||||||
|
\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
\ {View contents}
|
||||||
|
\ zip -sf %c | less,
|
||||||
|
\ {Extract here}
|
||||||
|
\ tar -xf %c,
|
||||||
|
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c
|
||||||
|
|
||||||
|
" ArchiveMount
|
||||||
|
filetype {*.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz},
|
||||||
|
\<application/x-tar>
|
||||||
|
\ {Mount with archivemount}
|
||||||
|
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
fileviewer *.tgz,*.tar.gz tar -tzf %c
|
||||||
|
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
|
||||||
|
fileviewer *.tar.txz,*.txz xz --list %c
|
||||||
|
fileviewer {*.tar},<application/x-tar> tar -tf %c
|
||||||
|
|
||||||
|
" Rar2FsMount and rar archives
|
||||||
|
filetype {*.rar},<application/x-rar>
|
||||||
|
\ {Mount with rar2fs}
|
||||||
|
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
fileviewer {*.rar},<application/x-rar> unrar v %c
|
||||||
|
|
||||||
|
" IsoMount
|
||||||
|
filetype {*.iso},<application/x-iso9660-image>
|
||||||
|
\ {Mount with fuseiso}
|
||||||
|
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
|
||||||
|
" SshMount
|
||||||
|
filetype *.ssh
|
||||||
|
\ {Mount with sshfs}
|
||||||
|
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||||
|
|
||||||
|
" FtpMount
|
||||||
|
filetype *.ftp
|
||||||
|
\ {Mount with curlftpfs}
|
||||||
|
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||||
|
|
||||||
|
" Fuse7z and 7z archives
|
||||||
|
filetype {*.7z},<application/x-7z-compressed>
|
||||||
|
\ {Mount with fuse-7z}
|
||||||
|
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
fileviewer {*.7z},<application/x-7z-compressed> 7z l %c
|
||||||
|
|
||||||
|
" Office files
|
||||||
|
filextype {*.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx,*.ppt},
|
||||||
|
\<application/vnd.openxmlformats-officedocument.*,
|
||||||
|
\application/msword,
|
||||||
|
\application/vnd.ms-excel>
|
||||||
|
\ libreoffice %f &
|
||||||
|
fileviewer {*.doc},<application/msword> catdoc %c
|
||||||
|
fileviewer {*.docx},
|
||||||
|
\<application/
|
||||||
|
\vnd.openxmlformats-officedocument.wordprocessingml.document>
|
||||||
|
\ docx2txt.pl %f -
|
||||||
|
|
||||||
|
" TuDu files
|
||||||
|
filetype *.tudu tudu -f %c
|
||||||
|
|
||||||
|
" Qt projects
|
||||||
|
filextype *.pro qtcreator %f &
|
||||||
|
|
||||||
|
" Directories
|
||||||
|
filextype */
|
||||||
|
\ {View in thunar}
|
||||||
|
\ Thunar %f &,
|
||||||
|
|
||||||
|
" Syntax highlighting in preview
|
||||||
|
"
|
||||||
|
" Explicitly set highlight type for some extensions
|
||||||
|
"
|
||||||
|
" 256-color terminal
|
||||||
|
" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c
|
||||||
|
" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c
|
||||||
|
"
|
||||||
|
" 16-color terminal
|
||||||
|
" fileviewer *.c,*.h highlight -O ansi -s dante %c
|
||||||
|
"
|
||||||
|
" Or leave it for automatic detection
|
||||||
|
"
|
||||||
|
" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g
|
||||||
|
|
||||||
|
" Displaying pictures in terminal
|
||||||
|
"
|
||||||
|
" fileviewer *.jpg,*.png shellpic %c
|
||||||
|
|
||||||
|
" Open all other files with default system programs (you can also remove all
|
||||||
|
" :file[x]type commands above to ensure they don't interfere with system-wide
|
||||||
|
" settings). By default all unknown files are opened with 'vi[x]cmd'
|
||||||
|
" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option
|
||||||
|
" for unknown file types.
|
||||||
|
" For *nix:
|
||||||
|
" filetype * xdg-open
|
||||||
|
" For OS X:
|
||||||
|
" filetype * open
|
||||||
|
" For Windows:
|
||||||
|
" filetype * start, explorer
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" What should be saved automatically between vifm sessions. Drop "savedirs"
|
||||||
|
" value if you don't want vifm to remember last visited directories for you.
|
||||||
|
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
|
||||||
|
\phistory,fhistory,dirstack,registers,bookmarks,bmarks
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" Examples of configuring both panels
|
||||||
|
|
||||||
|
" Customize view columns a bit (enable ellipsis for truncated file names)
|
||||||
|
"
|
||||||
|
" set viewcolumns=-{name}..,6{}.
|
||||||
|
|
||||||
|
" Filter-out build and temporary files
|
||||||
|
"
|
||||||
|
" filter! {*.lo,*.o,*.d,*.class,*.pyc,*.pyo,.*~}
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" Sample mappings
|
||||||
|
|
||||||
|
nnoremap gp :!sxiv -otr -g 1650x946 %d &<cr>
|
||||||
|
nnoremap gr :run<cr>
|
||||||
|
nnoremap ut :untar<cr>
|
||||||
|
nnoremap uz :unzip<cr>
|
||||||
|
|
||||||
|
" Start shell in current directory
|
||||||
|
nnoremap s :shell<cr>
|
||||||
|
|
||||||
|
" Display sorting dialog
|
||||||
|
nnoremap S :sort<cr>
|
||||||
|
|
||||||
|
" Toggle visibility of preview window
|
||||||
|
nnoremap w :view<cr>
|
||||||
|
vnoremap w :view<cr>gv
|
||||||
|
|
||||||
|
" Open file in existing instance of gvim
|
||||||
|
nnoremap o :!gvim --remote-tab-silent %f<cr>
|
||||||
|
" Open file in new instance of gvim
|
||||||
|
nnoremap O :!gvim %f<cr>
|
||||||
|
|
||||||
|
" Open file in the background using its default program
|
||||||
|
nnoremap gb :file &<cr>l
|
||||||
|
|
||||||
|
" Interaction with system clipboard
|
||||||
|
if has('win')
|
||||||
|
" Yank current directory path to Windows clipboard with forward slashes
|
||||||
|
nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr>
|
||||||
|
" Yank path to current file to Windows clipboard with forward slashes
|
||||||
|
nnoremap yf :!echo %"c:gs!\!/! %i | clip<cr>
|
||||||
|
elseif executable('xclip')
|
||||||
|
" Yank current directory path into the clipboard
|
||||||
|
nnoremap yd :!echo %d | xclip -selection clipboard %i<cr>:echo expand('%"c:p') "is yanked to clipboard"<cr>
|
||||||
|
" Yank current file path into the clipboard
|
||||||
|
nnoremap yf :!echo %c:p | xclip -selection clipboard %i<cr>:echo expand('%"c:p') "is yanked to clipboard"<cr>
|
||||||
|
" yank current filename without path into the clipboard
|
||||||
|
nnoremap yn :!echo %c | xclip -selection clipboard %i<cr>:echo expand('%"c') "is yanked to clipboard"<cr>
|
||||||
|
elseif executable('xsel')
|
||||||
|
" Yank current directory path into primary and selection clipboards
|
||||||
|
nnoremap yd :!echo -n %d | xsel --input --primary %i &&
|
||||||
|
\ echo -n %d | xsel --clipboard --input %i<cr>
|
||||||
|
" Yank current file path into into primary and selection clipboards
|
||||||
|
nnoremap yf :!echo -n %c:p | xsel --input --primary %i &&
|
||||||
|
\ echo -n %c:p | xsel --clipboard --input %i<cr>
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Mappings for faster renaming
|
||||||
|
nnoremap I cw<c-a>
|
||||||
|
nnoremap cc cw<c-u>
|
||||||
|
nnoremap A cw
|
||||||
|
|
||||||
|
" Open console in current directory
|
||||||
|
nnoremap ,t :!xterm &<cr>
|
||||||
|
|
||||||
|
" Open editor to edit vifmrc and apply settings after returning to vifm
|
||||||
|
nnoremap ,c :write | edit $MYVIFMRC | restart full<cr>
|
||||||
|
" Open gvim to edit vifmrc
|
||||||
|
nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr>
|
||||||
|
|
||||||
|
" Toggle wrap setting on ,w key
|
||||||
|
nnoremap ,w :set wrap!<cr>
|
||||||
|
|
||||||
|
" Example of standard two-panel file managers mappings
|
||||||
|
nnoremap <f3> :!less %f<cr>
|
||||||
|
nnoremap <f4> :edit<cr>
|
||||||
|
nnoremap <f5> :copy<cr>
|
||||||
|
nnoremap <f6> :move<cr>
|
||||||
|
nnoremap <f7> :mkdir<space>
|
||||||
|
nnoremap <f8> :delete<cr>
|
||||||
|
|
||||||
|
" Midnight commander alike mappings
|
||||||
|
" Open current directory in the other pane
|
||||||
|
nnoremap <a-i> :sync<cr>
|
||||||
|
" Open directory under cursor in the other pane
|
||||||
|
nnoremap <a-o> :sync %c<cr>
|
||||||
|
" Swap panes
|
||||||
|
nnoremap <c-u> <c-w>x
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" Various customization examples
|
||||||
|
|
||||||
|
" Use ag (the silver searcher) instead of grep
|
||||||
|
"
|
||||||
|
" set grepprg='ag --line-numbers %i %a %s'
|
||||||
|
|
||||||
|
" Add additional place to look for executables
|
||||||
|
"
|
||||||
|
" let $PATH = $HOME.'/bin/fuse:'.$PATH
|
||||||
|
|
||||||
|
" Block particular shortcut
|
||||||
|
"
|
||||||
|
" nnoremap <left> <nop>
|
||||||
|
|
||||||
|
" Export IPC name of current instance as environment variable and use it to
|
||||||
|
" communicate with the instance later.
|
||||||
|
"
|
||||||
|
" It can be used in some shell script that gets run from inside vifm, for
|
||||||
|
" example, like this:
|
||||||
|
" vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'"
|
||||||
|
"
|
||||||
|
" let $VIFM_SERVER_NAME = v:servername
|
||||||
53
.config/yazi/init.lua
Normal file
53
.config/yazi/init.lua
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
-- Zeitstempel in Statusbar anzeigen
|
||||||
|
Status:children_add(function()
|
||||||
|
local h = cx.active.current.hovered
|
||||||
|
return ui.Line({
|
||||||
|
ui.Span(os.date("%d.%m.%Y %H:%M", tostring(h.cha.mtime):sub(1, 10))):fg("green"),
|
||||||
|
ui.Span(" "),
|
||||||
|
})
|
||||||
|
end, 500, Status.RIGHT)
|
||||||
|
|
||||||
|
-- Benutzer und Gruppe in Statusbar anzeigen
|
||||||
|
-- Status:children_add(function()
|
||||||
|
-- local h = cx.active.current.hovered
|
||||||
|
-- if h == nil or ya.target_family() ~= "unix" then
|
||||||
|
-- return ""
|
||||||
|
-- end
|
||||||
|
|
||||||
|
-- return ui.Line {
|
||||||
|
-- ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"),
|
||||||
|
-- ":",
|
||||||
|
-- ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"),
|
||||||
|
-- " ",
|
||||||
|
-- }
|
||||||
|
-- end, 500, Status.RIGHT)
|
||||||
|
|
||||||
|
-- kompletten Rahmen anzeigen
|
||||||
|
require("full-border"):setup {
|
||||||
|
-- Available values: ui.Border.PLAIN, ui.Border.ROUNDED
|
||||||
|
type = ui.Border.PLAIN,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Einstellungn für Plugin Project
|
||||||
|
require("projects"):setup({
|
||||||
|
save = {
|
||||||
|
method = "lua", -- yazi | lua
|
||||||
|
--lua_save_path = "~/.config/yazi/projects.json", -- comment out to get the default value
|
||||||
|
-- windows: "%APPDATA%/yazi/state/projects.json"
|
||||||
|
-- unix: "~/.local/state/yazi/projects.json"
|
||||||
|
},
|
||||||
|
last = {
|
||||||
|
update_after_save = true,
|
||||||
|
update_after_load = true,
|
||||||
|
load_after_start = true,
|
||||||
|
},
|
||||||
|
merge = {
|
||||||
|
quit_after_merge = false,
|
||||||
|
},
|
||||||
|
notify = {
|
||||||
|
enable = true,
|
||||||
|
title = "Projects",
|
||||||
|
timeout = 3,
|
||||||
|
level = "info",
|
||||||
|
},
|
||||||
|
})
|
||||||
437
.config/yazi/keymap.toml
Normal file
437
.config/yazi/keymap.toml
Normal file
@@ -0,0 +1,437 @@
|
|||||||
|
### Projects Keymaps ###
|
||||||
|
# [[manager.prepend_keymap]]
|
||||||
|
# on = [ "q" ]
|
||||||
|
# run = "plugin projects quit"
|
||||||
|
# desc = "Save last project and exit the process"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "T", "s" ]
|
||||||
|
run = "plugin projects save"
|
||||||
|
desc = "Save current project"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "T", "l" ]
|
||||||
|
run = "plugin projects load"
|
||||||
|
desc = "Load project"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "T", "P" ]
|
||||||
|
run = "plugin projects load_last"
|
||||||
|
desc = "Load last project"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "T", "d" ]
|
||||||
|
run = "plugin projects delete"
|
||||||
|
desc = "Delete project"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "T", "D" ]
|
||||||
|
run = "plugin projects delete_all"
|
||||||
|
desc = "Delete all projects"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "T", "m" ]
|
||||||
|
run = "plugin projects 'merge current'"
|
||||||
|
desc = "Merge current tab to other projects"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "T", "M" ]
|
||||||
|
run = "plugin projects 'merge all'"
|
||||||
|
desc = "Merge current project to other projects"
|
||||||
|
|
||||||
|
## eigene
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "!"
|
||||||
|
run = 'shell "$SHELL" --block'
|
||||||
|
desc = "Open shell here"
|
||||||
|
|
||||||
|
[[input.prepend_keymap]]
|
||||||
|
on = "<Esc>"
|
||||||
|
run = "close"
|
||||||
|
desc = "Cancel input"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "f"
|
||||||
|
run = "plugin jump-to-char"
|
||||||
|
desc = "Jump to char"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "-"
|
||||||
|
run = "plugin toggle-pane max-parent"
|
||||||
|
desc = "Hide or show parent window"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "+"
|
||||||
|
run = "plugin toggle-pane max-preview"
|
||||||
|
desc = "Hide or show preview pane"
|
||||||
|
|
||||||
|
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
|
||||||
|
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
|
||||||
|
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
|
||||||
|
|
||||||
|
[mgr]
|
||||||
|
|
||||||
|
keymap = [
|
||||||
|
{ on = "<Esc>", run = "escape", desc = "Exit visual mode, clear selected, or cancel search" },
|
||||||
|
{ on = "<C-[>", run = "escape", desc = "Exit visual mode, clear selected, or cancel search" },
|
||||||
|
{ on = "q", run = "quit", desc = "Quit the process" },
|
||||||
|
{ on = "Q", run = "quit --no-cwd-file", desc = "Quit the process without outputting cwd-file" },
|
||||||
|
{ on = "<C-c>", run = "close", desc = "Close the current tab, or quit if it's last" },
|
||||||
|
{ on = "<C-z>", run = "suspend", desc = "Suspend the process" },
|
||||||
|
|
||||||
|
# Hopping
|
||||||
|
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<C-u>", run = "arrow -50%", desc = "Move cursor up half page" },
|
||||||
|
{ on = "<C-d>", run = "arrow 50%", desc = "Move cursor down half page" },
|
||||||
|
{ on = "<C-b>", run = "arrow -100%", desc = "Move cursor up one page" },
|
||||||
|
{ on = "<C-f>", run = "arrow 100%", desc = "Move cursor down one page" },
|
||||||
|
|
||||||
|
{ on = "<S-PageUp>", run = "arrow -50%", desc = "Move cursor up half page" },
|
||||||
|
{ on = "<S-PageDown>", run = "arrow 50%", desc = "Move cursor down half page" },
|
||||||
|
{ on = "<PageUp>", run = "arrow -100%", desc = "Move cursor up one page" },
|
||||||
|
{ on = "<PageDown>", run = "arrow 100%", desc = "Move cursor down one page" },
|
||||||
|
|
||||||
|
{ on = [ "g", "g" ], run = "arrow top", desc = "Move cursor to the top" },
|
||||||
|
{ on = "G", run = "arrow bot", desc = "Move cursor to the bottom" },
|
||||||
|
|
||||||
|
# Navigation
|
||||||
|
{ on = "h", run = "leave", desc = "Go back to the parent directory" },
|
||||||
|
{ on = "l", run = "enter", desc = "Enter the child directory" },
|
||||||
|
|
||||||
|
{ on = "<Left>", run = "leave", desc = "Go back to the parent directory" },
|
||||||
|
{ on = "<Right>", run = "enter", desc = "Enter the child directory" },
|
||||||
|
|
||||||
|
{ on = "H", run = "back", desc = "Go back to the previous directory" },
|
||||||
|
{ on = "L", run = "forward", desc = "Go forward to the next directory" },
|
||||||
|
|
||||||
|
# Toggle
|
||||||
|
{ on = "<Space>", run = [ "toggle", "arrow 1" ], desc = "Toggle the current selection state" },
|
||||||
|
{ on = "<C-a>", run = "toggle_all --state=on", desc = "Select all files" },
|
||||||
|
{ on = "<C-r>", run = "toggle_all", desc = "Invert selection of all files" },
|
||||||
|
|
||||||
|
# Visual mode
|
||||||
|
{ on = "v", run = "visual_mode", desc = "Enter visual mode (selection mode)" },
|
||||||
|
{ on = "V", run = "visual_mode --unset", desc = "Enter visual mode (unset mode)" },
|
||||||
|
|
||||||
|
# Seeking
|
||||||
|
{ on = "K", run = "seek -5", desc = "Seek up 5 units in the preview" },
|
||||||
|
{ on = "J", run = "seek 5", desc = "Seek down 5 units in the preview" },
|
||||||
|
|
||||||
|
# Spotting
|
||||||
|
{ on = "<Tab>", run = "spot", desc = "Spot hovered file" },
|
||||||
|
|
||||||
|
# Operation
|
||||||
|
{ on = "o", run = "open", desc = "Open selected files" },
|
||||||
|
{ on = "O", run = "open --interactive", desc = "Open selected files interactively" },
|
||||||
|
{ on = "<Enter>", run = "open", desc = "Open selected files" },
|
||||||
|
{ on = "<S-Enter>", run = "open --interactive", desc = "Open selected files interactively" },
|
||||||
|
{ on = "y", run = "yank", desc = "Yank selected files (copy)" },
|
||||||
|
{ on = "x", run = "yank --cut", desc = "Yank selected files (cut)" },
|
||||||
|
{ on = "p", run = "paste", desc = "Paste yanked files" },
|
||||||
|
{ on = "P", run = "paste --force", desc = "Paste yanked files (overwrite if the destination exists)" },
|
||||||
|
{ on = "-", run = "link", desc = "Symlink the absolute path of yanked files" },
|
||||||
|
{ on = "_", run = "link --relative", desc = "Symlink the relative path of yanked files" },
|
||||||
|
{ on = "<C-->", run = "hardlink", desc = "Hardlink yanked files" },
|
||||||
|
{ on = "Y", run = "unyank", desc = "Cancel the yank status" },
|
||||||
|
{ on = "X", run = "unyank", desc = "Cancel the yank status" },
|
||||||
|
{ on = "d", run = "remove", desc = "Trash selected files" },
|
||||||
|
{ on = "D", run = "remove --permanently", desc = "Permanently delete selected files" },
|
||||||
|
{ on = "a", run = "create", desc = "Create a file (ends with / for directories)" },
|
||||||
|
{ on = "r", run = "rename --cursor=before_ext", desc = "Rename selected file(s)" },
|
||||||
|
{ on = ";", run = "shell --interactive", desc = "Run a shell command" },
|
||||||
|
{ on = ":", run = "shell --block --interactive", desc = "Run a shell command (block until finishes)" },
|
||||||
|
{ on = ".", run = "hidden toggle", desc = "Toggle the visibility of hidden files" },
|
||||||
|
{ on = "s", run = "search --via=fd", desc = "Search files by name via fd" },
|
||||||
|
{ on = "S", run = "search --via=rg", desc = "Search files by content via ripgrep" },
|
||||||
|
{ on = "<C-s>", run = "escape --search", desc = "Cancel the ongoing search" },
|
||||||
|
{ on = "z", run = "plugin zoxide", desc = "Jump to a directory via zoxide" },
|
||||||
|
{ on = "Z", run = "plugin fzf", desc = "Jump to a file/directory via fzf" },
|
||||||
|
|
||||||
|
# Linemode
|
||||||
|
{ on = [ "m", "s" ], run = "linemode size", desc = "Linemode: size" },
|
||||||
|
{ on = [ "m", "p" ], run = "linemode permissions", desc = "Linemode: permissions" },
|
||||||
|
{ on = [ "m", "b" ], run = "linemode btime", desc = "Linemode: btime" },
|
||||||
|
{ on = [ "m", "m" ], run = "linemode mtime", desc = "Linemode: mtime" },
|
||||||
|
{ on = [ "m", "o" ], run = "linemode owner", desc = "Linemode: owner" },
|
||||||
|
{ on = [ "m", "n" ], run = "linemode none", desc = "Linemode: none" },
|
||||||
|
|
||||||
|
# Copy and keybindings with 'c'
|
||||||
|
{ on = [ "c", "a" ], run = "plugin ouch", desc = "Archive selected files" },
|
||||||
|
#{ on = [ "c", "a" ], run = "plugin compress", desc = "Archive selected files" },
|
||||||
|
{ on = [ "c", "c" ], run = "copy path", desc = "Copy the file path" },
|
||||||
|
{ on = [ "c", "d" ], run = "copy dirname", desc = "Copy the directory path" },
|
||||||
|
{ on = [ "c", "f" ], run = "copy filename", desc = "Copy the filename" },
|
||||||
|
{ on = [ "c", "m" ], run = "plugin chmod", desc = "Chmod on selected files" },
|
||||||
|
{ on = [ "c", "n" ], run = "copy name_without_ext", desc = "Copy the filename without extension" },
|
||||||
|
|
||||||
|
# Filter
|
||||||
|
{ on = "F", run = "filter --smart", desc = "Filter files" },
|
||||||
|
|
||||||
|
# Find
|
||||||
|
{ on = "/", run = "find --smart", desc = "Find next file" },
|
||||||
|
{ on = "?", run = "find --previous --smart", desc = "Find previous file" },
|
||||||
|
{ on = "n", run = "find_arrow", desc = "Goto the next found" },
|
||||||
|
{ on = "N", run = "find_arrow --previous", desc = "Goto the previous found" },
|
||||||
|
|
||||||
|
# Sorting
|
||||||
|
{ on = [ ",", "m" ], run = [ "sort mtime --reverse=no", "linemode mtime" ], desc = "Sort by modified time" },
|
||||||
|
{ on = [ ",", "M" ], run = [ "sort mtime --reverse", "linemode mtime" ], desc = "Sort by modified time (reverse)" },
|
||||||
|
{ on = [ ",", "b" ], run = [ "sort btime --reverse=no", "linemode btime" ], desc = "Sort by birth time" },
|
||||||
|
{ on = [ ",", "B" ], run = [ "sort btime --reverse", "linemode btime" ], desc = "Sort by birth time (reverse)" },
|
||||||
|
{ on = [ ",", "e" ], run = "sort extension --reverse=no", desc = "Sort by extension" },
|
||||||
|
{ on = [ ",", "E" ], run = "sort extension --reverse", desc = "Sort by extension (reverse)" },
|
||||||
|
{ on = [ ",", "a" ], run = "sort alphabetical --reverse=no", desc = "Sort alphabetically" },
|
||||||
|
{ on = [ ",", "A" ], run = "sort alphabetical --reverse", desc = "Sort alphabetically (reverse)" },
|
||||||
|
{ on = [ ",", "n" ], run = "sort natural --reverse=no", desc = "Sort naturally" },
|
||||||
|
{ on = [ ",", "N" ], run = "sort natural --reverse", desc = "Sort naturally (reverse)" },
|
||||||
|
{ on = [ ",", "s" ], run = [ "sort size --reverse=no", "linemode size" ], desc = "Sort by size" },
|
||||||
|
{ on = [ ",", "S" ], run = [ "sort size --reverse", "linemode size" ], desc = "Sort by size (reverse)" },
|
||||||
|
{ on = [ ",", "r" ], run = "sort random --reverse=no", desc = "Sort randomly" },
|
||||||
|
|
||||||
|
# Goto an keybindings with 'g'
|
||||||
|
{ on = [ "g", "a" ], run = "plugin what-size", desc = "Calc size of selection" },
|
||||||
|
{ on = [ "g", "c" ], run = "cd ~/.config", desc = "Goto ~/.config" },
|
||||||
|
{ on = [ "g", "d" ], run = "cd ~/Downloads", desc = "Goto ~/Downloads" },
|
||||||
|
{ on = [ "g", "D" ], run = "cd /Daten", desc = "Goto /Daten" },
|
||||||
|
{ on = [ "g", "h" ], run = "cd ~", desc = "Go home" },
|
||||||
|
{ on = [ "g", "m" ], run = "cd /run/media/proenz", desc = "Go to media" },
|
||||||
|
{ on = [ "g", "n" ], run = "cd ~/Nextcloud", desc = "Go to Nextcloud" },
|
||||||
|
{ on = [ "g", "r" ], run = 'shell "$SHELL $0" --block', desc = "Execute script" },
|
||||||
|
{ on = [ "g", "R" ], run = "cd ~/Nextcloud/repos", desc = "Go to Nextcloud repos" },
|
||||||
|
{ on = [ "g", "<Space>" ], run = "cd --interactive", desc = "Jump interactively" },
|
||||||
|
|
||||||
|
# Tabs
|
||||||
|
{ on = "t", run = "tab_create --current", desc = "Create a new tab with CWD" },
|
||||||
|
|
||||||
|
{ on = "1", run = "tab_switch 0", desc = "Switch to the first tab" },
|
||||||
|
{ on = "2", run = "tab_switch 1", desc = "Switch to the second tab" },
|
||||||
|
{ on = "3", run = "tab_switch 2", desc = "Switch to the third tab" },
|
||||||
|
{ on = "4", run = "tab_switch 3", desc = "Switch to the fourth tab" },
|
||||||
|
{ on = "5", run = "tab_switch 4", desc = "Switch to the fifth tab" },
|
||||||
|
{ on = "6", run = "tab_switch 5", desc = "Switch to the sixth tab" },
|
||||||
|
{ on = "7", run = "tab_switch 6", desc = "Switch to the seventh tab" },
|
||||||
|
{ on = "8", run = "tab_switch 7", desc = "Switch to the eighth tab" },
|
||||||
|
{ on = "9", run = "tab_switch 8", desc = "Switch to the ninth tab" },
|
||||||
|
|
||||||
|
{ on = "[", run = "tab_switch -1 --relative", desc = "Switch to the previous tab" },
|
||||||
|
{ on = "]", run = "tab_switch 1 --relative", desc = "Switch to the next tab" },
|
||||||
|
|
||||||
|
{ on = "{", run = "tab_swap -1", desc = "Swap current tab with previous tab" },
|
||||||
|
{ on = "}", run = "tab_swap 1", desc = "Swap current tab with next tab" },
|
||||||
|
|
||||||
|
# Tasks
|
||||||
|
{ on = "w", run = "tasks:show", desc = "Show task manager" },
|
||||||
|
|
||||||
|
# Help
|
||||||
|
{ on = "~", run = "help", desc = "Open help" },
|
||||||
|
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[tasks]
|
||||||
|
|
||||||
|
keymap = [
|
||||||
|
{ on = "<Esc>", run = "close", desc = "Close task manager" },
|
||||||
|
{ on = "<C-[>", run = "close", desc = "Close task manager" },
|
||||||
|
{ on = "<C-c>", run = "close", desc = "Close task manager" },
|
||||||
|
{ on = "w", run = "close", desc = "Close task manager" },
|
||||||
|
|
||||||
|
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<Enter>", run = "inspect", desc = "Inspect the task" },
|
||||||
|
{ on = "x", run = "cancel", desc = "Cancel the task" },
|
||||||
|
|
||||||
|
# Help
|
||||||
|
{ on = "~", run = "help", desc = "Open help" },
|
||||||
|
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[spot]
|
||||||
|
|
||||||
|
keymap = [
|
||||||
|
{ on = "<Esc>", run = "close", desc = "Close the spot" },
|
||||||
|
{ on = "<C-[>", run = "close", desc = "Close the spot" },
|
||||||
|
{ on = "<C-c>", run = "close", desc = "Close the spot" },
|
||||||
|
{ on = "<Tab>", run = "close", desc = "Close the spot" },
|
||||||
|
|
||||||
|
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
{ on = "h", run = "swipe -1", desc = "Swipe to the previous file" },
|
||||||
|
{ on = "l", run = "swipe 1", desc = "Swipe to the next file" },
|
||||||
|
|
||||||
|
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
{ on = "<Left>", run = "swipe -1", desc = "Swipe to the next file" },
|
||||||
|
{ on = "<Right>", run = "swipe 1", desc = "Swipe to the previous file" },
|
||||||
|
|
||||||
|
# Copy
|
||||||
|
{ on = [ "c", "c" ], run = "copy cell", desc = "Copy selected cell" },
|
||||||
|
|
||||||
|
# Help
|
||||||
|
{ on = "~", run = "help", desc = "Open help" },
|
||||||
|
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[pick]
|
||||||
|
|
||||||
|
keymap = [
|
||||||
|
{ on = "<Esc>", run = "close", desc = "Cancel pick" },
|
||||||
|
{ on = "<C-[>", run = "close", desc = "Cancel pick" },
|
||||||
|
{ on = "<C-c>", run = "close", desc = "Cancel pick" },
|
||||||
|
{ on = "<Enter>", run = "close --submit", desc = "Submit the pick" },
|
||||||
|
|
||||||
|
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
# Help
|
||||||
|
{ on = "~", run = "help", desc = "Open help" },
|
||||||
|
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[input]
|
||||||
|
|
||||||
|
keymap = [
|
||||||
|
{ on = "<C-c>", run = "close", desc = "Cancel input" },
|
||||||
|
{ on = "<Enter>", run = "close --submit", desc = "Submit input" },
|
||||||
|
{ on = "<Esc>", run = "escape", desc = "Go back the normal mode, or cancel input" },
|
||||||
|
{ on = "<C-[>", run = "escape", desc = "Go back the normal mode, or cancel input" },
|
||||||
|
|
||||||
|
# Mode
|
||||||
|
{ on = "i", run = "insert", desc = "Enter insert mode" },
|
||||||
|
{ on = "I", run = [ "move first-char", "insert" ], desc = "Move to the BOL, and enter insert mode" },
|
||||||
|
{ on = "a", run = "insert --append", desc = "Enter append mode" },
|
||||||
|
{ on = "A", run = [ "move eol", "insert --append" ], desc = "Move to the EOL, and enter append mode" },
|
||||||
|
{ on = "v", run = "visual", desc = "Enter visual mode" },
|
||||||
|
{ on = "V", run = [ "move bol", "visual", "move eol" ], desc = "Enter visual mode and select all" },
|
||||||
|
{ on = "r", run = "replace", desc = "Replace a single character" },
|
||||||
|
|
||||||
|
# Character-wise movement
|
||||||
|
{ on = "h", run = "move -1", desc = "Move back a character" },
|
||||||
|
{ on = "l", run = "move 1", desc = "Move forward a character" },
|
||||||
|
{ on = "<Left>", run = "move -1", desc = "Move back a character" },
|
||||||
|
{ on = "<Right>", run = "move 1", desc = "Move forward a character" },
|
||||||
|
{ on = "<C-b>", run = "move -1", desc = "Move back a character" },
|
||||||
|
{ on = "<C-f>", run = "move 1", desc = "Move forward a character" },
|
||||||
|
|
||||||
|
# Word-wise movement
|
||||||
|
{ on = "b", run = "backward", desc = "Move back to the start of the current or previous word" },
|
||||||
|
{ on = "B", run = "backward --far", desc = "Move back to the start of the current or previous WORD" },
|
||||||
|
{ on = "w", run = "forward", desc = "Move forward to the start of the next word" },
|
||||||
|
{ on = "W", run = "forward --far", desc = "Move forward to the start of the next WORD" },
|
||||||
|
{ on = "e", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" },
|
||||||
|
{ on = "E", run = "forward --far --end-of-word", desc = "Move forward to the end of the current or next WORD" },
|
||||||
|
{ on = "<A-b>", run = "backward", desc = "Move back to the start of the current or previous word" },
|
||||||
|
{ on = "<A-f>", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" },
|
||||||
|
|
||||||
|
# Line-wise movement
|
||||||
|
{ on = "0", run = "move bol", desc = "Move to the BOL" },
|
||||||
|
{ on = "$", run = "move eol", desc = "Move to the EOL" },
|
||||||
|
{ on = "_", run = "move first-char", desc = "Move to the first non-whitespace character" },
|
||||||
|
{ on = "^", run = "move first-char", desc = "Move to the first non-whitespace character" },
|
||||||
|
{ on = "<C-a>", run = "move bol", desc = "Move to the BOL" },
|
||||||
|
{ on = "<C-e>", run = "move eol", desc = "Move to the EOL" },
|
||||||
|
{ on = "<Home>", run = "move bol", desc = "Move to the BOL" },
|
||||||
|
{ on = "<End>", run = "move eol", desc = "Move to the EOL" },
|
||||||
|
|
||||||
|
# Delete
|
||||||
|
{ on = "<Backspace>", run = "backspace", desc = "Delete the character before the cursor" },
|
||||||
|
{ on = "<Delete>", run = "backspace --under", desc = "Delete the character under the cursor" },
|
||||||
|
{ on = "<C-h>", run = "backspace", desc = "Delete the character before the cursor" },
|
||||||
|
{ on = "<C-d>", run = "backspace --under", desc = "Delete the character under the cursor" },
|
||||||
|
|
||||||
|
# Kill
|
||||||
|
{ on = "<C-u>", run = "kill bol", desc = "Kill backwards to the BOL" },
|
||||||
|
{ on = "<C-k>", run = "kill eol", desc = "Kill forwards to the EOL" },
|
||||||
|
{ on = "<C-w>", run = "kill backward", desc = "Kill backwards to the start of the current word" },
|
||||||
|
{ on = "<A-d>", run = "kill forward", desc = "Kill forwards to the end of the current word" },
|
||||||
|
|
||||||
|
# Cut/Yank/Paste
|
||||||
|
{ on = "d", run = "delete --cut", desc = "Cut the selected characters" },
|
||||||
|
{ on = "D", run = [ "delete --cut", "move eol" ], desc = "Cut until the EOL" },
|
||||||
|
{ on = "c", run = "delete --cut --insert", desc = "Cut the selected characters, and enter insert mode" },
|
||||||
|
{ on = "C", run = [ "delete --cut --insert", "move eol" ], desc = "Cut until the EOL, and enter insert mode" },
|
||||||
|
{ on = "x", run = [ "delete --cut", "move 1 --in-operating" ], desc = "Cut the current character" },
|
||||||
|
{ on = "y", run = "yank", desc = "Copy the selected characters" },
|
||||||
|
{ on = "p", run = "paste", desc = "Paste the copied characters after the cursor" },
|
||||||
|
{ on = "P", run = "paste --before", desc = "Paste the copied characters before the cursor" },
|
||||||
|
|
||||||
|
# Undo/Redo
|
||||||
|
{ on = "u", run = "undo", desc = "Undo the last operation" },
|
||||||
|
{ on = "<C-r>", run = "redo", desc = "Redo the last operation" },
|
||||||
|
|
||||||
|
# Help
|
||||||
|
{ on = "~", run = "help", desc = "Open help" },
|
||||||
|
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[confirm]
|
||||||
|
|
||||||
|
keymap = [
|
||||||
|
{ on = "<Esc>", run = "close", desc = "Cancel the confirm" },
|
||||||
|
{ on = "<C-[>", run = "close", desc = "Cancel the confirm" },
|
||||||
|
{ on = "<C-c>", run = "close", desc = "Cancel the confirm" },
|
||||||
|
{ on = "<Enter>", run = "close --submit", desc = "Submit the confirm" },
|
||||||
|
|
||||||
|
{ on = "n", run = "close", desc = "Cancel the confirm" },
|
||||||
|
{ on = "y", run = "close --submit", desc = "Submit the confirm" },
|
||||||
|
|
||||||
|
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
# Help
|
||||||
|
{ on = "~", run = "help", desc = "Open help" },
|
||||||
|
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[completion]
|
||||||
|
|
||||||
|
keymap = [
|
||||||
|
{ on = "<C-c>", run = "close", desc = "Cancel completion" },
|
||||||
|
{ on = "<Tab>", run = "close --submit", desc = "Submit the completion" },
|
||||||
|
{ on = "<Enter>", run = [ "close --submit", "close_input --submit" ], desc = "Submit the completion and input" },
|
||||||
|
|
||||||
|
{ on = "<A-k>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<A-j>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<C-p>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<C-n>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
# Help
|
||||||
|
{ on = "~", run = "help", desc = "Open help" },
|
||||||
|
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[help]
|
||||||
|
|
||||||
|
keymap = [
|
||||||
|
{ on = "<Esc>", run = "escape", desc = "Clear the filter, or hide the help" },
|
||||||
|
{ on = "<C-[>", run = "escape", desc = "Clear the filter, or hide the help" },
|
||||||
|
{ on = "<C-c>", run = "close", desc = "Hide the help" },
|
||||||
|
|
||||||
|
# Navigation
|
||||||
|
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
|
||||||
|
# Filtering
|
||||||
|
{ on = "f", run = "filter", desc = "Apply a filter for the help items" },
|
||||||
|
]
|
||||||
59
.config/yazi/package.toml
Normal file
59
.config/yazi/package.toml
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:jump-to-char"
|
||||||
|
rev = "05234ed"
|
||||||
|
hash = "ce67445ebb1bf3d97b8e44f50904b2c5"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:chmod"
|
||||||
|
rev = "05234ed"
|
||||||
|
hash = "5b2eb0cc2050cec1e4de83cfa51a5b90"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "pirafrank/what-size"
|
||||||
|
rev = "d896656"
|
||||||
|
hash = "62251f94eb67648d42cdfcfb8be0fad2"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:full-border"
|
||||||
|
rev = "05234ed"
|
||||||
|
hash = "3996fc74044bc44144b323686f887e1"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "MasouShizuka/projects"
|
||||||
|
rev = "a5e33db"
|
||||||
|
hash = "3de26efded35814ba3e55e28f1c389a4"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:toggle-pane"
|
||||||
|
rev = "05234ed"
|
||||||
|
hash = "8a7c58225816a163a6e8730c0adafbc8"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "ndtoan96/ouch"
|
||||||
|
rev = "cfb9140"
|
||||||
|
hash = "b5067143415bd2d46c0dfa57319ddcef"
|
||||||
|
|
||||||
|
[[flavor.deps]]
|
||||||
|
use = "yazi-rs/flavors:catppuccin-macchiato"
|
||||||
|
rev = "9276ffa"
|
||||||
|
hash = "9b9a8e91898a73c1211788a4ed30336"
|
||||||
|
|
||||||
|
[[flavor.deps]]
|
||||||
|
use = "kmlupreti/ayu-dark"
|
||||||
|
rev = "648a178"
|
||||||
|
hash = "1a8af82f6246942bd700316a16c4e14a"
|
||||||
|
|
||||||
|
[[flavor.deps]]
|
||||||
|
use = "marcosvnmelo/kanagawa-dragon"
|
||||||
|
rev = "4905527"
|
||||||
|
hash = "5fd7aa0bf4e7d9753ad8a4660a6eb94f"
|
||||||
|
|
||||||
|
[[flavor.deps]]
|
||||||
|
use = "dangooddd/kanagawa"
|
||||||
|
rev = "a0b1d9d"
|
||||||
|
hash = "abfb0b2371259b2c8adfc7b617c3d7e5"
|
||||||
|
|
||||||
|
[[flavor.deps]]
|
||||||
|
use = "gosxrgxx/flexoki-dark"
|
||||||
|
rev = "28e1977"
|
||||||
|
hash = "9dbbb64ea20f9f1271c31951dea55c7b"
|
||||||
10
.config/yazi/theme.toml
Normal file
10
.config/yazi/theme.toml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[flavor]
|
||||||
|
dark = "kanagawa"
|
||||||
|
#use = "kanagawa-dragon"
|
||||||
|
#dark = "catppuccin-macchiato"
|
||||||
|
#use = "ayu-dark"
|
||||||
|
#dark = "tokyo-night"
|
||||||
|
#dark = "flexoki-dark"
|
||||||
|
|
||||||
|
#[status]
|
||||||
|
#overall = { fg = "#cad3f5", bg = "#181926" }
|
||||||
226
.config/yazi/yazi.toml
Normal file
226
.config/yazi/yazi.toml
Normal file
@@ -0,0 +1,226 @@
|
|||||||
|
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
|
||||||
|
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
|
||||||
|
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json"
|
||||||
|
|
||||||
|
[mgr]
|
||||||
|
ratio = [ 0, 8, 0 ]
|
||||||
|
sort_by = "alphabetical"
|
||||||
|
sort_sensitive = false
|
||||||
|
sort_reverse = false
|
||||||
|
sort_dir_first = true
|
||||||
|
sort_translit = false
|
||||||
|
linemode = "size"
|
||||||
|
show_hidden = true
|
||||||
|
show_symlink = true
|
||||||
|
scrolloff = 5
|
||||||
|
mouse_events = [ "click", "scroll" ]
|
||||||
|
title_format = "Yazi: {cwd}"
|
||||||
|
|
||||||
|
[preview]
|
||||||
|
wrap = "no"
|
||||||
|
tab_size = 2
|
||||||
|
max_width = 600
|
||||||
|
max_height = 900
|
||||||
|
cache_dir = ""
|
||||||
|
image_delay = 30
|
||||||
|
image_filter = "triangle"
|
||||||
|
image_quality = 75
|
||||||
|
sixel_fraction = 15
|
||||||
|
ueberzug_scale = 1
|
||||||
|
ueberzug_offset = [ 0, 0, 0, 0 ]
|
||||||
|
|
||||||
|
[opener]
|
||||||
|
picture = [
|
||||||
|
{ run = 'sxiv -g 1650x946 "$@"', orphan = true, desc = "Open picture", for = "unix" },
|
||||||
|
]
|
||||||
|
edit = [
|
||||||
|
{ run = '${EDITOR:-vi} "$@"', desc = "$EDITOR", block = true, for = "unix" },
|
||||||
|
{ run = 'code %*', orphan = true, desc = "code", for = "windows" },
|
||||||
|
{ run = 'code -w %*', block = true, desc = "code (block)", for = "windows" },
|
||||||
|
]
|
||||||
|
open = [
|
||||||
|
{ run = 'xdg-open "$1"', desc = "Open", for = "linux" },
|
||||||
|
{ run = 'open "$@"', desc = "Open", for = "macos" },
|
||||||
|
{ run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" },
|
||||||
|
{ run = 'termux-open "$1"', desc = "Open", for = "android" },
|
||||||
|
]
|
||||||
|
reveal = [
|
||||||
|
{ run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" },
|
||||||
|
{ run = 'open -R "$1"', desc = "Reveal", for = "macos" },
|
||||||
|
{ run = 'explorer /select,"%1"', orphan = true, desc = "Reveal", for = "windows" },
|
||||||
|
{ run = 'termux-open "$(dirname "$1")"', desc = "Reveal", for = "android" },
|
||||||
|
{ run = '''exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" },
|
||||||
|
]
|
||||||
|
extract = [
|
||||||
|
{ run = 'ya pub extract --list "$@"', desc = "Extract here", for = "unix" },
|
||||||
|
{ run = 'ya pub extract --list %*', desc = "Extract here", for = "windows" },
|
||||||
|
]
|
||||||
|
play = [
|
||||||
|
{ run = 'mpv --force-window "$@"', orphan = true, for = "unix" },
|
||||||
|
{ run = 'mpv --force-window %*', orphan = true, for = "windows" },
|
||||||
|
{ run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[open]
|
||||||
|
rules = [
|
||||||
|
# Folder
|
||||||
|
{ name = "*/", use = [ "edit", "open", "reveal" ] },
|
||||||
|
# Text
|
||||||
|
{ mime = "text/*", use = [ "edit", "reveal" ] },
|
||||||
|
# Image
|
||||||
|
{ mime = "image/*", use = [ "picture", "reveal" ] },
|
||||||
|
#{ mime = "image/*", use = [ "open", "reveal" ] },
|
||||||
|
# Media
|
||||||
|
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
|
||||||
|
# Archive
|
||||||
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", use = [ "extract", "reveal" ] },
|
||||||
|
# JSON
|
||||||
|
{ mime = "application/{json,ndjson}", use = [ "edit", "reveal" ] },
|
||||||
|
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
|
||||||
|
# Empty file
|
||||||
|
{ mime = "inode/empty", use = [ "edit", "reveal" ] },
|
||||||
|
# Fallback
|
||||||
|
{ name = "*", use = [ "open", "reveal" ] },
|
||||||
|
]
|
||||||
|
|
||||||
|
[tasks]
|
||||||
|
micro_workers = 10
|
||||||
|
macro_workers = 10
|
||||||
|
bizarre_retry = 3
|
||||||
|
image_alloc = 536870912 # 512MB
|
||||||
|
image_bound = [ 0, 0 ]
|
||||||
|
suppress_preload = false
|
||||||
|
|
||||||
|
[plugin]
|
||||||
|
|
||||||
|
fetchers = [
|
||||||
|
# Mimetype
|
||||||
|
{ id = "mime", name = "*", run = "mime", prio = "high" },
|
||||||
|
]
|
||||||
|
spotters = [
|
||||||
|
{ name = "*/", run = "folder" },
|
||||||
|
# Code
|
||||||
|
{ mime = "text/*", run = "code" },
|
||||||
|
{ mime = "application/{mbox,javascript,wine-extension-ini}", run = "code" },
|
||||||
|
# Image
|
||||||
|
{ mime = "image/{avif,hei?,jxl,svg+xml}", run = "magick" },
|
||||||
|
{ mime = "image/*", run = "image" },
|
||||||
|
# Video
|
||||||
|
{ mime = "video/*", run = "video" },
|
||||||
|
# Fallback
|
||||||
|
{ name = "*", run = "file" },
|
||||||
|
]
|
||||||
|
preloaders = [
|
||||||
|
# Image
|
||||||
|
{ mime = "image/{avif,hei?,jxl,svg+xml}", run = "magick" },
|
||||||
|
{ mime = "image/*", run = "image" },
|
||||||
|
# Video
|
||||||
|
{ mime = "video/*", run = "video" },
|
||||||
|
# PDF
|
||||||
|
{ mime = "application/pdf", run = "pdf" },
|
||||||
|
# Font
|
||||||
|
{ mime = "font/*", run = "font" },
|
||||||
|
{ mime = "application/ms-opentype", run = "font" },
|
||||||
|
]
|
||||||
|
previewers = [
|
||||||
|
{ name = "*/", run = "folder", sync = true },
|
||||||
|
# Code
|
||||||
|
{ mime = "text/*", run = "code" },
|
||||||
|
{ mime = "application/{mbox,javascript,wine-extension-ini}", run = "code" },
|
||||||
|
# JSON
|
||||||
|
{ mime = "application/{json,ndjson}", run = "json" },
|
||||||
|
# Image
|
||||||
|
{ mime = "image/{avif,hei?,jxl,svg+xml}", run = "magick" },
|
||||||
|
{ mime = "image/*", run = "image" },
|
||||||
|
# Video
|
||||||
|
{ mime = "video/*", run = "video" },
|
||||||
|
# PDF
|
||||||
|
{ mime = "application/pdf", run = "pdf" },
|
||||||
|
# Archive
|
||||||
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", run = "archive" },
|
||||||
|
{ mime = "application/{debian*-package,redhat-package-manager,rpm,android.package-archive}", run = "archive" },
|
||||||
|
{ name = "*.{AppImage,appimage}", run = "archive" },
|
||||||
|
# Virtual Disk / Disk Image
|
||||||
|
{ mime = "application/{iso9660-image,qemu-disk,ms-wim,apple-diskimage}", run = "archive" },
|
||||||
|
{ mime = "application/virtualbox-{vhd,vhdx}", run = "archive" },
|
||||||
|
{ name = "*.{img,fat,ext,ext2,ext3,ext4,squashfs,ntfs,hfs,hfsx}", run = "archive" },
|
||||||
|
# Font
|
||||||
|
{ mime = "font/*", run = "font" },
|
||||||
|
{ mime = "application/ms-opentype", run = "font" },
|
||||||
|
# Empty file
|
||||||
|
{ mime = "inode/empty", run = "empty" },
|
||||||
|
# Fallback
|
||||||
|
{ name = "*", run = "file" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[input]
|
||||||
|
cursor_blink = false
|
||||||
|
|
||||||
|
# cd
|
||||||
|
cd_title = "Change directory:"
|
||||||
|
cd_origin = "top-center"
|
||||||
|
cd_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# create
|
||||||
|
create_title = [ "Create:", "Create (dir):" ]
|
||||||
|
create_origin = "top-center"
|
||||||
|
create_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# rename
|
||||||
|
rename_title = "Rename:"
|
||||||
|
rename_origin = "hovered"
|
||||||
|
rename_offset = [ 0, 1, 50, 3 ]
|
||||||
|
|
||||||
|
# filter
|
||||||
|
filter_title = "Filter:"
|
||||||
|
filter_origin = "top-center"
|
||||||
|
filter_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# find
|
||||||
|
find_title = [ "Find next:", "Find previous:" ]
|
||||||
|
find_origin = "top-center"
|
||||||
|
find_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# search
|
||||||
|
search_title = "Search via {n}:"
|
||||||
|
search_origin = "top-center"
|
||||||
|
search_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# shell
|
||||||
|
shell_title = [ "Shell:", "Shell (block):" ]
|
||||||
|
shell_origin = "top-center"
|
||||||
|
shell_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
[confirm]
|
||||||
|
# trash
|
||||||
|
trash_title = "Trash {n} selected file{s}?"
|
||||||
|
trash_origin = "center"
|
||||||
|
trash_offset = [ 0, 0, 70, 20 ]
|
||||||
|
|
||||||
|
# delete
|
||||||
|
delete_title = "Permanently delete {n} selected file{s}?"
|
||||||
|
delete_origin = "center"
|
||||||
|
delete_offset = [ 0, 0, 70, 20 ]
|
||||||
|
|
||||||
|
# overwrite
|
||||||
|
overwrite_title = "Overwrite file?"
|
||||||
|
overwrite_content = "Will overwrite the following file:"
|
||||||
|
overwrite_origin = "center"
|
||||||
|
overwrite_offset = [ 0, 0, 50, 15 ]
|
||||||
|
|
||||||
|
# quit
|
||||||
|
quit_title = "Quit?"
|
||||||
|
quit_content = "The following tasks are still running, are you sure you want to quit?"
|
||||||
|
quit_origin = "center"
|
||||||
|
quit_offset = [ 0, 0, 50, 15 ]
|
||||||
|
|
||||||
|
[pick]
|
||||||
|
open_title = "Open with:"
|
||||||
|
open_origin = "hovered"
|
||||||
|
open_offset = [ 0, 1, 50, 7 ]
|
||||||
|
|
||||||
|
[which]
|
||||||
|
sort_by = "none"
|
||||||
|
sort_sensitive = false
|
||||||
|
sort_reverse = false
|
||||||
|
sort_translit = false
|
||||||
@@ -5,6 +5,9 @@
|
|||||||
Hier die Sammlung meiner persönlichen =Dotfiles=.
|
Hier die Sammlung meiner persönlichen =Dotfiles=.
|
||||||
|
|
||||||
* Erklärungen
|
* Erklärungen
|
||||||
|
Aktuell sammel ich hier erstmal alle Dotfiles, die ich global für meine PCs nutzen kann. Also nur diese für Anwendungen und nicht die für verschiedene Window-Manager. Das soll aber später auch noch folgen.
|
||||||
|
|
||||||
* Changelog
|
* Changelog
|
||||||
|
+ 25.12.2025: vifm und yazi zugefügt
|
||||||
+ 25.12.2025: alacritty, Doom Emacs und vim zugefügt
|
+ 25.12.2025: alacritty, Doom Emacs und vim zugefügt
|
||||||
+ 25.12.2025: .bashrc und starship.toml zugefügt
|
+ 25.12.2025: .bashrc und starship.toml zugefügt
|
||||||
|
|||||||
Reference in New Issue
Block a user