この資料は Rust 製のコマンドラインツール xplr について紹介するものです。
Rustの環境構築やツールのインストール方法については以下を参照してください
xplr はターミナル UI ベースのファイルエクスプローラです。カスタマイズが可能で他のコマンドラインユーティリティと柔軟に連携することができ、ターミナルでの作業の生産性を向上させることができます。
GitHub - sayanarijit/xplr: A hackable, minimal, fast TUI file explorer
https://user-images.githubusercontent.com/11632726/166747867-8a4573f2-cb2f-43a6-a23d-c99fc30c6594.mp4
xplr のヘルプメッセージ
% xplr --help
xplr 0.20.2
Arijit Basu <[email protected]>
A hackable, minimal, fast TUI file explorer
USAGE:
xplr [FLAG]... [OPTION]... [PATH] [SELECTION]...
FLAGS:
- Reads new-line (\\n) separated paths from stdin
-- Denotes the end of command-line flags and options
--force-focus Focuses on the given <PATH>, even if it is a directory
-h, --help Prints help information
-m, --pipe-msg-in Helps safely passing messages to the active xplr
session, use %%, %s and %q as the placeholders
-M, --print-msg-in Like --pipe-msg-in, but prints the message instead of
passing to the active xplr session
--print-pwd-as-result Prints the present working directory when quitting
with `PrintResultAndQuit`
--read-only Enables read-only mode (config.general.read_only)
--read0 Reads paths separated using the null character (\\0)
--write0 Prints paths separated using the null character (\\0)
-0 --null Combines --read0 and --write0
-V, --version Prints version information
OPTIONS:
-c, --config <PATH> Specifies a custom config file (default is
"$HOME/.config/xplr/init.lua")
-C, --extra-config <PATH>... Specifies extra config files to load
--on-load <MESSAGE>... Sends messages when xplr loads
--vroot <PATH> Treats the specified path as the virtual root
ARGS:
<PATH> Path to focus on, or enter if directory, (default is `.`)
<SELECTION>... Paths to select, requires <PATH> to be set explicitly
公式ドキュメント