Permalink
Browse files

Source code of the Core plugin in fman 1.1.1

  • Loading branch information...
mherrmann committed Jun 27, 2018
1 parent 2e35944 commit d064621f801e5c8bb01cfad4d310ef33cd2a1da6
Showing with 5,435 additions and 0 deletions.
  1. +19 −0 Context Menu (Linux).json
  2. +23 −0 Context Menu (Windows).json
  3. +8 −0 Core Settings (Mac).json
  4. +8 −0 Core Settings (Windows).json
  5. +10 −0 Core Settings.json
  6. +13 −0 File Context Menu (Linux).json
  7. +13 −0 File Context Menu (Mac).json
  8. +15 −0 File Context Menu (Windows).json
  9. +6 −0 Folder Context Menu (Linux).json
  10. +8 −0 Folder Context Menu (Mac).json
  11. +8 −0 Folder Context Menu (Windows).json
  12. +22 −0 Key Bindings (Linux).json
  13. +27 −0 Key Bindings (Mac).json
  14. +22 −0 Key Bindings (Windows).json
  15. +41 −0 Key Bindings.json
  16. +3 −0 Theme (Linux).css
  17. +19 −0 Theme (Mac).css
  18. +3 −0 Theme (Windows).css
  19. +40 −0 Theme.css
  20. BIN bin/linux/7za
  21. BIN bin/mac/7za
  22. BIN bin/windows/7za.exe
  23. +117 −0 core/__init__.py
  24. +2,143 −0 core/commands/__init__.py
  25. +131 −0 core/commands/explorer_properties.py
  26. +201 −0 core/fileoperations.py
  27. +2 −0 core/fs/__init__.py
  28. +145 −0 core/fs/local/__init__.py
  29. 0 core/fs/local/windows/__init__.py
  30. +77 −0 core/fs/local/windows/drives.py
  31. +69 −0 core/fs/local/windows/network.py
  32. +95 −0 core/fs/local/windows/rmtree.py
  33. +362 −0 core/fs/zip.py
  34. +73 −0 core/github.py
  35. +87 −0 core/os_.py
  36. +48 −0 core/quicksearch_matchers.py
  37. +75 −0 core/tests/__init__.py
  38. BIN core/tests/fs/ZipFileSystemTest.zip
  39. 0 core/tests/fs/__init__.py
  40. +109 −0 core/tests/fs/test_columns.py
  41. +16 −0 core/tests/fs/test_local.py
  42. +375 −0 core/tests/fs/test_zip.py
  43. +440 −0 core/tests/test_commands.py
  44. +420 −0 core/tests/test_fileoperations.py
  45. +27 −0 core/tests/test_quicksearch_matchers.py
  46. +25 −0 core/tests/test_util.py
  47. +38 −0 core/trash.py
  48. +52 −0 core/util.py
