about summary refs log tree commit diff stats
path: root/termbox/termbox.h
Commit message (Expand)AuthorAgeFilesLines
* 3862Kartik K. Agaram2017-05-191-4/+4
* 3860 - stop buffering the screen in termboxKartik K. Agaram2017-05-181-23/+4
* 3858Kartik K. Agaram2017-05-131-5/+1
* 3857Kartik K. Agaram2017-05-131-3/+0
* 3854Kartik K. Agaram2017-05-131-5/+31
* 3842Kartik K. Agaram2017-05-041-3/+0
* 3824 - experiment: stop buffering in termboxKartik K. Agaram2017-04-161-28/+5
* 3711Kartik K. Agaram2016-12-261-4/+0
* 2572Kartik K. Agaram2016-01-191-1/+1
* 2181 - detect shift-tabKartik K. Agaram2015-09-111-5/+4
* 2132 - support for ctrl + arrow keysKartik K. Agaram2015-09-021-2/+6
* 2113 - stop updating entire screen on tb_present()Kartik K. Agaram2015-08-291-0/+3
* 1964 - don't mess up pasteKartik K. Agaram2015-08-091-0/+2
* 1731 - ah, now fully responsiveKartik K. Agaram2015-07-081-0/+2
* 1573Kartik K. Agaram2015-06-161-0/+1
* 1530 - switch to termbox's 256-color modeKartik K. Agaram2015-06-051-12/+5
* 1486 - repl: hitting enter now workingKartik K. Agaram2015-05-271-0/+2
* 1368 - alias carriage-return and newlineKartik K. Agaram2015-05-141-0/+3
* 1314Kartik K. Agaram2015-05-091-1/+2
* 1276 - make C++ version the defaultKartik K. Agaram2015-05-051-0/+210
12
13
14
15
16
17
18
19
20

                              



                                                                            

                                    
 
                  
                     
 

                                                         
                                    


                                                               
 
                                
# Compatible with ranger 1.6.*
#
# 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