about summary refs log tree commit diff stats
path: root/subx/065hex.subx
Commit message (Expand)AuthorAgeFilesLines
* .Kartik Agaram2019-07-081-87/+106
* unsigned comparison for addresses in more placesKartik Agaram2019-07-011-5/+5
* .Kartik Agaram2019-07-011-1/+1
* 5059Kartik Agaram2019-04-051-3/+3
* 5037Kartik Agaram2019-03-291-3/+3
* 4981 - no, go back to 3 phasesKartik Agaram2019-02-181-7/+0
* 4961Kartik Agaram2019-02-141-3/+3
* 4950Kartik Agaram2019-02-031-0/+809
972da7ba ^
d1a1173d ^

33aeef8e ^
d1a1173d ^


972da7ba ^
ca1a5d21 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18



                                                                            

                                    
 
                  
                     
 

                                                         
                                    


                                                               
 
                                
# This plugin serves as an example for adding key bindings through a plugin.
# It could replace the ten lines in the rc.conf that create the key bindings
# for the "chmod" command.

import ranger.api
old_hook_init = ranger.api.hook_init

def hook_init(fm):
    old_hook_init(fm)

    # Generate key bindings for the chmod command
    command = "map {0}{1}{2} shell -d chmod {1}{0}{2} %s"
    for mode in list('ugoa') + ['']:
        for perm in "rwxXst":
            fm.execute_console(command.format('-', mode, perm))
            fm.execute_console(command.format('+', mode, perm))

ranger.api.hook_init = hook_init