@@ -0,0 +1,19 @@
[{
"on_file": [
{ "command": "open_selected_files", "caption": "&Open" },
{ "command": "open_with", "caption": "Open wit&h..." },
{ "caption": "-" },
{ "command": "cut", "caption": "Cu&t" },
{ "command": "copy_to_clipboard", "caption": "&Copy" },
{ "caption": "-" },
{ "command": "rename", "caption": "Rena&me" },
{ "command": "move_to_trash", "caption": "Mo&ve to Trash" },
{ "caption": "-" },
{ "command": "pack", "caption": "Com&press..." }
],
"in_directory": [
{ "command": "create_directory", "caption": "New &Folder" },
{ "caption": "-" },
{ "command": "paste", "caption": "&Paste" }
]
}]
@@ -0,0 +1,23 @@
[{
"on_file": [
{ "command": "open_selected_files", "caption": "&Open" },
{ "command": "open_with", "caption": "Open wit&h..." },
{ "caption": "-" },
{ "command": "cut", "caption": "Cu&t" },
{ "command": "copy_to_clipboard", "caption": "&Copy" },
{ "caption": "-" },
{ "command": "move_to_trash", "caption": "&Delete" },
{ "command": "rename", "caption": "Rena&me" },
{ "caption": "-" },
{ "command": "pack", "caption": "Add to archive..." },
{ "caption": "-" },
{ "command": "show_explorer_properties", "caption": "P&roperties" }
],
"in_directory": [
{ "command": "paste", "caption": "&Paste" },
{ "caption": "-" },
{ "command": "create_directory", "caption": "New &Folder" },
{ "caption": "-" },
{ "command": "show_explorer_properties", "caption": "P&roperties" }
]
}]
@@ -0,0 +1,8 @@
{
"terminal": {
"args": ["/usr/bin/open", "-a", "Terminal", "{curr_dir}"]
},
"native_file_manager": {
"args": ["/usr/bin/open", "-a", "Finder", "{curr_dir}"]
}
}
@@ -0,0 +1,8 @@
{
"terminal": {
"args": "start C:\\Windows\\System32\\cmd.exe", "shell": true, "cwd": "{curr_dir}"
},
"native_file_manager": {
"args": ["start", "explorer", "{curr_dir}"], "shell": true
}
}
@@ -0,0 +1,10 @@
{
"archive_handlers": {
".zip": "zip://",
".zipx": "zip://",
".jar": "zip://",
".xpi": "zip://",
".7z": "7z://",
".tar": "tar://"
}
}
@@ -0,0 +1,13 @@
[
{ "caption": "-", "id": "open" },
{ "command": "open_selected_files", "caption": "&Open" },
{ "command": "open_with", "caption": "Open wit&h..." },
{ "caption": "-", "id": "clipboard" },
{ "command": "cut", "caption": "Cu&t" },
{ "command": "copy_to_clipboard", "caption": "&Copy" },
{ "caption": "-", "id": "file_operations" },
{ "command": "rename", "caption": "Rena&me" },
{ "command": "move_to_trash", "caption": "Mo&ve to Trash" },
{ "caption": "-", "id": "archive" },
{ "command": "pack", "caption": "Com&press..." }
]
@@ -0,0 +1,13 @@
[
{ "caption": "-", "id": "open" },
{ "command": "open_selected_files", "caption": "Open" },
{ "command": "open_with" },
{ "caption": "-", "id": "file_operations" },
{ "command": "move_to_trash", "caption": "Move to Trash" },
{ "command": "rename" },
{ "caption": "-" },
{ "command": "get_info", "id": "properties" },
{ "command": "pack", "caption": "Compress...", "id": "archive" },
{ "caption": "-", "id": "clipboard" },
{ "command": "copy_to_clipboard", "caption": "Copy" }
]
@@ -0,0 +1,15 @@
[
{ "caption": "-", "id": "open" },
{ "command": "open_selected_files", "caption": "&Open" },
{ "command": "open_with", "caption": "Open wit&h..." },
{ "caption": "-", "id": "clipboard" },
{ "command": "cut", "caption": "Cu&t" },
{ "command": "copy_to_clipboard", "caption": "&Copy" },
{ "caption": "-", "id": "file_operations" },
{ "command": "move_to_trash", "caption": "&Delete" },
{ "command": "rename", "caption": "Rena&me" },
{ "caption": "-", "id": "archive" },
{ "command": "pack", "caption": "Add to archive..." },
{ "caption": "-", "id": "properties" },
{ "command": "show_explorer_properties", "caption": "P&roperties" }
]
@@ -0,0 +1,6 @@
[
{ "caption": "-", "id": "new" },
{ "command": "create_directory", "caption": "New &Folder" },
{ "caption": "-", "id": "clipboard" },
{ "command": "paste", "caption": "&Paste" }
]
@@ -0,0 +1,8 @@
[
{ "caption": "-", "id": "new" },
{ "command": "create_directory" },
{ "caption": "-", "id": "properties" },
{ "command": "get_info" },
{ "caption": "-", "id": "clipboard" },
{ "command": "paste" }
]
@@ -0,0 +1,8 @@
[
{ "caption": "-", "id": "clipboard" },
{ "command": "paste", "caption": "&Paste" },
{ "caption": "-", "id": "new" },
{ "command": "create_directory", "caption": "New &Folder" },
{ "caption": "-", "id": "properties" },
{ "command": "show_explorer_properties", "caption": "P&roperties" }
]
@@ -0,0 +1,22 @@
[
{ "keys": ["Ctrl+Right"], "command": "open_in_right_pane" },
{ "keys": ["Ctrl+Left"], "command": "open_in_left_pane" },
{ "keys": ["Ins"], "command": "move_cursor_down", "args": {"toggle_selection": true} },
{ "keys": ["Ctrl+C"], "command": "copy_to_clipboard" },
{ "keys": ["Ctrl+X"], "command": "cut" },
{ "keys": ["Ctrl+V"], "command": "paste" },
{ "keys": ["Ctrl+A"], "command": "select_all" },
{ "keys": ["Ctrl+D"], "command": "deselect" },
{ "keys": ["Ctrl+."], "command": "toggle_hidden_files" },
{ "keys": ["Ctrl+P"], "command": "go_to" },
{ "keys": ["Ctrl+Shift+P"], "command": "command_palette" },
{ "keys": ["Ctrl+Q"], "command": "quit" },
{ "keys": ["Alt+Left"], "command": "go_back" },
{ "keys": ["Alt+Right"], "command": "go_forward" },
{ "keys": ["Alt+F5"], "command": "pack" },
{ "keys": ["Ctrl+R"], "command": "reload" },
{ "keys": ["Ctrl+F1"], "command": "sort_by_column", "args": {"column_index": 0}},
{ "keys": ["Ctrl+F2"], "command": "sort_by_column", "args": {"column_index": 1}},
{ "keys": ["Ctrl+F3"], "command": "sort_by_column", "args": {"column_index": 2}},
{ "keys": ["Alt+Up"], "command": "go_up" }
]
@@ -0,0 +1,27 @@
[
{ "keys": ["Alt+Right"], "command": "open_in_right_pane" },
{ "keys": ["Alt+Left"], "command": "open_in_left_pane" },
{ "keys": ["Cmd+C"], "command": "copy_to_clipboard" },
{ "keys": ["Cmd+X"], "command": "cut" },
{ "keys": ["Cmd+V"], "command": "paste" },
{ "keys": ["Cmd+Alt+V"], "command": "paste_cut" },
{ "keys": ["Cmd+A"], "command": "select_all" },
{ "keys": ["Cmd+D"], "command": "deselect" },
{ "keys": ["Space"], "command": "move_cursor_down", "args": {"toggle_selection": true} },
{ "keys": ["Cmd+Backspace"], "command": "move_to_trash" },
{ "keys": ["Cmd+."], "command": "toggle_hidden_files" },
{ "keys": ["Cmd+P"], "command": "go_to" },
{ "keys": ["Cmd+Shift+P"], "command": "command_palette" },
{ "keys": ["Cmd+Left"], "command": "go_back" },
{ "keys": ["Cmd+Right"], "command": "go_forward" },
{ "keys": ["Cmd+I"], "command": "get_info" },
{ "keys": ["Cmd+F5"], "command": "pack" },
{ "keys": ["Cmd+R"], "command": "reload" },
{ "keys": ["Cmd+F1"], "command": "sort_by_column", "args": {"column_index": 0}},
{ "keys": ["Cmd+F2"], "command": "sort_by_column", "args": {"column_index": 1}},
{ "keys": ["Cmd+F3"], "command": "sort_by_column", "args": {"column_index": 2}},
{ "keys": ["Cmd+M"], "command": "minimize" },
{ "keys": ["Cmd+Q"], "command": "quit" },
{ "keys": ["Cmd+Up"], "command": "go_up" },
{ "keys": ["Shift+Space"], "command": "quick_look" }
]
@@ -0,0 +1,22 @@
[
{ "keys": ["Ctrl+Right"], "command": "open_in_right_pane" },
{ "keys": ["Ctrl+Left"], "command": "open_in_left_pane" },
{ "keys": ["Ins"], "command": "move_cursor_down", "args": {"toggle_selection": true} },
{ "keys": ["Ctrl+C"], "command": "copy_to_clipboard" },
{ "keys": ["Ctrl+X"], "command": "cut" },
{ "keys": ["Ctrl+V"], "command": "paste" },
{ "keys": ["Ctrl+A"], "command": "select_all" },
{ "keys": ["Ctrl+D"], "command": "deselect" },
{ "keys": ["Ctrl+."], "command": "toggle_hidden_files" },
{ "keys": ["Ctrl+P"], "command": "go_to" },
{ "keys": ["Ctrl+Shift+P"], "command": "command_palette" },
{ "keys": ["Alt+Left"], "command": "go_back" },
{ "keys": ["Alt+Right"], "command": "go_forward" },
{ "keys": ["Alt+F5"], "command": "pack" },
{ "keys": ["Ctrl+R"], "command": "reload"},
{ "keys": ["Ctrl+F1"], "command": "sort_by_column", "args": {"column_index": 0}},
{ "keys": ["Ctrl+F2"], "command": "sort_by_column", "args": {"column_index": 1}},
{ "keys": ["Ctrl+F3"], "command": "sort_by_column", "args": {"column_index": 2}},
{ "keys": ["Alt+Up"], "command": "go_up" },
{ "keys": ["Alt+Enter"], "command": "show_explorer_properties" }
]
@@ -0,0 +1,41 @@
[
{ "keys": ["Down"], "command": "move_cursor_down" },
{ "keys": ["Num+Down"], "command": "move_cursor_down" },
{ "keys": ["Shift+Down"], "command": "move_cursor_down", "args": {"toggle_selection": true} },
{ "keys": ["Up"], "command": "move_cursor_up" },
{ "keys": ["Num+Up"], "command": "move_cursor_up" },
{ "keys": ["Shift+Up"], "command": "move_cursor_up", "args": {"toggle_selection": true} },
{ "keys": ["Home"], "command": "move_cursor_home" },
{ "keys": ["Num+Home"], "command": "move_cursor_home" },
{ "keys": ["Shift+Home"], "command": "move_cursor_home", "args": {"toggle_selection": true} },
{ "keys": ["End"], "command": "move_cursor_end" },
{ "keys": ["Num+End"], "command": "move_cursor_end" },
{ "keys": ["Shift+End"], "command": "move_cursor_end", "args": {"toggle_selection": true} },
{ "keys": ["PgDown"], "command": "move_cursor_page_down" },
{ "keys": ["Num+PgDown"], "command": "move_cursor_page_down" },
{ "keys": ["Shift+PgDown"], "command": "move_cursor_page_down", "args": {"toggle_selection": true} },
{ "keys": ["PgUp"], "command": "move_cursor_page_up" },
{ "keys": ["Num+PgUp"], "command": "move_cursor_page_up" },
{ "keys": ["Shift+PgUp"], "command": "move_cursor_page_up", "args": {"toggle_selection": true} },
{ "keys": ["Space"], "command": "toggle_selection" },
{ "keys": ["Tab"], "command": "switch_panes" },
{ "keys": ["Backspace"], "command": "go_up" },
{ "keys": ["Enter"], "command": "open" },
{ "keys": ["F1"], "command": "help" },
{ "keys": ["F4"], "command": "open_with_editor" },
{ "keys": ["Shift+F4"], "command": "create_and_edit_file" },
{ "keys": ["F5"], "command": "copy" },
{ "keys": ["Shift+F6"], "command": "rename" },
{ "keys": ["F6"], "command": "move" },
{ "keys": ["F7"], "command": "create_directory" },
{ "keys": ["F8"], "command": "move_to_trash" },
{ "keys": ["Delete"], "command": "move_to_trash" },
{ "keys": ["Num+Delete"], "command": "move_to_trash" },
{ "keys": ["F9"], "command": "open_terminal" },
{ "keys": ["F10"], "command": "open_native_file_manager" },
{ "keys": ["F11"], "command": "copy_paths_to_clipboard" },
{ "keys": ["Shift+Delete"], "command": "delete_permanently" },
{ "keys": ["Alt+F1"], "command": "show_volumes", "args": {"pane_index": 0} },
{ "keys": ["Alt+F2"], "command": "show_volumes", "args": {"pane_index": 1} },
{ "keys": ["Num+Insert"], "command": "move_cursor_down", "args": {"toggle_selection": true} }
]
@@ -0,0 +1,3 @@
* {
font-family: "Open Sans";
}
@@ -0,0 +1,19 @@
* {
font-size: 13pt;
}

