|
|
|
@ -1,40 +1,35 @@ |
|
|
|
prefix_char = '+' |
|
|
|
prefix = [ |
|
|
|
{ |
|
|
|
'ostring':['+u','++update'], |
|
|
|
'help':'update the listings for ext', |
|
|
|
'help': 'Update the listings for ext', |
|
|
|
'action':'store_true', |
|
|
|
}, |
|
|
|
{ |
|
|
|
'ostring':['+t','++trim+history'], |
|
|
|
'help': 'trim backup history, either all or N updates', |
|
|
|
'ostring':['+t','++trim-history'], |
|
|
|
'help': 'Trim backup history, either all or N updates', |
|
|
|
'metavar': '(all | N)' |
|
|
|
}, |
|
|
|
{ |
|
|
|
'ostring':['+m','++update+modified+times'], |
|
|
|
'ostring':['+m','++update-modified-times'], |
|
|
|
'help': '''updates the modified times for paths in config |
|
|
|
useful for ensuring all new files are found''', |
|
|
|
}, |
|
|
|
|
|
|
|
] |
|
|
|
common = [ |
|
|
|
{ |
|
|
|
'ostring':['+e','++edit'], |
|
|
|
'help': 'open in editor', |
|
|
|
'action': 'store_true', |
|
|
|
}, |
|
|
|
{ |
|
|
|
'ostring':['+r','++regex'], |
|
|
|
'action':'store_true', |
|
|
|
'help':'use regex to search', |
|
|
|
}, |
|
|
|
bools = [ |
|
|
|
{'action': 'store_true', 'ostring': ['+i', '++case-insensitive']}, |
|
|
|
{'action': 'store_true', 'help': 'Search for exact application name', 'ostring': ['+E', '++exact']}, |
|
|
|
{'action': 'store_true', 'help': 'Use regex to search', 'ostring': ['+r', '++regex']}, |
|
|
|
{'action': 'store_true', 'help': 'Prints path instead of opening application', 'ostring': ['+p', '++path']}, |
|
|
|
{'action': 'store_true', 'help': 'Open in editor', 'ostring': ['+e', '++edit']}, |
|
|
|
] |
|
|
|
|
|
|
|
{ |
|
|
|
'ostring':['arg'], |
|
|
|
'help':'command-line args', |
|
|
|
'action':'store', |
|
|
|
'nargs':'*' |
|
|
|
} |
|
|
|
] |
|
|
|
other = [ |
|
|
|
{'help': 'Directory to start in', 'ostring': ['+d', '++start-in'],'metavar':'dir'}, |
|
|
|
{'ostring':['query'],'help':'Query to search for'}, |
|
|
|
{'action': 'store', 'help': 'Command-line args', 'nargs': '*', 'ostring': ['arg']}, |
|
|
|
] |
|
|
|
common = bools+other |
|
|
|
exts = [ |
|
|
|
{ |
|
|
|
'ext' : 'py', |
|
|
|
@ -48,7 +43,7 @@ exts = [ |
|
|
|
exe = [ |
|
|
|
{ |
|
|
|
'ostring':['+w','++windowless'], |
|
|
|
'help':'open windowless', |
|
|
|
'help': 'Open windowless', |
|
|
|
'action': 'store_true', |
|
|
|
}, |
|
|
|
] |