xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 6ff583b2eed79787f6693381e1c04e8c51df2d8d

Fixed use of envvars in :ifs in sample vifmrc file
Checking for an empty string should be done explicitly with `==` or
`!=`.

Thanks to justpretending2.

Part of #1023 on GitHub.
Author: xaizek
Author date (UTC): 2024-10-15 12:11
Committer name: xaizek
Committer date (UTC): 2024-10-15 12:11
Parent(s): 8081549038a8ed2f8015656119223c145044df3c
Signing key: 99DC5E4DB05F6BE2
Tree: 808e704ea4a1c3199ba2448a41606422f936ac84
File Lines added Lines deleted
ChangeLog 4 0
data/vifmrc 7 7
File ChangeLog changed (mode: 100644) (index 6c3a022c8..3eab8148a)
365 365 Fixed `&&` operator which was acting as binary `&` (in terms of Fixed `&&` operator which was acting as binary `&` (in terms of
366 366 evaluation, the result was properly boolean). Thanks to justpretending2. evaluation, the result was properly boolean). Thanks to justpretending2.
367 367
368 Fixed use of environment variables in :if in sample vifmrc file. Checking
369 for an empty string should be done explicitly with `==` or `!=`. Thanks
370 to justpretending2.
371
368 372 0.13-beta to 0.13 (2023-04-04) 0.13-beta to 0.13 (2023-04-04)
369 373
370 374 Made "withicase" and "withrcase" affect how files are sorted before Made "withicase" and "withrcase" affect how files are sorted before
File data/vifmrc changed (mode: 100644) (index 36bd63958..35b09162b)
1 1 " vim: filetype=vifm : " vim: filetype=vifm :
2 " Sample configuration file for vifm (last updated: 29 August, 2024)
2 " Sample configuration file for vifm (last updated: 15 October, 2024)
3 3 " You can edit this file by hand. " You can edit this file by hand.
4 4 " The " character at the beginning of a line comments out the line. " The " character at the beginning of a line comments out the line.
5 5 " Blank lines are ignored. " Blank lines are ignored.
 
... ... nnoremap S :sort<cr>
468 468 nnoremap w :view<cr> nnoremap w :view<cr>
469 469 vnoremap w :view<cr>gv vnoremap w :view<cr>gv
470 470
471 if $DISPLAY && executable('gvim')
471 if $DISPLAY != '' && executable('gvim')
472 472 " Open file in existing instance of gvim " Open file in existing instance of gvim
473 473 nnoremap o :!gvim --remote-tab-silent %f<cr> nnoremap o :!gvim --remote-tab-silent %f<cr>
474 474 " Open file in new instance of gvim " Open file in new instance of gvim
 
... ... if has('win')
484 484 nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr> nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr>
485 485 " Yank path to current file to Windows clipboard with forward slashes " Yank path to current file to Windows clipboard with forward slashes
486 486 nnoremap yf :!echo %"c:p:gs!\!/! %i | clip<cr> nnoremap yf :!echo %"c:p:gs!\!/! %i | clip<cr>
487 elseif $WAYLAND_DISPLAY
487 elseif $WAYLAND_DISPLAY != ''
488 488 if executable('wl-copy') if executable('wl-copy')
489 489 " Yank current directory path into primary and selection clipboards " Yank current directory path into primary and selection clipboards
490 490 nnoremap yd :!echo -n %d | wl-copy %i && nnoremap yd :!echo -n %d | wl-copy %i &&
 
... ... elseif $WAYLAND_DISPLAY
493 493 nnoremap yf :!echo -n %c:p | wl-copy %i && nnoremap yf :!echo -n %c:p | wl-copy %i &&
494 494 \ echo -n %c:p | wl-copy -p %i<cr> \ echo -n %c:p | wl-copy -p %i<cr>
495 495 endif endif
496 elseif $DISPLAY
496 elseif $DISPLAY != ''
497 497 if executable('xclip') if executable('xclip')
498 498 " Yank current directory path into the clipboard " Yank current directory path into the clipboard
499 499 nnoremap yd :!echo -n %d | xclip -selection clipboard %i<cr> nnoremap yd :!echo -n %d | xclip -selection clipboard %i<cr>
 
... ... nnoremap A cw
520 520 " nnoremap A cW " nnoremap A cW
521 521
522 522 " Open console in current directory " Open console in current directory
523 if $DISPLAY && executable('xterm')
523 if $DISPLAY != '' && executable('xterm')
524 524 nnoremap ,t :!xterm &<cr> nnoremap ,t :!xterm &<cr>
525 elseif $TERMINAL
525 elseif $TERMINAL != ''
526 526 nnoremap ,t :!$TERMINAL &<cr> nnoremap ,t :!$TERMINAL &<cr>
527 527 endif endif
528 528
 
... ... endif
530 530 nnoremap ,c :write | edit $MYVIFMRC | restart full<cr> nnoremap ,c :write | edit $MYVIFMRC | restart full<cr>
531 531
532 532 " Open gvim to edit vifmrc " Open gvim to edit vifmrc
533 if $DISPLAY && executable('gvim')
533 if $DISPLAY != '' && executable('gvim')
534 534 nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr> nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr>
535 535 endif endif
536 536
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master