Sharing some keybindings/functions I've made #241
Replies: 5 comments 18 replies
-
Nice! Thanks for sharing...
By default,
Use the ["7z"] syntax. I had a quick glance over your config. 2 things can be improved:
|
Beta Was this translation helpful? Give feedback.
-
I have added them in the Hacks Wiki. Someday, they'll probably become independent portable plugins. |
Beta Was this translation helpful? Give feedback.
-
Made a little correction in the trash-cli hack. Using |
Beta Was this translation helpful? Give feedback.
-
I changed it in my configuration and yeah I see the difference. Is it possible to make |
Beta Was this translation helpful? Give feedback.
-
Hey @lmburns, I just converted the Alacritty integration hack to this alacritty.xplr plugin with some added features. If you want, you can apply the concept to iTerm2. |
Beta Was this translation helpful? Give feedback.
-
These are some of the ideas I have came up with over the past couple days. I come from using
lf
(which I have an extension configuration) and am trying to implement as many features as I can from there. If anyone is interested in mylf
configuration, it can be found here. Also, the full configuration forxplr
can be found here.I may update this post whenever I add more.
Firstly, using
H
andL
to go back and forth in the path.Jump to any directory using
zoxide
.autojump
can be used as well, by replacing thezoxide
command with'PTH=$(autojump -s | tac | awk 'NR>7{print $2}' | fzf)'
.Creating a new session that starts with
iTerm2
:A
bookmark
mode that allows for a bookmark file to be used throughout multiple sessions. It is set to the environment variableXPLR_BOOKMARK_FILE
. A bookmark can be added, deleted, or jumped to.Another bookmark manager type thing, taken from wfxr's zsh plugin which has colored output with
fzf
. I use this as well as the other bookmark manager above because I already use this withzsh
as it is.Delete and restore files with
trash-cli
. There are also notifications withterminal-notifier
in both steps. Theftr
script that is referenced in the restore process is something that I wrote to integrate it withfzf
and is also below.ftr
script:Also, I have taken the icons from
lf
and put them withxplr
Icons
```lua xplr.config.node_types.special = { ["Cargo.toml"] = { meta = { icon = "⚙" }, }, [".git"] = { meta = { icon = "" }, }, node_modules = { meta = { icon = "" }, }, ["docker-compose.yml"] = { meta = { icon = "", } } }xplr.config.node_types.mime_essence = {
["text"] = {
["plain"] = {
meta = { icon = "" },
}
},
["video"] = {
[""] = {
meta = { icon = "" },
}
},
["image"] = {
[""] = {
meta = { icon = "" },
},
}
}
xplr.config.node_types.extension = {
lock = {
meta = { icon = "" },
},
md = {
meta = { icon = "" },
},
toml = {
meta = { icon = "" },
},
rs = {
meta = { icon = "" },
},
elm = {
meta = { icon = "" },
},
lua = {
meta = { icon = "" },
},
nix = {
meta = { icon = "" },
},
js = {
meta = { icon = "" },
},
py = {
meta = { icon = "" },
},
txt = {
meta = { icon = "" },
},
csv = {
meta = { icon = "" },
},
xlsx = {
meta = { icon = "" },
},
odf = {
meta = { icon = "" },
},
yml = {
meta = { icon = "⚙" },
},
yaml = {
meta = { icon = "⚙" },
},
c = {
meta = { icon = "" },
},
cc = {
meta = { icon = "" },
},
clj = {
meta = { icon = "" },
},
ccp = {
meta = { icon = "" },
},
coffee = {
meta = { icon = "" },
},
cpp = {
meta = { icon = "" },
},
css = {
meta = { icon = "" },
},
d = {
meta = { icon = "" },
},
dart = {
meta = { icon = "" },
},
erl = {
meta = { icon = "" },
},
exs = {
meta = { icon = "" },
},
fs = {
meta = { icon = "" },
},
go = {
meta = { icon = "" },
},
h = {
meta = { icon = "" },
},
hh = {
meta = { icon = "" },
},
hpp = {
meta = { icon = "" },
},
hs = {
meta = { icon = "" },
},
html = {
meta = { icon = "" },
},
h = {
meta = { icon = "" },
},
java = {
meta = { icon = "♨" },
},
kt = {
meta = { icon = "🅺" },
},
jl = {
meta = { icon = "" },
},
js = {
meta = { icon = "" },
},
json = {
meta = { icon = "" },
},
php = {
meta = { icon = "" },
},
pl = {
meta = { icon = "" },
},
pro = {
meta = { icon = "" },
},
rb = {
meta = { icon = "" },
},
pro = {
meta = { icon = "" },
},
scala = {
meta = { icon = "" },
},
ts = {
meta = { icon = "" },
},
vim = {
meta = { icon = "" },
},
cmd = {
meta = { icon = "" },
},
ps1 = {
meta = { icon = "" },
},
sh = {
meta = { icon = "" },
},
zsh = {
meta = { icon = "" },
},
bash = {
meta = { icon = "" },
},
fish = {
meta = { icon = "" },
},
tar = {
meta = { icon = "" },
},
tgz = {
meta = { icon = "" },
},
arc = {
meta = { icon = "" },
},
arj = {
meta = { icon = "" },
},
taz = {
meta = { icon = "" },
},
lha = {
meta = { icon = "" },
},
lz4 = {
meta = { icon = "" },
},
lzh = {
meta = { icon = "" },
},
tlz = {
meta = { icon = "" },
},
txz = {
meta = { icon = "" },
},
tzo = {
meta = { icon = "" },
},
t7z = {
meta = { icon = "" },
},
lzma = {
meta = { icon = "" },
},
zip = {
meta = { icon = "" },
},
z = {
meta = { icon = "" },
},
dz = {
meta = { icon = "" },
},
gz = {
meta = { icon = "" },
},
lrz = {
meta = { icon = "" },
},
lz = {
meta = { icon = "" },
},
lzo = {
meta = { icon = "" },
},
xz = {
meta = { icon = "" },
},
zst = {
meta = { icon = "" },
},
tzst = {
meta = { icon = "" },
},
bz2 = {
meta = { icon = "" },
},
bz = {
meta = { icon = "" },
},
tbz = {
meta = { icon = "" },
},
tbz2 = {
meta = { icon = "" },
},
tz = {
meta = { icon = "" },
},
deb = {
meta = { icon = "" },
},
rpm = {
meta = { icon = "" },
},
jar = {
meta = { icon = "" },
},
war = {
meta = { icon = "" },
},
ear = {
meta = { icon = "" },
},
sar = {
meta = { icon = "" },
},
rar = {
meta = { icon = "" },
},
alz = {
meta = { icon = "" },
},
ace = {
meta = { icon = "" },
},
zoo = {
meta = { icon = "" },
},
cpio = {
meta = { icon = "" },
},
z7z = {
meta = { icon = "" }, -- can't start with number?
},
rz = {
meta = { icon = "" },
},
cab = {
meta = { icon = "" },
},
tbz2 = {
meta = { icon = "" },
},
wim = {
meta = { icon = "" },
},
swm = {
meta = { icon = "" },
},
dwm = {
meta = { icon = "" },
},
esd = {
meta = { icon = "" },
},
pdf = {
meta = { icon = "" },
},
}
Beta Was this translation helpful? Give feedback.
All reactions