1
0
mirror of https://github.com/yorukot/superfile.git synced 2025-02-06 09:26:18 +00:00

update markdown and update vhs tape

This commit is contained in:
Night Cat 2024-04-18 16:45:57 +08:00
parent 86d671388c
commit e762bf09fe
9 changed files with 179 additions and 67 deletions

View File

@ -1,57 +0,0 @@
## General
| Function | Key | Variable name |
| --------------- | ------------------------ | ------------- |
| Start SuperFile | `spf` | |
| Reload | press any key can reload | |
| Quit | `esc`, `q` | `quit` |
## Panel navigation
| Function | Key | Variable name |
| -------------------------------------------------- | ----------------- | ----------------------- |
| Pin or Unpin folder to sidebar (can be auto saved) | `ctrl+p` | `pinned_folder` |
| Create new file panel | `ctrl+n` | `create_new_file_panel` |
| Close the focused file panel | `ctrl+w` | `close_file_panel` |
| Focus on the file panel | `tab` | `next_file_panel` |
| Focus on the previous file panel | `shift+left`, `q` | `previous_file_panel` |
| Focus on the processbar panel | `p` | `focus_on_process_bar` |
| Focus on the sidebar | `b` | `focus_on_side_bar` |
| Focus on the metadata panel | `m` | `focus_on_meta_data` |
## Panel movement
| Function | Key | Variable name |
| --------------------------------------------------- | -------------------------- | ------------------------------------------------------------------------- |
| Change between selection mode or normal mode | `v` | `change_panel_mode` |
| Up | `up`, `k` | `list_up` |
| Down | `down`, `j` | `list_down` |
| Go to folder | `enter`, `l` | `select_item` |
| Return to parent folder | `h`, `backspace` | `parent_folder` |
| Select all items in focused file panel | `ctrl+a` | `file_panel_select_all_item`(only works in selection mode) |
| Select with your course | `shift+up`, `K`(shift+k) | `file_panel_select_mode_item_select_up`(only works in selection mode) |
| Select with your course | `shift+left`, `J`(shift+j) | `file_panel_select_mode_items_elect_down`(only works in selection mode) |
| Select the item where the current cursor is located | `enter`, `l` | `file_panel_select_mode_item_single_select`(only works in selection mode) |
| Toggle dot file display | `ctrl+h` | `toggle_dot_file` |
| Toggle active search bar | `ctrl+f` | `search_bar` |
## File operations
| Function | Key | Variable name |
| --------------------------------------- | ------------ | ------------------------------------------------------------------------------------ |
| Create a new folder | `f` | `file_panel_folder_create` |
| Create a new file | `c` | `file_panel_file_create` |
| Rename file or folder | `r` | `file_panel_item_rename` |
| Extract zip file | `ctrl+e` | `extract_file`(normal mode) |
| Zip file or folder to .zip file | `ctrl+r` | `compress_file`(normal mode) |
| Delete file or folder (or both) | `ctrl+d` | `delete_item`(normal mode) <br> `file_panel_select_mode_item_delete`(select mode) |
| Copy file or folder (or both) | `ctrl+c` | `copy_single_item`(normal mode) <br> `file_panel_select_mode_item_copy`(select mode) |
| Paste all items in your clipboard | `ctrl+v` | `paste_item` |
| Open file with your default application | `enter`, `l` | `select_item`(select mode) |
## Special
| Function | Key | Variable name |
| -------------------------------------------------------------------------- | --------------- | ------------- |
| Confirm rename or create item or exit search bar | `enter` | `confirm` |
| Cancel rename or create item or exit search bar and clear search bar value | `ctrl+c`, `esc` | `cancel` |

View File

