この資料は Rust 製のコマンドラインツール felix について紹介するものです。
Rustの環境構築やツールのインストール方法については以下を参照してください
Vim ライクなキーマッピングを持つ tui ファイルマネージャです。 高速で、シンプルで、設定や利用が簡単です。
GitHub - kyoheiu/felix: tui file manager with vim-like key mapping
インストールすると fx
コマンドを使用できるようになります。
環境変数 EDITOR
に設定されているエディタを使用します。
以下の2つのアプリをインストールすることで、より便利にfelixを利用することができます。
fx のヘルプメッセージ
% fx --help
# felix v2.2.3
A simple TUI file manager with vim-like keymapping.
## Usage
`fx` => Show items in the current directory.
`fx <directory path>` => Show items in the path.
Both relative and absolute path available.
## Options
`-h` | `--help` => Print help.
`-v` | `--version` => Check update.
`-l` | `--log` => Launch the app, automatically generating a log file.
## Manual
j / Down :Go down.
k / Up :Go up.
h / Left :Go to the parent directory if exists.
l / Right / Enter :Open a file or change directory.
o :Open a file in a new window.
e :Unpack archive/compressed file.
gg :Go to the top.
G :Go to the bottom.
z + Enter :Go to the home directory.
z <keyword> :Jump to a directory that matches the keyword. (zoxide required)
dd :Delete and yank one item.
yy :Yank one item.
p :Put yanked item(s) in the current directory.
V :Switch to the select mode.
- d :In the select mode, delete and yank selected item(s).
- y :In the select mode, yank selected item(s).
u :Undo put/delete/rename.
Ctrl + r :Redo put/delete/rename.
v :Toggle whether to show the preview.
s :Toggle between vertical / horizontal split in the preview mode.
Alt + j / Down :Scroll down the preview text.
Alt + k / Up :Scroll up the preview text.
backspace :Toggle whether to show hidden items.
t :Toggle the sort order (name <-> modified time).
: :Switch to the shell mode.
c :Switch to the rename mode.
/ :Search items by the keyword.
n :Go forward to the item that matches the keyword.
N :Go backward to the item that matches the keyword.
Esc :Return to the normal mode.
:cd / :z :Go to the home directory.
:z <keyword> :Same as `z <keyword>`.
:e :Reload the current directory.
:trash :Go to the trash directory.
:empty :Empty the trash directory.
:h :Show help.
:q / ZZ :Exit.
## Preview feature
By default, text files and directories can be previewed.
To preview images, you need to install chafa (>= v1.10.0).
Please see <https://hpjansson.org/chafa/>
## Configuration
### Linux
config file : $XDG_CONFIG_HOME/felix/config.yaml
trash directory: $XDG_DATA_HOME/felix/trash
log files : $XDG_DATA_HOME/felix/log
### macOS
config file : $HOME/Library/Application Support/felix/config.yaml
trash directory: $HOME/Library/Application Support/felix/trash
log files : $HOME/Library/Application Support/felix/log
### Windows
config file : $PROFILE\\AppData\\Roaming\\felix\\config.yaml
trash directory : $PROFILE\\AppData\\Local\\felix\\trash
log files : $PROFILE\\AppData\\Local\\felix\\log
For more details, visit <https://github.com/kyoheiu/felix>