ranger-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ranger-users] page command


From: Michael Longval
Subject: [Ranger-users] page command
Date: Mon, 22 Sep 2014 05:12:54 -0400

Ok this seem to work…..

class page(Command):
    """:page <filename>

    Opens the specified file in the $PAGER
    """

    def execute(self):
        theFile = self.fm.thisfile.path
        theCommand = "/usr/bin/clear;/usr/local/bin/less " + theFile    # this ASSUMES using HOMEBREW
        call(theCommand, shell=True)
        self.fm.ui.redraw_window()

    def tab(self):
        return self._tab_directory_content()


Except that when I exit from PAGER (less in this case) the arrow keys no longer work…..
Go figure…...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]