switch to nfm

This commit is contained in:
LordMZTE 2023-07-07 12:44:04 +02:00
parent d42ef4ac81
commit 74ef348905
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
8 changed files with 9 additions and 270 deletions

View file

@ -2,7 +2,6 @@
fish_vi_key_bindings
# ALIASES
alias jo="TERM=xterm-256color joshuto"
alias clip="xclip -sel clip"
alias nv="nvim"
#alias nvide="rbg neovide --nofork --multigrid --"

View file

@ -1,33 +0,0 @@
# currently does not work
scroll_offset = 6
xdg_open = false
use_trash = true
[display]
automatically_count_files = false
collapse_preview = true
# ratios for parent view, current view and preview
column_ratio = [1, 4, 4]
show_borders = true
show_hidden = false
show_icons = true
show_preview = true
tilde_in_titlebar = true
[display.sort]
# lexical, mtime, natural
method = "lexical"
case_sensitive = false
directories_first = true
reverse = false
# Not fully implemented yet
[preview]
max_preview_size = 2097152 # 2MB
preview_images = true
preview_script = "~/.config/joshuto/preview.sh"
[tab]
# inherit, home, root
home_page = "inherit"

View file

@ -1,209 +0,0 @@
[keymaps]
# backspace = 263
[[mapcommand]]
command = "new_tab"
keys = ["T"]
[[mapcommand]]
command = "new_tab"
keys = ["ctrl+t"]
[[mapcommand]]
command = "close_tab"
keys = ["W"]
[[mapcommand]]
command = "close_tab"
keys = ["ctrl+w"]
[[mapcommand]]
command = "close_tab"
keys = ["q"]
[[mapcommand]]
command = "force_quit"
keys = ["Q"]
[[mapcommand]]
command = "reload_dirlist"
keys = ["R"]
[[mapcommand]]
command = "toggle_hidden"
keys = ["z", "h"]
[[mapcommand]]
command = "tab_switch 1"
keys = ["\t"]
[[mapcommand]]
command = "tab_switch -1"
keys = ["backtab"]
[[mapcommand]]
command = "cursor_move_up"
keys = ["arrow_up"]
[[mapcommand]]
command = "cursor_move_up"
keys = ["k"]
[[mapcommand]]
command = "cursor_move_up 10"
keys = ["ctrl+u"]
[[mapcommand]]
command = "cursor_move_down 10"
keys = ["ctrl+d"]
[[mapcommand]]
command = "cursor_move_down"
keys = ["arrow_down"]
[[mapcommand]]
command = "cursor_move_down"
keys = ["j"]
[[mapcommand]]
command = "cursor_move_end"
keys = ["end"]
[[mapcommand]]
command = "cursor_move_end"
keys = ["G"]
[[mapcommand]]
command = "cursor_move_home"
keys = ["home"]
[[mapcommand]]
command = "cursor_move_home"
keys = ["g", "g"]
[[mapcommand]]
command = "cursor_move_page_up"
keys = ["page_up"]
[[mapcommand]]
command = "cursor_move_page_down"
keys = ["page_down"]
[[mapcommand]]
command = "parent_cursor_move_up"
keys = ["["]
[[mapcommand]]
command = "parent_cursor_move_down"
keys = ["]"]
[[mapcommand]]
command = "open"
keys = ["arrow_right"]
[[mapcommand]]
command = "open"
keys = ["l"]
[[mapcommand]]
command = "open"
keys = ["\n"]
[[mapcommand]]
command = "open_with"
keys = ["r"]
[[mapcommand]]
command = ":cd "
keys = ["c", "d"]
[[mapcommand]]
command = "cd .."
keys = ["arrow_left"]
[[mapcommand]]
command = "cd .."
keys = ["h"]
[[mapcommand]]
command = "cut_files"
keys = ["d", "d"]
[[mapcommand]]
command = "copy_files"
keys = ["y", "y"]
[[mapcommand]]
command = "copy_filename"
keys = ["y", "n"]
[[mapcommand]]
command = "copy_filename_without_extension"
keys = ["y", "."]
[[mapcommand]]
command = "copy_filepath"
keys = ["y", "p"]
[[mapcommand]]
command = "copy_dirname"
keys = ["y", "d"]
[[mapcommand]]
command = "paste_files"
keys = ["p", "p"]
[[mapcommand]]
command = "paste_files --overwrite=true"
keys = ["p", "o"]
[[mapcommand]]
command = "delete_files"
keys = ["d", "D"]
[[mapcommand]]
command = "delete_files"
keys = ["delete"]
[[mapcommand]]
command = "rename_append"
keys = ["a"]
[[mapcommand]]
command = "rename_prepend"
keys = ["A"]
[[mapcommand]]
command = "select --toggle=true"
keys = [" "]
[[mapcommand]]
command = "select --toggle=true --all=true"
keys = ["t"]
[[mapcommand]]
command = "search_skim"
keys = ["f", "f"]
[[mapcommand]]
command = ":search "
keys = ["/"]
[[mapcommand]]
command = ":search_glob "
keys = ["\\"]
[[mapcommand]]
command = "search_next"
keys = ["n"]
[[mapcommand]]
command = "search_prev"
keys = ["N"]
[[mapcommand]]
command = "bulk_rename"
keys = ["b", "b"]
[[mapcommand]]
command = "set_mode"
keys = ["="]
[[mapcommand]]
command = ":"
keys = [";"]
[[mapcommand]]
command = ":"
keys = [":"]
[[mapcommand]]
command = ":mkdir "
keys = ["m", "k"]
[[mapcommand]]
command = ":rename "
keys = ["c", "w"]
[[mapcommand]]
command = ":touch"
keys = ["f", "t"]
[[mapcommand]]
command = "sort lexical"
keys = ["s", "l"]
[[mapcommand]]
command = "sort mtime"
keys = ["s", "m"]
[[mapcommand]]
command = "sort natural"
keys = ["s", "n"]
[[mapcommand]]
command = "sort ext"
keys = ["s", "e"]
[[mapcommand]]
command = "sort reverse"
keys = ["s", "r"]
[[mapcommand]]
command = "cd /"
keys = ["g", "/"]
[[mapcommand]]
command = "cd /etc"
keys = ["g", "e"]

View file

@ -1,12 +0,0 @@
#!/bin/sh
set -e
# viuer doesn't like xterm-kitty
export TERM=xterm-256color
mime=$(file -b --mime-type "$1")
case $mime in
image/*) viu $1 ;;
*) bat $1 --color=always ;;
esac

9
.config/nfm/config.ini Normal file
View file

@ -0,0 +1,9 @@
[main]
opener = xdg-open;
shell = /usr/bin/fish -c;
theme = catppuccin-mocha;
show-hidden = true;
mouse-support = true;
[keybinds]
C-h = toggle-hidden-files;

View file

@ -1,7 +0,0 @@
[Desktop Entry]
Name=Joshuto
Comment=TUI File Manager
Terminal=false
Exec=alacritty -e start-joshuto
Icon=file-manager
Type=Application

View file

@ -1,7 +0,0 @@
#!/bin/sh
if [ -z $1 ]; then
joshuto
else
joshuto --path "$@"
fi

View file

@ -15,7 +15,6 @@
;; Symlink interpreted scripts
(mklink "scripts/map-touch-display.rkt" (bin-path "map-touch-display"))
(mklink "scripts/start-joshuto.sh" (bin-path "start-joshuto"))
(mklink "scripts/startriver.sh" (bin-path "startriver"))
(mklink "scripts/update-nvim-plugins.rkt" (bin-path "update-nvim-plugins"))