Open deathtrip opened 2 years ago
Hi @deathtrip. Thanks for reporting. I'll take a look at it.
The built-in pager (Mas
) is very basic, true. Maybe writing a plugin, using a full-blown pager like less
, could be a good idea.
Seems like a good idea. Using an external pager would certainly mean less code to maintain.
Well, I wrote a simple plugin to pipe the current list of files through a pager (either $PAGER
or less
). It's bound to the gg
action.
To use the plugin you can either remove/rename your actions file ($HOME/.config/clifm/plugins/actions.cfm
), in which case it will be regenerated by CliFM on startup, or add the line yourself using the actions edit
command:
gg=pager.sh
For the time being, it only does this, paging files, though it solves all the problems you highlighted (except 3: switching workspaces while in the pager). Give it a try and let me know what you think.
Just tried it and as you said it solves three of the four problems. Could you make it an option to use the plugin as the default pager?
Just need to figure out the best way to implement this, namely, setting a plugin as default pager. I'll let you know.
Hey @deathtrip, I've been revisiting this issue: as far as I can tell, 3/4 issues you describe are now solved using clifm's native pager:
pg
command), is not reexecuted when changing directory/workspace or updating the current list of files. By default, it runs only once.However, switching workspaces while in the pager isn't possible yet.
Describe the bug
Expected behavior
Desktop: