yorukot / superfile

Pretty fancy and modern terminal file manager
https://superfile.netlify.app
MIT License
7.54k stars 167 forks source link

Hotkey `o`: sort options menu #473

Closed knqti closed 1 day ago

knqti commented 2 days ago

Describe the bug Pressing o doesn't toggle the sort options menu.

To Reproduce Steps to reproduce the behavior:

  1. Launch superfile with spf in terminal
  2. Press o

Expected behavior The sort options menu should appear.

Screenshots

System information (please complete the following information):

yorukot commented 1 day ago

Sort options is a new feature in 1.1.6!

knqti commented 1 day ago

I'm on v1.1.6 and o works now, thanks!

Just want to note that open_sort_options_menu does not appear in my hotkeys.toml:

# =================================================================================================
# Global hotkeys (cannot conflict with other hotkeys)
confirm = ['enter', 'right', 'l']
quit = ['q', 'esc']
# movement
list_up = ['up', 'k']
list_down = ['down', 'j']
# file panel control
create_new_file_panel = ['n', '']
close_file_panel = ['w', '']
next_file_panel = ['tab', 'L']
previous_file_panel = ['shift+left', 'H']
toggle_file_preview_panel = ['f', '']
# change focus
focus_on_process_bar = ['p', '']
focus_on_sidebar = ['s', '']
focus_on_metadata = ['m', '']
# create file/directory and rename 
file_panel_item_create = ['ctrl+n', '']
file_panel_item_rename = ['ctrl+r', '']
# file operations
copy_items = ['ctrl+c', '']
cut_items = ['ctrl+x', '']
paste_items = ['ctrl+v', '']
delete_items = ['ctrl+d', 'delete', '']
# compress and extract
extract_file = ['ctrl+e', '']
compress_file = ['ctrl+a', '']
# editor
open_file_with_editor = ['e', '']
open_current_directory_with_editor = ['E', '']
# other
pinned_directory = ['P', '']
toggle_dot_file = ['.', '']
change_panel_mode = ['ctrl+L', 'v']
open_help_menu = ['?', '']
open_command_line = [':', '']
copy_path = ['ctrl+p', '']
# =================================================================================================
# Typing hotkeys (can conflict with all hotkeys)
confirm_typing = ['enter', '']
cancel_typing = ['ctrl+c', 'esc']
# =================================================================================================
# Normal mode hotkeys (can conflict with other modes, cannot conflict with global hotkeys)
parent_directory = ['h', 'left', "backspace"] 
search_bar = ['/', '']
# =================================================================================================
# Select mode hotkeys (can conflict with other modes, cannot conflict with global hotkeys)
file_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', '']
yorukot commented 17 hours ago

I'm on v1.1.6 and o works now, thanks!

Just want to note that open_sort_options_menu does not appear in my hotkeys.toml:

I think it's because you update from 1.1.5 so you should add --fix-hotkeys flag to fix this.

knqti commented 3 hours ago

Yup that worked, thanks.