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.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 mylfconfiguration, it can be found here. Also, the full configuration forxplrcan be found here.I may update this post whenever I add more.
Firstly, using
HandLto go back and forth in the path.Jump to any directory using
zoxide.autojumpcan be used as well, by replacing thezoxidecommand with'PTH=$(autojump -s | tac | awk 'NR>7{print $2}' | fzf)'.Creating a new session that starts with
iTerm2:A
bookmarkmode 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 withzshas it is.Delete and restore files with
trash-cli. There are also notifications withterminal-notifierin both steps. Theftrscript that is referenced in the restore process is something that I wrote to integrate it withfzfand is also below.ftrscript:Also, I have taken the icons from
lfand put them withxplrIcons
```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