Archived
Updated script and more stuff
This commit is contained in:
1 parent
42d7473046
commit
81af6301ab
26 files changed
+2373
-10
No files matched your search
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
import os
|
||||
terminal=terminal=os.getenv('TERM')
|
||||
if terminal != 'linux':
|
||||
import ranger.api
|
||||
from ranger.core.linemode import LinemodeBase
|
||||
from devicons import *
|
||||
|
||||
@ranger.api.register_linemode
|
||||
class DevIconsLinemode(LinemodeBase):
|
||||
name = "devicons"
|
||||
|
||||
uses_metadata = False
|
||||
|
||||
def filetitle(self, file, metadata):
|
||||
return devicon(file) + ' ' + file.relative_path
|
||||
|
||||
@ranger.api.register_linemode
|
||||
class DevIconsLinemodeFile(LinemodeBase):
|
||||
name = "filename"
|
||||
|
||||
def filetitle(self, file, metadata):
|
||||
return devicon(file) + ' ' + file.relative_path
|
||||
Reference in new issue
Block a user