@ -48,6 +48,8 @@
- Rename files in a modern way
- Open file with default app
- Open terminal with current path
- Search bar
- Extract or compress file
## Install
@ -55,7 +57,6 @@
**Requirements**
- [`Exiftool`](#exiftool)
- Any [`Nerd Font`](#font)
### Homebrew
@ -172,8 +173,7 @@ mv ./bin/spf /usr/local/bin
## Plugins
**Metadata**
request: [`exiftool`](https://github.com/exiftool/exiftool)
[Click me to the plugins wiki](https://github.com/MHNightCat/superfile/wiki/Plugins)
## Themes
@ -217,15 +217,15 @@ Don't forget to change the `theme` variable in `config.json` to your theme name.
## Hotkeys
[**Click me to see the hotkey list**](https://github.com/MHNightCat/superfile/blob/main/HOTKEYS.md)
[**Click me to see the hotkey list**](https://github.com/MHNightCat/superfile/wiki/Hotkey-list)
**You can change all hotkeys in** `~/.config/superfile/config.json`
**You can change all hotkeys in** `~/.config/superfile/hotkeys.toml`
> "Normal mode" is the default browsing mode
Global hotkeys cannot conflict with other hotkeys (The only exception is the special hotkey).
The hotkey ranges are found in `config.json`
The hotkey ranges are found in `hotkeys.toml`
## Contributing

View File

@ -135,7 +135,7 @@ func returnFolderElement(location string, displayDotFile bool) (folderElement []
if err != nil {
continue
}
if !displayDotFile && strings.HasPrefix(fileInfo.Name(), ".") {
continue
}
@ -573,10 +573,14 @@ func loadConfigFile(dir string) (toggleDotFileBool bool, firstFilePanelDir strin
toggleDotFileBool = false
}
LoadThemeConfig()
et, err = exiftool.NewExiftool()
if err != nil {
outPutLog("Initial model function init exiftool error", err)
if Config.Metadata {
et, err = exiftool.NewExiftool()
if err != nil {
outPutLog("Initial model function init exiftool error", err)
}
}
firstFilePanelDir = HomeDir
if dir != "" {
firstFilePanelDir, err = filepath.Abs(dir)

View File

@ -0,0 +1,17 @@
Output asset/demo.gif
Set Shell "base"
Set FontSize 30
Set Width 2560
Set Height 1500
Set FontFamily "Comic Mono, RobotoMono Nerd Font"
Set PlaybackSpeed 0.6
Set Padding 50
Set Theme { "name": "Whimsy", "black": "#535178", "red": "#ef6487", "green": "#5eca89", "yellow": "#fdd877", "blue": "#65aef7", "magenta": "#aa7ff0", "cyan": "#43c1be", "white": "#ffffff", "brightBlack": "#535178", "brightRed": "#ef6487", "brightGreen": "#5eca89", "brightYellow": "#fdd877", "brightBlue": "#65aef7", "brightMagenta": "#aa7ff0", "brightCyan": "#43c1be", "brightWhite": "#ffffff", "background": "#1e1e2e", "foreground": "#b3b0d6", "selection": "#3d3c58", "cursor": "#b3b0d6" }
Type "spf"
Sleep 1500ms
Enter
Sleep 1500ms
Type "q"
Sleep 1500ms

View File

@ -0,0 +1,22 @@
Output asset/demo.gif
Set Shell "base"
Set FontSize 30
Set Framerate 60
Set Width 2560
Set Height 1500
Set FontFamily "Comic Mono, RobotoMono Nerd Font"
Set PlaybackSpeed 0.6
Set Padding 50
Set Theme { "name": "Whimsy", "black": "#535178", "red": "#ef6487", "green": "#5eca89", "yellow": "#fdd877", "blue": "#65aef7", "magenta": "#aa7ff0", "cyan": "#43c1be", "white": "#ffffff", "brightBlack": "#535178", "brightRed": "#ef6487", "brightGreen": "#5eca89", "brightYellow": "#fdd877", "brightBlue": "#65aef7", "brightMagenta": "#aa7ff0", "brightCyan": "#43c1be", "brightWhite": "#ffffff", "background": "#1e1e2e", "foreground": "#b3b0d6", "selection": "#3d3c58", "cursor": "#b3b0d6" }
Type "spf"
Sleep 1500ms
Enter
Sleep 1500ms
Down@150ms 5
Sleep 150ms
Up@150ms 3
Sleep 700ms
Enter
Sleep 1500ms

View File

@ -0,0 +1,51 @@
Output asset/demo.gif
Set Shell "base"
Set FontSize 30
Set Framerate 60
Set Width 2560
Set Height 1500
Set FontFamily "Comic Mono, RobotoMono Nerd Font"
Set PlaybackSpeed 0.6
Set Padding 50
Set Theme { "name": "Whimsy", "black": "#535178", "red": "#ef6487", "green": "#5eca89", "yellow": "#fdd877", "blue": "#65aef7", "magenta": "#aa7ff0", "cyan": "#43c1be", "white": "#ffffff", "brightBlack": "#535178", "brightRed": "#ef6487", "brightGreen": "#5eca89", "brightYellow": "#fdd877", "brightBlue": "#65aef7", "brightMagenta": "#aa7ff0", "brightCyan": "#43c1be", "brightWhite": "#ffffff", "background": "#1e1e2e", "foreground": "#b3b0d6", "selection": "#3d3c58", "cursor": "#b3b0d6" }
Type "spf"
Sleep 1500ms
Enter
Sleep 1500ms
Ctrl+N
Sleep 500ms
Ctrl+N
Sleep 500ms
Ctrl+N
Sleep 500ms
Ctrl+N
Sleep 500ms
Type "L"
Sleep 200ms
Type "L"
Sleep 200ms
Type "L"
Sleep 200ms
Type "L"
Sleep 200ms
Type "H"
Sleep 200ms
Type "H"
Sleep 200ms
Type "H"
Sleep 200ms
Type "H"
Sleep 200ms
Ctrl+W
Sleep 500ms
Ctrl+W
Sleep 500ms
Ctrl+W
Sleep 500ms
Ctrl+W
Sleep 500ms

View File

@ -0,0 +1,52 @@
Output asset/demo.gif
Set Shell "base"
Set FontSize 30
Set Framerate 60
Set Width 2560
Set Height 1500
Set FontFamily "Comic Mono, RobotoMono Nerd Font"
Set PlaybackSpeed 0.6
Set Padding 50
Set Theme { "name": "Whimsy", "black": "#535178", "red": "#ef6487", "green": "#5eca89", "yellow": "#fdd877", "blue": "#65aef7", "magenta": "#aa7ff0", "cyan": "#43c1be", "white": "#ffffff", "brightBlack": "#535178", "brightRed": "#ef6487", "brightGreen": "#5eca89", "brightYellow": "#fdd877", "brightBlue": "#65aef7", "brightMagenta": "#aa7ff0", "brightCyan": "#43c1be", "brightWhite": "#ffffff", "background": "#1e1e2e", "foreground": "#b3b0d6", "selection": "#3d3c58", "cursor": "#b3b0d6" }
Type "spf"
Sleep 1500ms
Enter
Sleep 1500ms
Type "v"
Sleep 600ms
Type "l"
Sleep 300ms
Type "l"
Sleep 300ms
Type "J"
Sleep 300ms
Type "J"
Sleep 300ms
Type "J"
Sleep 300ms
Type "J"
Sleep 300ms
Type "J"
Sleep 300ms
Type "l"
Sleep 300ms
Type "K"
Sleep 300ms
Type "K"
Sleep 300ms
Type "K"
Sleep 300ms
Type "K"
Sleep 300ms
Ctrl+A
Sleep 1500ms
Type "v"
Sleep 1500ms

View File

@ -0,0 +1,23 @@
Output asset/demo.gif
Set Shell "base"
Set FontSize 30
Set Width 2560
Set Height 1500
Set FontFamily "Comic Mono, RobotoMono Nerd Font"
Set PlaybackSpeed 0.6
Set Padding 50
Set Theme { "name": "Whimsy", "black": "#535178", "red": "#ef6487", "green": "#5eca89", "yellow": "#fdd877", "blue": "#65aef7", "magenta": "#aa7ff0", "cyan": "#43c1be", "white": "#ffffff", "brightBlack": "#535178", "brightRed": "#ef6487", "brightGreen": "#5eca89", "brightYellow": "#fdd877", "brightBlue": "#65aef7", "brightMagenta": "#aa7ff0", "brightCyan": "#43c1be", "brightWhite": "#ffffff", "background": "#1e1e2e", "foreground": "#b3b0d6", "selection": "#3d3c58", "cursor": "#b3b0d6" }
Type "spf"
Sleep 1500ms
Enter
Sleep 1500ms
Type "b"
Sleep 1500ms
Type "p"
Sleep 1500ms
Type "m"
Sleep 1500ms
Type "m"
Sleep 1500ms