Custom hotkeys
You can enter the following command to set it up;
Click me to know where is HOTKEYS_PATH
$EDITOR HOTKEYS_PATHDefault superfile hotkeys
Section titled “Default superfile hotkeys”superfile default hotkeys design concept:
- All hotkeys that will change to files use
ctrl+key(As long as you don’t press ctrl your files will always be safe). - Non-control file classes use the first letters of words as hotkeys.
############################################### ## Superfile Configuration ## ###############################################
# This contains the hotkey config file for superfile! More details can be found at# https://superfile.dev/configure/custom-hotkeys/.
################################################################################ Global hotkeys ################################################################################
# Note: These hotkeys should be unique.
#-- Basic Actionsconfirm = ['enter', 'right', 'l']cd_quit = ['Q', '']quit = ['q', 'esc']
#-- Navigationlist_down = ['down', 'j']list_up = ['up', 'k']page_down = ['pgdown','']page_up = ['pgup','']
#-- File Panel Controlsclose_file_panel = ['w', '']create_new_file_panel = ['n', '']next_file_panel = ['tab', 'L']open_sort_options_menu = ['o', '']pinned_directory = ['P', '']previous_file_panel = ['shift+left', 'H']toggle_file_preview_panel = ['f', '']toggle_reverse_sort = ['R', '']
#-- Focus Manipulationfocus_on_metadata = ['m', '']focus_on_process_bar = ['p', '']focus_on_sidebar = ['s', '']
#-- File/Dir Creation/Renamingfile_panel_item_create = ['ctrl+n', '']file_panel_item_rename = ['ctrl+r', '']
#-- Main File Operationscopy_items = ['ctrl+c', '']cut_items = ['ctrl+x', '']delete_items = ['ctrl+d', 'delete', '']paste_items = ['ctrl+v', 'ctrl+w', '']permanently_delete_items = ['D', '']
#-- Archive Manipulationcompress_file = ['ctrl+a', '']extract_file = ['ctrl+e', '']
#-- Editor Actionsopen_current_directory_with_editor = ['E', '']open_file_with_editor = ['e', '']
#-- Other Actionschange_panel_mode = ['v', '']copy_path = ['ctrl+p', '']copy_present_working_directory = ['c', '']open_command_line = [':', '']open_help_menu = ['?', '']open_spf_prompt = ['>', '']open_zoxide = ['z', '']toggle_dot_file = ['.', '']toggle_footer = ['F', '']
################################################################################ Typing hotkeys ################################################################################
# Note: These hotkeys can override all hotkeys.
confirm_typing = ['enter', '']cancel_typing = ['ctrl+c', 'esc']
################################################################################ Mode-Specific Hotkeys ################################################################################
# Note: These hotkeys can conflict with other modes, but not with global# hotkeys.
#-- Normal Mode Actionsparent_directory = ['h', 'left', 'backspace']search_bar = ['/', '']
#-- Selection Mode Actionsfile_panel_select_mode_items_select_down = ['shift+down', 'J']file_panel_select_mode_items_select_up = ['shift+up', 'K']file_panel_select_all_items = ['A', '']Vim like superfile hotkeys
Section titled “Vim like superfile hotkeys”############################################### ## Superfile vim-like Hotkeys ## ###############################################
#-- Maintainer: nonepork <https://github.com/nonepork>
# This contains a hotkey config file for superfile, that's themed around vim# controls! More details can be found at# https://superfile.dev/configure/custom-hotkeys/.
################################################################################ Global hotkeys ################################################################################
# Note: These hotkeys should be unique.
#-- Basic Actionsconfirm = ['enter', '']quit = ['ctrl+c', ''] # a.k.a. "theprimeagen troller"cd_quit = ['Q', '']
#-- Navigationlist_up = ['k', '']list_down = ['j', '']page_up = ['pgup','']page_down = ['pgdown','']
#-- File Panel Controlscreate_new_file_panel = ['n', '']close_file_panel = ['q', '']next_file_panel = ['tab', '']previous_file_panel = ['shift+tab', '']toggle_file_preview_panel = ['f', '']open_sort_options_menu = ['o', '']toggle_reverse_sort = ['R', '']
#-- Focus Manipulationfocus_on_process_bar = ['ctrl+p', '']focus_on_sidebar = ['ctrl+s', '']focus_on_metadata = ['ctrl+d', '']
#-- File/Dir Creation/Renamingfile_panel_item_create = ['a', '']file_panel_item_rename = ['r', '']
#-- Main File Operationscopy_items = ['y', '']cut_items = ['x', '']paste_items = ['p', '']delete_items = ['d', '']permanently_delete_items = ['D', '']
#-- Archive Manipulationextract_file = ['ctrl+e', '']compress_file = ['ctrl+a', '']
#-- Editor Actionsopen_file_with_editor = ['e', '']open_current_directory_with_editor = ['E', '']
#-- Other Actionspinned_directory = ['P', '']toggle_dot_file = ['.', '']change_panel_mode = ['m', '']open_help_menu = ['?', '']open_command_line = [':', '']open_zoxide = ['z', '']copy_path = ['Y', '']copy_present_working_directory = ['c', '']toggle_footer = ['ctrl+f', '']
################################################################################ Typing hotkeys ################################################################################
# Note: These hotkeys can override all hotkeys.
confirm_typing = ['enter', '']cancel_typing = ['esc', '']
################################################################################ Mode-Specific Hotkeys ################################################################################
# Note: These hotkeys can conflict with other modes, but not with global# hotkeys.
#-- Normal Mode Actionsparent_directory = ['-', '']search_bar = ['/', '']
#-- Selection Mode Actionsfile_panel_select_mode_items_select_down = ['J', '']file_panel_select_mode_items_select_up = ['K', '']file_panel_select_all_items = ['A', '']