Skip to content

Commit

Permalink
feat: update keybinding help
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakenelf committed Mar 16, 2024
1 parent 32bf683 commit dd6434f
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions internal/tui/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,26 +98,30 @@ func New(cfg Config) model {
{Key: "ctrl+c, q", Description: "Exit FM"},
{Key: "j/up", Description: "Move up"},
{Key: "k/down", Description: "Move down"},
{Key: "h", Description: "Paginate left in current directory"},
{Key: "l", Description: "Paginate right in current directory"},
{Key: "space", Description: "Read file or enter directory"},
{Key: "h", Description: "Go to previous directory"},
{Key: "l", Description: "Open file or directory"},
{Key: "G", Description: "Jump to bottom"},
{Key: "g", Description: "Jump to top"},
{Key: "~", Description: "Go to home directory"},
{Key: ".", Description: "Toggle hidden files"},
{Key: "y", Description: "Copy file path to clipboard"},
{Key: "z", Description: "Zip currently selected tree item"},
{Key: "u", Description: "Unzip currently selected tree item"},
{Key: "n", Description: "Create new file"},
{Key: "N", Description: "Create new directory"},
{Key: "x", Description: "Delete currently selected tree item"},
{Key: "N", Description: "Create new file"},
{Key: "M", Description: "Create new directory"},
{Key: "X", Description: "Delete currently selected tree item"},
{Key: "m", Description: "Move currently selected tree item"},
{Key: "enter", Description: "Process command"},
{Key: "e", Description: "Edit currently selected tree item"},
{Key: "c", Description: "Copy currently selected tree item"},
{Key: "esc", Description: "Reset input field"},
{Key: "R", Description: "Go to root directory"},
{Key: "tab", Description: "Toggle between boxes"},
{Key: "enter", Description: "Submit text input"},
{Key: "e", Description: "Open file in $EDITOR"},
{Key: "C", Description: "Copy currently selected tree item"},
{Key: "esc", Description: "Reset state and show help"},
{Key: "/", Description: "Go to root directory"},
{Key: "tab", Description: "Toggle between panes"},
{Key: "K", Description: "Page up in filetree"},
{Key: "J", Description: "Page down in filetree"},
{Key: "D", Description: "Only show directories in filetree"},
{Key: "F", Description: "Only show files in filetree"},
{Key: "W", Description: "Write selection path to file if its set"},
},
)
helpModel.SetViewportDisabled(true)
Expand Down

0 comments on commit dd6434f

Please sign in to comment.