Ranger dnd optimization + qb filepicker
This commit is contained in:
@@ -82,6 +82,13 @@ c.url.searchengines = {'DEFAULT': 'https://startpage.com/do/search?query={}',
|
||||
|
||||
config.set('completion.open_categories',["searchengines","quickmarks","bookmarks"])
|
||||
|
||||
config.set('downloads.location.directory', '~/Downloads')
|
||||
|
||||
config.set('fileselect.handler', 'external')
|
||||
config.set('fileselect.single_file.command', ['kitty','-e','ranger','--choosefile={}'])
|
||||
config.set('fileselect.multiple_files.command', ['kitty','-e','ranger','--choosefiles={}'])
|
||||
config.set('fileselect.folder.command', ['kitty','-e','ranger','--choosedir={}'])
|
||||
|
||||
config.bind('t', 'open -t')
|
||||
config.bind('x', 'tab-close')
|
||||
config.bind('yf', 'hint links yank')
|
||||
|
@@ -1,5 +1,6 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let myCbxScript = ''
|
||||
# TODO fix this for wayland
|
||||
#!/bin/sh
|
||||
if [ "$#" -le "2" ]; then
|
||||
if [ "$1" = "copy" -o "$1" = "cut" ]; then
|
||||
@@ -14,10 +15,13 @@ in
|
||||
|
||||
home.packages = with pkgs; [
|
||||
ranger
|
||||
xdragon
|
||||
ripdrag
|
||||
highlight
|
||||
(pkgs.writeScriptBin "cbx" myCbxScript)
|
||||
];
|
||||
xdg.mimeApps.associations.added = {
|
||||
"inode/directory" = "ranger.desktop";
|
||||
};
|
||||
home.file.".config/ranger/rc.conf".source = ./rc.conf;
|
||||
home.file.".config/ranger/rifle.conf".source = ./rifle.conf;
|
||||
home.file.".config/ranger/scope.sh" = {
|
||||
|
@@ -503,6 +503,8 @@ map ud uncut
|
||||
map da cut mode=add
|
||||
map dr cut mode=remove
|
||||
map dt cut mode=toggle
|
||||
map do shell -w ripdrag -x %s
|
||||
map dO shell -w ripdrag -x *
|
||||
|
||||
map yy chain copy; shell cbx copy %s
|
||||
map uy uncut
|
||||
|
Reference in New Issue
Block a user