diff --git a/config.h b/config.h index 47ed06b..b4f593d 100644 --- a/config.h +++ b/config.h @@ -2,8 +2,8 @@ #define SETTINGS_UEBERZUG_IMAGE_PREVIEW 1 /* 0 is disabled, 1 is enabled, 2 is with caching; depends on ueberzug */ #define SETTINGS_RELOAD_DIR_DELTA 10 /* 0 is disabled, time in seconds between automatic refresh of dir contents */ #define SETTINGS_CURSES_TIMEOUT 100 /* read: inopts(3NCURSES), blocking time between user inputs */ -#define SETTINGS_COMMAND_REPLACE_STR "%" /* if a command in any cmd inside this fle contains this string, it will be replaced with the hovered/selected file name - * as of right now, this character cannot be escaped; i.e ``command\% --arg`` will parse into ``command\path_of_hovered_file --arg``*/ +#define SETTINGS_COMMAND_REPLACE_STR "^" /* if a command in any cmd inside this fle contains this string, it will be replaced with the hovered/selected file name + * as of right now, this character cannot be escaped; i.e ``command\^ --arg`` will parse into ``command\path_of_hovered_file --arg``*/ /* {{{ */ #ifndef CONFIG_GUARD @@ -22,10 +22,10 @@ static const mimetype mimetype_default_cmd[] = { * gives us "image/gif", thusly if we want to open gif in mpv rather than feh, * we need to define "gif" before "image" */ { "text", "$EDITOR" }, - { "avif", "nohup mpv % >/dev/null 2>&1 &" }, - { "gif", "nohup mpv --loop-file=\"inf\" % >/dev/null 2>&1 &" }, - { "image", "feh % >/dev/null 2>&1 &" }, - { "video", "nohup mpv % >/dev/null 2>&1 &" }, + { "avif", "nohup mpv ^ >/dev/null 2>&1 &" }, + { "gif", "nohup mpv --loop-file=\"inf\" ^ >/dev/null 2>&1 &" }, + { "image", "feh ^ >/dev/null 2>&1 &" }, + { "video", "nohup mpv ^ >/dev/null 2>&1 &" }, { "audio", "mpv" }, { "pdf", "zathura" }, }; @@ -34,8 +34,8 @@ static const extension file_extension_default_cmd[] = { * similar to mimetype_default_cmd, however it searches for exact string matches * and is checked before mimetype_default_cmd */ { ".exe", "wine"}, - { ".cbz", "mcomix % &"}, - { ".cbr", "mcomix % &"}, + { ".cbz", "mcomix ^ &"}, + { ".cbr", "mcomix ^ &"}, { ".json", "$EDITOR"}, { ".csv", "$EDITOR"}, { ".blend", "blender-bin-5.0.0"}, /* version number in bin in main repo? yea idc */