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 0Do 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 mtimeaction. However, it can be done by binding to a plugin. Follow these steps:sort_mtime.shunder~/.config/clifm/pluginswith this content:Do not forget to make it executable:
te sort_mtime.sh.Bind the new plugin to an action name: run
actions editand add this line:plugin2=sort_mtime.shEdit your keybindings and bind a key to the new plugin:
NOTE: There are four available slots for plugins (plugin[1-4]), and
plugin1is already used by thexclip.shplugin, which can be removed if you don't use it.