Merge pull request #594 from RedBearAK/patch-35

Finder mods updates: Nav, Views
This commit is contained in:
Ben Reaves
2021-12-26 16:37:20 -06:00
committed by GitHub

View File

@@ -273,7 +273,7 @@ define_keymap(re.compile("^jetbrains-(?!.*toolbox).*$", re.IGNORECASE),{
define_keymap(re.compile("caja", re.IGNORECASE),{ define_keymap(re.compile("caja", re.IGNORECASE),{
# K("RC-Super-o"): K("RC-Shift-Enter"), # Open in new tab # K("RC-Super-o"): K("RC-Shift-Enter"), # Open in new tab
K("RC-Super-o"): K("RC-Shift-W"), # Open in new window K("RC-Super-o"): K("RC-Shift-W"), # Open in new window
},"Overrides for Caja - Finder") },"Overrides for Caja - Finder Mods")
# Keybindings overrides for DDE (Deepin) File Manager # Keybindings overrides for DDE (Deepin) File Manager
# (overrides some bindings from general file manager code block below) # (overrides some bindings from general file manager code block below)
@@ -281,11 +281,17 @@ define_keymap(re.compile("dde-file-manager", re.IGNORECASE),{
K("RC-i"): K("RC-i"), # File properties dialog (Get Info) K("RC-i"): K("RC-i"), # File properties dialog (Get Info)
K("RC-comma"): None, # Disable preferences shortcut (no shortcut available) K("RC-comma"): None, # Disable preferences shortcut (no shortcut available)
K("RC-Up"): K("RC-Up"), # Go Up dir K("RC-Up"): K("RC-Up"), # Go Up dir
},"Overrides for DDE File Manager - Finder") K("RC-Shift-Left_Brace"): K("C-Shift-Tab"), # Go to prior tab
K("RC-Shift-Right_Brace"): K("C-Tab"), # Go to next tab
K("RC-Shift-Left"): K("C-Shift-Tab"), # Go to prior tab
K("RC-Shift-Right"): K("C-Tab"), # Go to next tab
},"Overrides for DDE File Manager - Finder Mods")
# Keybindings overrides for Dolphin # Keybindings overrides for Dolphin
# (overrides some bindings from general file manager code block below) # (overrides some bindings from general file manager code block below)
define_keymap(re.compile("dolphin", re.IGNORECASE),{ define_keymap(re.compile("dolphin", re.IGNORECASE),{
K("RC-KEY_2"): K("C-KEY_3"), # View as List (Detailed)
K("RC-KEY_3"): K("C-KEY_2"), # View as List (Compact)
########################################################################################## ##########################################################################################
### "Open in new window" requires manually setting custom shortcut of Ctrl+Shift+o ### "Open in new window" requires manually setting custom shortcut of Ctrl+Shift+o
### in Dolphin's keyboard shortcuts. There is no default shortcut set for this function. ### in Dolphin's keyboard shortcuts. There is no default shortcut set for this function.
@@ -296,28 +302,34 @@ define_keymap(re.compile("dolphin", re.IGNORECASE),{
K("RC-Super-o"): K("RC-Shift-o"), # Open in new window (or new tab, user's choice, see above) K("RC-Super-o"): K("RC-Shift-o"), # Open in new window (or new tab, user's choice, see above)
K("RC-Shift-N"): K("F10"), # Create new folder K("RC-Shift-N"): K("F10"), # Create new folder
K("RC-comma"): K("RC-Shift-comma"), # Open preferences dialog K("RC-comma"): K("RC-Shift-comma"), # Open preferences dialog
},"Overrides for Dolphin - Finder") },"Overrides for Dolphin - Finder Mods")
# Keybindings overrides for elementary OS Files # Keybindings overrides for elementary OS Files (Pantheon)
# (overrides some bindings from general file manager code block below) # (overrides some bindings from general file manager code block below)
define_keymap(re.compile("io.elementary.files", re.IGNORECASE),{ define_keymap(re.compile("io.elementary.files", re.IGNORECASE),{
# K("RC-Super-o"): K("Shift-Enter"), # Open folder in new tab # K("RC-Super-o"): K("Shift-Enter"), # Open folder in new tab
K("RC-Comma"): None, # Disable preferences shortcut since none available K("RC-comma"): None, # Disable preferences shortcut since none available
},"Overrides for Pantheon - Finder") },"Overrides for Pantheon - Finder Mods")
# Keybindings overrides for Nautilus # Keybindings overrides for Nautilus
# (overrides some bindings from general file manager code block below) # (overrides some bindings from general file manager code block below)
define_keymap(re.compile("org.gnome.nautilus|nautilus", re.IGNORECASE),{ define_keymap(re.compile("org.gnome.nautilus|nautilus", re.IGNORECASE),{
# K("RC-N"): K("C-M-Space"), # macOS Finder search window shortcut Cmd+Option+Space
# For this ^^^^^^^^^^^ to work, a custom shortcut must be set up in the Settings app in GNOME
# to run command: "nautilus --new-window /home/USER" [ replace "USER" ]
K("RC-KEY_1"): K("C-KEY_2"), # View as Icons
K("RC-KEY_2"): K("C-KEY_1"), # View as List (Detailed)
K("RC-Super-o"): K("Shift-Enter"), # Open in new window K("RC-Super-o"): K("Shift-Enter"), # Open in new window
# K("RC-Super-o"): K("RC-Enter"), # Open in new tab # K("RC-Super-o"): K("RC-Enter"), # Open in new tab
K("RC-comma"): K("RC-comma"), # Overrides "Open preferences dialog" shortcut below K("RC-comma"): K("RC-comma"), # Overrides "Open preferences dialog" shortcut below
},"Overrides for Nautilus - Finder") },"Overrides for Nautilus - Finder Mods")
# Keybindings overrides for PCManFM and PCManFM-Qt # Keybindings overrides for PCManFM and PCManFM-Qt
# (overrides some bindings from general file manager code block below) # (overrides some bindings from general file manager code block below)
define_keymap(re.compile("pcmanfm|pcmanfm-qt", re.IGNORECASE),{ define_keymap(re.compile("pcmanfm|pcmanfm-qt", re.IGNORECASE),{
K("RC-KEY_2"): K("C-KEY_4"), # View as List (Detailed) [Not in PCManFM-Qt]
K("RC-Backspace"): [K("Delete"),K("Enter")], # Move to Trash (delete, bypass dialog) K("RC-Backspace"): [K("Delete"),K("Enter")], # Move to Trash (delete, bypass dialog)
},"Overrides for PCManFM - Finder") },"Overrides for PCManFM - Finder Mods")
# Keybindings overrides for SpaceFM # Keybindings overrides for SpaceFM
# (overrides some bindings from general file manager code block below) # (overrides some bindings from general file manager code block below)
@@ -326,19 +338,21 @@ define_keymap(re.compile("spacefm", re.IGNORECASE),{
K("RC-Page_Down"): K("C-Tab"), # Go to next tab K("RC-Page_Down"): K("C-Tab"), # Go to next tab
K("RC-Shift-Left_Brace"): K("C-Shift-Tab"), # Go to prior tab K("RC-Shift-Left_Brace"): K("C-Shift-Tab"), # Go to prior tab
K("RC-Shift-Right_Brace"): K("C-Tab"), # Go to next tab K("RC-Shift-Right_Brace"): K("C-Tab"), # Go to next tab
K("RC-Shift-N"): [K("RC-F")], # Create new folder is Ctrl+F by default K("RC-Shift-Left"): K("C-Shift-Tab"), # Go to prior tab
K("RC-Shift-Right"): K("C-Tab"), # Go to next tab
K("RC-Shift-N"): K("RC-F"), # Create new folder is Ctrl+F by default
K("RC-Backspace"): [K("Delete"),K("Enter")], # Move to Trash (delete, bypass dialog) K("RC-Backspace"): [K("Delete"),K("Enter")], # Move to Trash (delete, bypass dialog)
K("RC-comma"): [K("M-V"),K("p")], # Overrides "Open preferences dialog" shortcut below K("RC-comma"): [K("M-V"),K("p")], # Overrides "Open preferences dialog" shortcut below
# This shortcut ^^^^^^^^^^^^^^^ is not fully working in SpaceFM. Opens "View" menu but not Preferences. # This shortcut ^^^^^^^^^^^^^^^ is not fully working in SpaceFM. Opens "View" menu but not Preferences.
# SpaceFM seems to be doing some nasty binding that blocks things like Alt+Tab while the menu is open. # SpaceFM seems to be doing some nasty binding that blocks things like Alt+Tab while the menu is open.
},"Overrides for SpaceFM - Finder") },"Overrides for SpaceFM - Finder Mods")
# Keybindings overrides for Thunar # Keybindings overrides for Thunar
# (overrides some bindings from general file manager code block below) # (overrides some bindings from general file manager code block below)
define_keymap(re.compile("thunar", re.IGNORECASE),{ define_keymap(re.compile("thunar", re.IGNORECASE),{
K("RC-Super-o"): K("RC-Shift-P"), # Open in new tab K("RC-Super-o"): K("RC-Shift-P"), # Open in new tab
K("RC-comma"): [K("M-E"),K("E")], # Overrides "Open preferences dialog" shortcut below K("RC-comma"): [K("M-E"),K("E")], # Overrides "Open preferences dialog" shortcut below
},"Overrides for Thunar - Finder") },"Overrides for Thunar - Finder Mods")
filemanagers = [ filemanagers = [
"caja", "caja",
@@ -380,6 +394,8 @@ define_keymap(re.compile(filemanagerStr, re.IGNORECASE),{
########################################################################################################### ###########################################################################################################
### Navigation ### ### Navigation ###
########################################################################################################### ###########################################################################################################
K("RC-Left_Brace"): K("M-Left"), # Go Back
K("RC-Right_Brace"): K("M-Right"), # Go Forward
K("RC-Left"): K("M-Left"), # Go Back K("RC-Left"): K("M-Left"), # Go Back
K("RC-Right"): K("M-Right"), # Go Forward K("RC-Right"): K("M-Right"), # Go Forward
K("RC-Up"): K("M-Up"), # Go Up dir K("RC-Up"): K("M-Up"), # Go Up dir
@@ -388,6 +404,8 @@ define_keymap(re.compile(filemanagerStr, re.IGNORECASE),{
K("RC-Down"): K("Enter"), # Go Down dir (open folder/file) [universal] K("RC-Down"): K("Enter"), # Go Down dir (open folder/file) [universal]
K("RC-Shift-Left_Brace"): K("C-Page_Up"), # Go to prior tab K("RC-Shift-Left_Brace"): K("C-Page_Up"), # Go to prior tab
K("RC-Shift-Right_Brace"): K("C-Page_Down"), # Go to next tab K("RC-Shift-Right_Brace"): K("C-Page_Down"), # Go to next tab
K("RC-Shift-Left"): K("C-Page_Up"), # Go to prior tab
K("RC-Shift-Right"): K("C-Page_Down"), # Go to next tab
########################################################################################################### ###########################################################################################################
### Open in New Window | Move to Trash | Duplicate file/folder ### ### Open in New Window | Move to Trash | Duplicate file/folder ###
########################################################################################################### ###########################################################################################################
@@ -400,7 +418,8 @@ define_keymap(re.compile(filemanagerStr, re.IGNORECASE),{
########################################################################################################### ###########################################################################################################
# K("Enter"): K("F2"), # Rename with Enter key # K("Enter"): K("F2"), # Rename with Enter key
# K("RC-Shift-Enter"): K("Enter"), # Remap alternative "Enter" key to easily activate/exit text fields # K("RC-Shift-Enter"): K("Enter"), # Remap alternative "Enter" key to easily activate/exit text fields
},"File Managers - Finder") # K("RC-Shift-Enter"): K("F2"), # Rename with Cmd+Shift+Enter
},"General File Managers - Finder Mods")
############################################ ############################################
### END OF FILE MANAGER GROUP OF KEYMAPS ### ### END OF FILE MANAGER GROUP OF KEYMAPS ###