rangerはTUIファイラ。
設定ファイル
設定はファイルを編集することで行う。~/.config/ranger/配下にある。
| ファイル |
役割 |
書き方 |
| rc.conf |
オプション・キーバインド |
※ |
| rifle.conf |
ランチャ(ファイル拡張子ごとに起動するアプリを決める) |
※ |
| scope.sh |
プレビュー処理(ファイル拡張子ごとに実行するプレビュー用コマンドを実装する) |
※ |
| ファイル |
役割 |
書き方 |
| commands.py |
自作rangerコマンドの実装 |
※ |
| commands_full.py |
全rangerコマンドの実装 |
- |
デフォルトでもできる
| ユースケース |
キーorコマンド |
| 複数タブで起動する |
$ ranger /tmp ~/ |
| マルチペイン(多画面)にする |
~ |
| HTMLを表示する |
ファイル選択+<Enter> |
| HTMLを編集する |
ファイル選択+E |
| pythonを編集する |
ファイル選択+<Enter> |
| pythonを実行する(すぐ消える) |
ファイル選択+r+(実行コマンドの番号)+<Enter> |
設定でできる
コマンド作成でできる
対象環境
- Raspbierry pi 3 Model B+
- Raspbian stretch 9.0 2018-11-13
- bash 4.4.12
- python 2.7.13, pip 9.0.1
- python3 3.5.3, pip3 9.0.1
- ranger 1.9.2
$ uname -a
Linux raspberrypi 4.14.98-v7+