Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Lfのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Lf
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
{{DISPLAYTITLE:lf}} [[Category:ファイルマネージャ]] [[Category:コンソールアプリケーション]] [[es:lf]] {{Related articles start}} {{Related|Midnight Commander}} {{Related|nnn}} {{Related|ranger}} {{Related|vifm}} {{Related articles end}} [https://github.com/gokcehan/lf lf] (as in "list files") is a terminal file manager written in Go with a heavy inspiration from [[ranger]]. Outstanding features are a fast startup and low memory footprint, a server/client architecture and high customization. Unlike ranger, some features like tabs or windows are intentionally not included and instead left to be handled by window manager or terminal multiplexer. == Installation == [[Install]] the {{Pkg|lf}} package. == Usage == To start the application, launch a [[List of applications#Terminal emulators|terminal]] and run {{ic|lf}}. The default keybindings are similar to those of vim with some difference from rangers default. == Configuration == Copy the default configuration at {{ic|/usr/share/doc/lf/lfrc.example}} to {{ic|~/.config/lf/lfrc}} to use as a template for further customization. Some common features are already included as comments in the configuration example. For more extensive configurations see the [https://pkg.go.dev/github.com/gokcehan/lf documentation]. Useful configuration examples from the community can also be found on [https://github.com/gokcehan/lf/wiki/ GitHub]. == Tips and tricks == === Using rifle file opener === lf can use the file opener rifle which is included in the {{Pkg|ranger}} package. Set an environment variable to automatically use rifle to open files in the related applications. export OPENER='rifle' For editing file, you can also set your default editor: export EDITOR='vim' === Previewing files === To automatically preview contents from currently selected files, set a custom previewer script in lfrc. It is possible to simple use the {{ic|scope.sh}} script from ranger which serves as a good template for customization. set previewer "~/.config/ranger/scope.sh" === Sandboxing previews === While the default lf configuration only previews text files, using more complex preview parsers is somewhat dangerous. In case there is a vulnerability in a preview parser like pdftotext, it is possible to use this simple script to sandbox the previewer using {{Pkg|bubblewrap}} : {{hc|~/.config/lf/previewSandbox.sh| #!/bin/bash set -euo pipefail ( exec bwrap \ --ro-bind /usr/bin /usr/bin \ --ro-bind /usr/share/ /usr/share/ \ --ro-bind /usr/lib /usr/lib \ --ro-bind /usr/lib64 /usr/lib64 \ --symlink /usr/bin /bin \ --symlink /usr/bin /sbin \ --symlink /usr/lib /lib \ --symlink /usr/lib64 /lib64 \ --proc /proc \ --dev /dev \ --ro-bind /etc /etc \ --ro-bind ~/.config ~/.config \ --ro-bind ~/.cache ~/.cache \ --ro-bind "$PWD" "$PWD" \ --unshare-all \ --new-session \ bash ~/.config/lf/preview.sh "$@" ) }} Set your previewer to the sandbox script and have your real preview script at {{ic|~/.config/lf/preview.sh}}: set previewer ~/.config/lf/previewSandbox.sh == See also == * [https://github.com/gokcehan/lf/wiki Project Wiki] * [https://pkg.go.dev/github.com/gokcehan/lf Full documentation]
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:META Related articles start
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Related
(
ソースを閲覧
)
テンプレート:Related articles end
(
ソースを閲覧
)
テンプレート:Related articles start
(
ソースを閲覧
)
Lf
に戻る。
検索
検索
Lfのソースを表示
話題を追加