th {
font-size: 12pt;
}

.statusbar {
font-size: 11pt;
}

.quicksearch-query, .quicksearch-item-title {
font-size: 15pt;
}

.quicksearch-item-hint {
font-size: 12pt;
}
@@ -0,0 +1,3 @@
* {
font-family: "Roboto Bold";
}
@@ -0,0 +1,40 @@
* {
font-size: 9pt;
}

th {
font-size: 8pt;
}

.statusbar {
font-size: 8pt;
}

.quicksearch-query, .quicksearch-item-title {
font-size: 10pt;
}

.quicksearch-item {
padding-top: 1px;
padding-left: 4px;
padding-right: 4px;
border-top: 1px solid #4d4d4d;
border-bottom: 1px solid #363636;
}

.quicksearch-item-title {
color: #c8c8c8;
}

.quicksearch-item-title-highlight {
color: white;
}

.quicksearch-item-hint {
font-size: 8pt;
color: white;
}

.quicksearch-item-description {
color: #8f908a;
}
BIN +1.09 MB bin/linux/7za
Binary file not shown.
BIN +1010 KB bin/mac/7za
Binary file not shown.
BIN +717 KB bin/windows/7za.exe
Binary file not shown.
Oops, something went wrong.

0 comments on commit d064621

Please sign in to comment.