How to bind sort mtime
to a key?
#302
-
I tried adding |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @Kossak-esky! For the time being, bindable actions are fixed, and there's no
#!/bin/sh
echo "sort mtime" > "$CLIFM_BUS"
exit 0 Do not forget to make it executable:
NOTE: There are four available slots for plugins (plugin[1-4]), and
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much! Is it possible to make this a toggle? When I press |
Beta Was this translation helpful? Give feedback.
Hi @Kossak-esky!
For the time being, bindable actions are fixed, and there's no
sort mtime
action. However, it can be done by binding to a plugin. Follow these steps:sort_mtime.sh
under~/.config/clifm/plugins
with this content:Do not forget to make it executable:
te sort_mtime.sh
.Bind the new plugin to an action name: run
actions edit
and add this line:plugin2=sort_mtime.sh
Edit your keybindings and bind a key to the new plugin:
NOTE: There are four available slots for plugins (plugin[1-4]), and
plugin1
is already used by thexclip.sh
plugin, which can be removed if you don't use it.