]> git.rmz.io Git - dotfiles.git/commitdiff
qutebrowser: use ranger to select folders
authorSamir Benmendil <me@rmz.io>
Thu, 7 Oct 2021 12:08:36 +0000 (13:08 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 14 Dec 2021 22:25:46 +0000 (22:25 +0000)
qutebrowser/config.py

index 5cd69a6c393966635af8d8e6441bd765906c1160..bb85d96607a1645b10977b7c154980c4ceac38b3 100644 (file)
@@ -827,6 +827,14 @@ c.editor.command = in_terminal(['vim', '{file}', '-c', 'normal {line}G{column0}l
 ## Type: Encoding
 # c.editor.encoding = 'utf-8'
 
+## Command (and arguments) to use for selecting a single folder in forms.
+## The command should write the selected folder path to the specified
+## file or stdout. The following placeholders are defined: * `{}`:
+## Filename of the file to be written to. If not contained in any
+## argument, the   standard output of the command is read instead.
+## Type: ShellCommand
+c.fileselect.folder.command = in_terminal(['ranger', '--choosedir={}'])
+
 ## Handler for selecting file(s) in forms. If `external`, then the
 ## commands specified by `fileselect.single_file.command` and
 ## `fileselect.multiple_files.command` are used to select one or multiple