|
From: | Michael Longval |
Subject: | Re: [Ranger-users] page command |
Date: | Mon, 22 Sep 2014 05:22:19 -0400 |
Ok well this seems 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() self.fm.ui.initialize() def tab(self): return self._tab_directory_content() |
[Prev in Thread] | Current Thread | [Next in Thread] |