Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion castervoice/rules/apps/file_manager/totalcmd_rules/totalcmd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dragonfly import MappingRule
from dragonfly import MappingRule, MappingRule, Repeat, ShortIntegerRef
from castervoice.lib.actions import Key
from castervoice.lib.ctrl.mgr.rule_details import RuleDetails
from castervoice.lib.merge.state.short import R
Expand All @@ -21,14 +21,31 @@ class TotalCommanderRule(MappingRule):
"sort by size": R(Key('c-f6')),
"file filter": R(Key('c-f12')),
"new tab": R(Key('c-t')),
"right tab [<n>]": R(Key('c-tab') * Repeat(extra="n")),
"left tab [<n>]": R(Key('cs-tab') * Repeat(extra="n")),
'quick search': R(Key('c-s')),
"multi rename": R(Key('c-m')),
"display thumbnails": R(Key('cs-f1')),
"display list": R(Key('c-f1')),
"display details": R(Key('c-f2')),
"display file tree": R(Key('c-f8')),
'pack files': R(Key('a-f5')),
'occupied space': R(Key('c-l')),
'refresh current directory': R(Key('f2')),
'directory content': R(Key('c-b')),
'selected directory contents': R(Key('cs-b')),
'file properties': R(Key('a-enter')),
'create [new] text file': R(Key('s-f4')),
}

extras = [
ShortIntegerRef('n', 1, 50),
]

defaults = {
'n': 1,
}

def get_rule():
return TotalCommanderRule, RuleDetails(name="total commander", executable=["totalcmd", "totalcmd64"])

Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,12 @@ Same Commands as [Git Bash](## git-bash)
| `wipe` | `FTP` | `synchronize` |
| `sort by name` | `sort by extension` | `sort by date` |
| `sort by size` | `file filter` | `new tab` |
| `right tab [n]` | `left tab [n]` | `quick search` |
| `multi rename` | `display thumbnails` | `display list` |
| `display details` | `display file tree` | |
| `display details` | `display file tree` | `pack files` |
| `occupied space` | `refresh current directory` | `directory contents` |
| `selected directory contents` | `file properties` | `create [new] text file` |


## Total Commander: synchronize directories

Expand Down