25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

1539 satır
50KB

  1. # Autogenerated config.py
  2. # Documentation:
  3. # qute://help/configuring.html
  4. # qute://help/settings.html
  5. # This is here so configs done via the GUI are still loaded.
  6. # Remove it to not load settings done via the GUI.
  7. # config.load_autoconfig()
  8. # Aliases for commands. The keys of the given dictionary are the
  9. # aliases, while the values are the commands they map to.
  10. # Type: Dict
  11. c.aliases = {'w': 'session-save',
  12. 'q': 'quit',
  13. 'wq': 'quit --save',
  14. 'ff': 'spawn firefox {url}',
  15. 'q': 'quit',
  16. 'tor': 'config-cycle -p content.proxy socks://localhost:9050/ system',
  17. 'toroff': 'set content.proxy system',
  18. 'toron': 'set content.proxy socks://localhost:9050',
  19. 'zotero': 'spawn --userscript zotero',
  20. 'zotero_link': 'hint links userscript zotero'
  21. }
  22. # How often (in milliseconds) to auto-save config/cookies/etc.
  23. # Type: Int
  24. c.auto_save.interval = 15000
  25. # Always restore open sites when qutebrowser is reopened.
  26. # Type: Bool
  27. c.auto_save.session = True
  28. # The backend to use to display websites. qutebrowser supports two
  29. # different web rendering engines / backends, QtWebKit and QtWebEngine.
  30. # QtWebKit was discontinued by the Qt project with Qt 5.6, but picked up
  31. # as a well maintained fork: https://github.com/annulen/webkit/wiki -
  32. # qutebrowser only supports the fork. QtWebEngine is Qt's official
  33. # successor to QtWebKit. It's slightly more resource hungry that
  34. # QtWebKit and has a couple of missing features in qutebrowser, but is
  35. # generally the preferred choice. This setting requires a restart.
  36. # Type: String
  37. # Valid values:
  38. # - webengine: Use QtWebEngine (based on Chromium)
  39. # - webkit: Use QtWebKit (based on WebKit, similar to Safari)
  40. c.backend = 'webengine'
  41. # This setting can be used to map keys to other keys. When the key used
  42. # as dictionary-key is pressed, the binding for the key used as
  43. # dictionary-value is invoked instead. This is useful for global
  44. # remappings of keys, for example to map Ctrl-[ to Escape. Note that
  45. # when a key is bound (via `bindings.default` or `bindings.commands`),
  46. # the mapping is ignored.
  47. # Type: Dict
  48. c.bindings.key_mappings = {'<Ctrl-[>': '<Escape>', '<Ctrl-6>': '<Ctrl-^>', '<Ctrl-M>': '<Return>', '<Ctrl-J>': '<Return>', '<Shift-Return>': '<Return>', '<Enter>': '<Return>', '<Shift-Enter>': '<Return>', '<Ctrl-Enter>': '<Ctrl-Return>'}
  49. # Background color of the completion widget category headers.
  50. # Type: QssColor
  51. c.colors.completion.category.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050)'
  52. # Bottom border color of the completion widget category headers.
  53. # Type: QssColor
  54. c.colors.completion.category.border.bottom = 'black'
  55. # Top border color of the completion widget category headers.
  56. # Type: QssColor
  57. c.colors.completion.category.border.top = 'black'
  58. # Foreground color of completion widget category headers.
  59. # Type: QtColor
  60. c.colors.completion.category.fg = 'white'
  61. # Background color of the completion widget for even rows.
  62. # Type: QssColor
  63. c.colors.completion.even.bg = '#333333'
  64. # Text color of the completion widget.
  65. # Type: QtColor
  66. c.colors.completion.fg = 'white'
  67. # Background color of the selected completion item.
  68. # Type: QssColor
  69. c.colors.completion.item.selected.bg = '#e8c000'
  70. # Bottom border color of the selected completion item.
  71. # Type: QssColor
  72. c.colors.completion.item.selected.border.bottom = '#bbbb00'
  73. # Top border color of the completion widget category headers.
  74. # Type: QssColor
  75. c.colors.completion.item.selected.border.top = '#bbbb00'
  76. # Foreground color of the selected completion item.
  77. # Type: QtColor
  78. c.colors.completion.item.selected.fg = 'black'
  79. # Foreground color of the matched text in the completion.
  80. # Type: QssColor
  81. c.colors.completion.match.fg = '#ff4444'
  82. # Background color of the completion widget for odd rows.
  83. # Type: QssColor
  84. c.colors.completion.odd.bg = '#444444'
  85. # Color of the scrollbar in completion view
  86. # Type: QssColor
  87. c.colors.completion.scrollbar.bg = '#333333'
  88. # Color of the scrollbar handle in completion view.
  89. # Type: QssColor
  90. c.colors.completion.scrollbar.fg = 'white'
  91. # Background color for the download bar.
  92. # Type: QssColor
  93. c.colors.downloads.bar.bg = 'black'
  94. # Background color for downloads with errors.
  95. # Type: QtColor
  96. c.colors.downloads.error.bg = 'red'
  97. # Foreground color for downloads with errors.
  98. # Type: QtColor
  99. c.colors.downloads.error.fg = 'white'
  100. # Color gradient start for download backgrounds.
  101. # Type: QtColor
  102. c.colors.downloads.start.bg = '#0000aa'
  103. # Color gradient start for download text.
  104. # Type: QtColor
  105. c.colors.downloads.start.fg = 'white'
  106. # Color gradient stop for download backgrounds.
  107. # Type: QtColor
  108. c.colors.downloads.stop.bg = '#00aa00'
  109. # Color gradient end for download text.
  110. # Type: QtColor
  111. c.colors.downloads.stop.fg = 'white'
  112. # Color gradient interpolation system for download backgrounds.
  113. # Type: ColorSystem
  114. # Valid values:
  115. # - rgb: Interpolate in the RGB color system.
  116. # - hsv: Interpolate in the HSV color system.
  117. # - hsl: Interpolate in the HSL color system.
  118. # - none: Don't show a gradient.
  119. c.colors.downloads.system.bg = 'rgb'
  120. # Color gradient interpolation system for download text.
  121. # Type: ColorSystem
  122. # Valid values:
  123. # - rgb: Interpolate in the RGB color system.
  124. # - hsv: Interpolate in the HSV color system.
  125. # - hsl: Interpolate in the HSL color system.
  126. # - none: Don't show a gradient.
  127. c.colors.downloads.system.fg = 'rgb'
  128. # Background color for hints. Note that you can use a `rgba(...)` value
  129. # for transparency.
  130. # Type: QssColor
  131. c.colors.hints.bg = 'rgba(0,0,0,128)'
  132. # Font color for hints.
  133. # Type: QssColor
  134. c.colors.hints.fg = 'white'
  135. # Font color for the matched part of hints.
  136. # Type: QssColor
  137. c.colors.hints.match.fg = 'rgba(0,0,0,128)'
  138. # Background color of the keyhint widget.
  139. # Type: QssColor
  140. c.colors.keyhint.bg = 'rgba(0, 0, 0, 80%)'
  141. # Text color for the keyhint widget.
  142. # Type: QssColor
  143. c.colors.keyhint.fg = '#FFFFFF'
  144. # Highlight color for keys to complete the current keychain.
  145. # Type: QssColor
  146. c.colors.keyhint.suffix.fg = '#FFFF00'
  147. # Background color of an error message.
  148. # Type: QssColor
  149. c.colors.messages.error.bg = 'red'
  150. # Border color of an error message.
  151. # Type: QssColor
  152. c.colors.messages.error.border = '#bb0000'
  153. # Foreground color of an error message.
  154. # Type: QssColor
  155. c.colors.messages.error.fg = 'white'
  156. # Background color of an info message.
  157. # Type: QssColor
  158. c.colors.messages.info.bg = 'black'
  159. # Border color of an info message.
  160. # Type: QssColor
  161. c.colors.messages.info.border = '#333333'
  162. # Foreground color an info message.
  163. # Type: QssColor
  164. c.colors.messages.info.fg = 'white'
  165. # Background color of a warning message.
  166. # Type: QssColor
  167. c.colors.messages.warning.bg = 'darkorange'
  168. # Border color of a warning message.
  169. # Type: QssColor
  170. c.colors.messages.warning.border = '#d47300'
  171. # Foreground color a warning message.
  172. # Type: QssColor
  173. c.colors.messages.warning.fg = 'white'
  174. # Background color for prompts.
  175. # Type: QssColor
  176. c.colors.prompts.bg = '#444444'
  177. # Border used around UI elements in prompts.
  178. # Type: String
  179. c.colors.prompts.border = '1px solid gray'
  180. # Foreground color for prompts.
  181. # Type: QssColor
  182. c.colors.prompts.fg = 'white'
  183. # Background color for the selected item in filename prompts.
  184. # Type: QssColor
  185. c.colors.prompts.selected.bg = 'grey'
  186. # Background color of the statusbar in caret mode.
  187. # Type: QssColor
  188. c.colors.statusbar.caret.bg = 'purple'
  189. # Foreground color of the statusbar in caret mode.
  190. # Type: QssColor
  191. c.colors.statusbar.caret.fg = 'white'
  192. # Background color of the statusbar in caret mode with a selection.
  193. # Type: QssColor
  194. c.colors.statusbar.caret.selection.bg = '#a12dff'
  195. # Foreground color of the statusbar in caret mode with a selection.
  196. # Type: QssColor
  197. c.colors.statusbar.caret.selection.fg = 'white'
  198. # Background color of the statusbar in command mode.
  199. # Type: QssColor
  200. c.colors.statusbar.command.bg = 'black'
  201. # Foreground color of the statusbar in command mode.
  202. # Type: QssColor
  203. c.colors.statusbar.command.fg = 'white'
  204. # Background color of the statusbar in private browsing + command mode.
  205. # Type: QssColor
  206. c.colors.statusbar.command.private.bg = 'grey'
  207. # Foreground color of the statusbar in private browsing + command mode.
  208. # Type: QssColor
  209. c.colors.statusbar.command.private.fg = 'white'
  210. # Background color of the statusbar in insert mode.
  211. # Type: QssColor
  212. c.colors.statusbar.insert.bg = 'darkgreen'
  213. # Foreground color of the statusbar in insert mode.
  214. # Type: QssColor
  215. c.colors.statusbar.insert.fg = 'white'
  216. # Background color of the statusbar.
  217. # Type: QssColor
  218. c.colors.statusbar.normal.bg = 'black'
  219. # Foreground color of the statusbar.
  220. # Type: QssColor
  221. c.colors.statusbar.normal.fg = 'white'
  222. # Background color of the statusbar in private browsing mode.
  223. # Type: QssColor
  224. c.colors.statusbar.private.bg = '#666666'
  225. # Foreground color of the statusbar in private browsing mode.
  226. # Type: QssColor
  227. c.colors.statusbar.private.fg = 'white'
  228. # Background color of the progress bar.
  229. # Type: QssColor
  230. c.colors.statusbar.progress.bg = 'white'
  231. # Foreground color of the URL in the statusbar on error.
  232. # Type: QssColor
  233. c.colors.statusbar.url.error.fg = 'orange'
  234. # Default foreground color of the URL in the statusbar.
  235. # Type: QssColor
  236. c.colors.statusbar.url.fg = 'white'
  237. # Foreground color of the URL in the statusbar for hovered links.
  238. # Type: QssColor
  239. c.colors.statusbar.url.hover.fg = 'aqua'
  240. # Foreground color of the URL in the statusbar on successful load
  241. # (http).
  242. # Type: QssColor
  243. c.colors.statusbar.url.success.http.fg = 'white'
  244. # Foreground color of the URL in the statusbar on successful load
  245. # (https).
  246. # Type: QssColor
  247. c.colors.statusbar.url.success.https.fg = 'lime'
  248. # Foreground color of the URL in the statusbar when there's a warning.
  249. # Type: QssColor
  250. c.colors.statusbar.url.warn.fg = 'yellow'
  251. # Background color of the tab bar.
  252. # Type: QtColor
  253. c.colors.tabs.bar.bg = '#555555'
  254. # Background color of unselected even tabs.
  255. # Type: QtColor
  256. c.colors.tabs.even.bg = 'darkgrey'
  257. # Foreground color of unselected even tabs.
  258. # Type: QtColor
  259. c.colors.tabs.even.fg = 'white'
  260. # Color for the tab indicator on errors.
  261. # Type: QtColor
  262. c.colors.tabs.indicator.error = '#ff0000'
  263. # Color gradient start for the tab indicator.
  264. # Type: QtColor
  265. c.colors.tabs.indicator.start = '#0000aa'
  266. # Color gradient end for the tab indicator.
  267. # Type: QtColor
  268. c.colors.tabs.indicator.stop = '#00aa00'
  269. # Color gradient interpolation system for the tab indicator.
  270. # Type: ColorSystem
  271. # Valid values:
  272. # - rgb: Interpolate in the RGB color system.
  273. # - hsv: Interpolate in the HSV color system.
  274. # - hsl: Interpolate in the HSL color system.
  275. # - none: Don't show a gradient.
  276. c.colors.tabs.indicator.system = 'rgb'
  277. # Background color of unselected odd tabs.
  278. # Type: QtColor
  279. c.colors.tabs.odd.bg = 'grey'
  280. # Foreground color of unselected odd tabs.
  281. # Type: QtColor
  282. c.colors.tabs.odd.fg = 'white'
  283. # Background color of selected even tabs.
  284. # Type: QtColor
  285. c.colors.tabs.selected.even.bg = 'black'
  286. # Foreground color of selected even tabs.
  287. # Type: QtColor
  288. c.colors.tabs.selected.even.fg = 'white'
  289. # Background color of selected odd tabs.
  290. # Type: QtColor
  291. c.colors.tabs.selected.odd.bg = 'black'
  292. # Foreground color of selected odd tabs.
  293. # Type: QtColor
  294. c.colors.tabs.selected.odd.fg = 'white'
  295. # Background color for webpages if unset (or empty to use the theme's
  296. # color)
  297. # Type: QtColor
  298. c.colors.webpage.bg = 'white'
  299. # How many commands to save in the command history. 0: no history / -1:
  300. # unlimited
  301. # Type: Int
  302. c.completion.cmd_history_max_items = 100
  303. # The height of the completion, in px or as percentage of the window.
  304. # Type: PercOrInt
  305. c.completion.height = '30%'
  306. # Move on to the next part when there's only one possible completion
  307. # left.
  308. # Type: Bool
  309. c.completion.quick = True
  310. # Padding of scrollbar handle in the completion window (in px).
  311. # Type: Int
  312. c.completion.scrollbar.padding = 2
  313. # Width of the scrollbar in the completion window (in px).
  314. # Type: Int
  315. c.completion.scrollbar.width = 12
  316. # When to show the autocompletion window.
  317. # Type: String
  318. # Valid values:
  319. # - always: Whenever a completion is available.
  320. # - auto: Whenever a completion is requested.
  321. # - never: Never.
  322. c.completion.show = 'auto'
  323. # Shrink the completion to be smaller than the configured size if there
  324. # are no scrollbars.
  325. # Type: Bool
  326. c.completion.shrink = False
  327. # How to format timestamps (e.g. for the history completion).
  328. # Type: TimestampTemplate
  329. c.completion.timestamp_format = '%Y-%m-%d'
  330. # How many URLs to show in the web history. 0: no history / -1:
  331. # unlimited
  332. # Type: Int
  333. c.completion.web_history.max_items = -1
  334. # Whether quitting the application requires a confirmation.
  335. # Type: ConfirmQuit
  336. # Valid values:
  337. # - always: Always show a confirmation.
  338. # - multiple-tabs: Show a confirmation if multiple tabs are opened.
  339. # - downloads: Show a confirmation if downloads are running
  340. # - never: Never show a confirmation.
  341. c.confirm_quit = ['downloads']
  342. # Whether support for the HTML 5 web application cache feature is
  343. # enabled. An application cache acts like an HTTP cache in some sense.
  344. # For documents that use the application cache via JavaScript, the
  345. # loader engine will first ask the application cache for the contents,
  346. # before hitting the network.
  347. # Type: Bool
  348. c.content.cache.appcache = True
  349. # The maximum number of pages to hold in the global memory page cache.
  350. # The Page Cache allows for a nicer user experience when navigating
  351. # forth or back to pages in the forward/back history, by pausing and
  352. # resuming up to _n_ pages. For more information about the feature,
  353. # please refer to: http://webkit.org/blog/427/webkit-page-cache-i-the-
  354. # basics/
  355. # Type: Int
  356. c.content.cache.maximum_pages = 0
  357. # Size of the HTTP network cache. Null to use the default value.
  358. # Type: Int
  359. c.content.cache.size = None
  360. # Control which cookies to accept.
  361. # Type: String
  362. # Valid values:
  363. # - all: Accept all cookies.
  364. # - no-3rdparty: Accept cookies from the same origin only.
  365. # - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain.
  366. # - never: Don't accept cookies at all.
  367. c.content.cookies.accept = 'no-3rdparty'
  368. # Store cookies. Note this option needs a restart with QtWebEngine on Qt
  369. # < 5.9.
  370. # Type: Bool
  371. c.content.cookies.store = True
  372. # Default encoding to use for websites. The encoding must be a string
  373. # describing an encoding such as _utf-8_, _iso-8859-1_, etc.
  374. # Type: String
  375. c.content.default_encoding = 'iso-8859-1'
  376. # Try to pre-fetch DNS entries to speed up browsing.
  377. # Type: Bool
  378. c.content.dns_prefetch = True
  379. # Expand each subframe to its contents. This will flatten all the frames
  380. # to become one scrollable page.
  381. # Type: Bool
  382. c.content.frame_flattening = False
  383. # Allow websites to request geolocations.
  384. # Type: BoolAsk
  385. # Valid values:
  386. # - true
  387. # - false
  388. # - ask
  389. c.content.geolocation = 'ask'
  390. # Value to send in the `Accept-Language` header.
  391. # Type: String
  392. c.content.headers.accept_language = 'en-US,en'
  393. # Set custom headers for qutebrowser HTTP requests.
  394. # Type: Dict
  395. c.content.headers.custom = {}
  396. # Value to send in the `DNT` header. When this is set to true,
  397. # qutebrowser asks websites to not track your identity. If set to null,
  398. # the DNT header is not sent at all.
  399. # Type: Bool
  400. c.content.headers.do_not_track = True
  401. # Send the Referer header. The Referer header tells websites from which
  402. # website you were coming from when visting them.
  403. # Type: String
  404. # Valid values:
  405. # - always: Always send the Referer.
  406. # - never: Never send the Referer. This is not recommended, as some sites may break.
  407. # - same-domain: Only send the Referer for the same domain. This will still protect your privacy, but shouldn't break any sites.
  408. c.content.headers.referer = 'same-domain'
  409. # User agent to send. Unset to send the default.
  410. # Type: String
  411. c.content.headers.user_agent = None
  412. # Whether host blocking is enabled.
  413. # Type: Bool
  414. c.content.host_blocking.enabled = True
  415. # List of URLs of lists which contain hosts to block. The file can be
  416. # in one of the following formats: - An `/etc/hosts`-like file - One
  417. # host per line - A zip-file of any of the above, with either only one
  418. # file, or a file named `hosts` (with any extension).
  419. # Type: List of Url
  420. c.content.host_blocking.lists = ['https://www.malwaredomainlist.com/hostslist/hosts.txt', 'http://someonewhocares.org/hosts/hosts', 'http://winhelp2002.mvps.org/hosts.zip', 'http://malwaredomains.lehigh.edu/files/justdomains.zip', 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext']
  421. # List of domains that should always be loaded, despite being ad-
  422. # blocked. Domains may contain * and ? wildcards and are otherwise
  423. # required to exactly match the requested domain. Local domains are
  424. # always exempt from hostblocking.
  425. # Type: List of String
  426. c.content.host_blocking.whitelist = ['piwik.org']
  427. # Enable or disable hyperlink auditing (`<a ping>`).
  428. # Type: Bool
  429. c.content.hyperlink_auditing = False
  430. # Whether images are automatically loaded in web pages.
  431. # Type: Bool
  432. c.content.images = True
  433. # Show javascript alerts.
  434. # Type: Bool
  435. c.content.javascript.alert = True
  436. # Whether JavaScript can read from or write to the clipboard. With
  437. # QtWebEngine, writing the clipboard as response to a user interaction
  438. # is always allowed.
  439. # Type: Bool
  440. c.content.javascript.can_access_clipboard = False
  441. # Whether JavaScript can close tabs.
  442. # Type: Bool
  443. c.content.javascript.can_close_tabs = False
  444. # Whether JavaScript can open new tabs without user interaction.
  445. # Type: Bool
  446. c.content.javascript.can_open_tabs_automatically = False
  447. # Enables or disables JavaScript.
  448. # Type: Bool
  449. c.content.javascript.enabled = True
  450. # Log levels to use for JavaScript console logging messages. When a
  451. # JavaScript message with the level given in the dictionary key is
  452. # logged, the corresponding dictionary value selects the qutebrowser
  453. # logger to use. On QtWebKit, the "unknown" setting is always used.
  454. # Type: Dict
  455. c.content.javascript.log = {'unknown': 'debug', 'info': 'debug', 'warning': 'debug', 'error': 'debug'}
  456. # Use the standard JavaScript modal dialog for `alert()` and `confirm()`
  457. # Type: Bool
  458. c.content.javascript.modal_dialog = True
  459. # Show javascript prompts.
  460. # Type: Bool
  461. c.content.javascript.prompt = True
  462. # Whether locally loaded documents are allowed to access other local
  463. # urls.
  464. # Type: Bool
  465. c.content.local_content_can_access_file_urls = True
  466. # Whether locally loaded documents are allowed to access remote urls.
  467. # Type: Bool
  468. c.content.local_content_can_access_remote_urls = False
  469. # Whether support for HTML 5 local storage and Web SQL is enabled.
  470. # Type: Bool
  471. c.content.local_storage = True
  472. # Allow websites to record audio/video.
  473. # Type: BoolAsk
  474. # Valid values:
  475. # - true
  476. # - false
  477. # - ask
  478. c.content.media_capture = 'ask'
  479. # Location of a netrc-file for HTTP authentication. If unset, `~/.netrc`
  480. # is used.
  481. # Type: File
  482. c.content.netrc_file = None
  483. # Allow websites to show notifications.
  484. # Type: BoolAsk
  485. # Valid values:
  486. # - true
  487. # - false
  488. # - ask
  489. c.content.notifications = 'ask'
  490. # Enable pdf.js to view PDF files in the browser. Note that the files
  491. # can still be downloaded by clicking the download button in the pdf.js
  492. # viewer.
  493. # Type: Bool
  494. c.content.pdfjs = False
  495. # Enables or disables plugins in Web pages.
  496. # Type: Bool
  497. c.content.plugins = False
  498. # Whether the background color and images are also drawn when the page
  499. # is printed.
  500. # Type: Bool
  501. c.content.print_element_backgrounds = True
  502. # Open new windows in private browsing mode which does not record
  503. # visited pages.
  504. # Type: Bool
  505. c.content.private_browsing = False
  506. # The proxy to use. In addition to the listed values, you can use a
  507. # `socks://...` or `http://...` URL.
  508. # Type: Proxy
  509. # Valid values:
  510. # - system: Use the system wide proxy.
  511. # - none: Don't use any proxy
  512. c.content.proxy = 'system'
  513. # Send DNS requests over the configured proxy.
  514. # Type: Bool
  515. c.content.proxy_dns_requests = True
  516. # Validate SSL handshakes.
  517. # Type: BoolAsk
  518. # Valid values:
  519. # - true
  520. # - false
  521. # - ask
  522. c.content.ssl_strict = False
  523. # A list of user stylesheet filenames to use.
  524. # Type: List of File, or File
  525. c.content.user_stylesheets = None
  526. # Enables or disables WebGL.
  527. # Type: Bool
  528. c.content.webgl = True
  529. # Whether load requests should be monitored for cross-site scripting
  530. # attempts. Suspicious scripts will be blocked and reported in the
  531. # inspector's JavaScript console. Enabling this feature might have an
  532. # impact on performance.
  533. # Type: Bool
  534. c.content.xss_auditing = True
  535. # The directory to save downloads to. If unset, a sensible os-specific
  536. # default is used.
  537. # Type: Directory
  538. c.downloads.location.directory = '~/Downloads'
  539. # Prompt the user for the download location. If set to false,
  540. # `downloads.location.directory` will be used.
  541. # Type: Bool
  542. c.downloads.location.prompt = False
  543. # Remember the last used download directory.
  544. # Type: Bool
  545. c.downloads.location.remember = True
  546. # What to display in the download filename input.
  547. # Type: String
  548. # Valid values:
  549. # - path: Show only the download path.
  550. # - filename: Show only download filename.
  551. # - both: Show download path and filename.
  552. c.downloads.location.suggestion = 'path'
  553. # The default program used to open downloads. If null, the default
  554. # internal handler is used. Any `{}` in the string will be expanded to
  555. # the filename, else the filename will be appended.
  556. # Type: String
  557. c.downloads.open_dispatcher = None
  558. # Where to show the downloaded files.
  559. # Type: VerticalPosition
  560. # Valid values:
  561. # - top
  562. # - bottom
  563. c.downloads.position = 'top'
  564. # Number of milliseconds to wait before removing finished downloads. If
  565. # set to -1, downloads are never removed.
  566. # Type: Int
  567. c.downloads.remove_finished = 1000
  568. # The editor (and arguments) to use for the `open-editor` command. `{}`
  569. # gets replaced by the filename of the file to be edited.
  570. # Type: ShellCommand
  571. c.editor.command = ['kitty', 'nvim', '-f', '{file}']
  572. # Encoding to use for the editor.
  573. # Type: Encoding
  574. c.editor.encoding = 'utf-8'
  575. # Font used in the completion categories.
  576. # Type: Font
  577. c.fonts.completion.category = 'bold 10pt monospace'
  578. # Font used in the completion widget.
  579. # Type: Font
  580. c.fonts.completion.entry = '10pt monospace'
  581. # Font used for the debugging console.
  582. # Type: QtFont
  583. c.fonts.debug_console = '10pt monospace'
  584. # Font used for the downloadbar.
  585. # Type: Font
  586. c.fonts.downloads = '10pt monospace'
  587. # Font used for the hints.
  588. # Type: Font
  589. c.fonts.hints = 'bold 12pt monospace'
  590. # Font used in the keyhint widget.
  591. # Type: Font
  592. c.fonts.keyhint = '10pt monospace'
  593. # Font used for error messages.
  594. # Type: Font
  595. c.fonts.messages.error = '10pt monospace'
  596. # Font used for info messages.
  597. # Type: Font
  598. c.fonts.messages.info = '10pt monospace'
  599. # Font used for warning messages.
  600. # Type: Font
  601. c.fonts.messages.warning = '10pt monospace'
  602. # Default monospace fonts. Whenever "monospace" is used in a font
  603. # setting, it's replaced with the fonts listed here.
  604. # Type: Font
  605. c.fonts.monospace = '"Monofur for Powerline", Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal'
  606. # Font used for prompts.
  607. # Type: Font
  608. c.fonts.prompts = '10pt monospace'
  609. # Font used in the statusbar.
  610. # Type: Font
  611. c.fonts.statusbar = '10pt monospace'
  612. # Font used in the tab bar.
  613. # Type: QtFont
  614. c.fonts.tabs = '10pt monospace'
  615. # Font family for cursive fonts.
  616. # Type: FontFamily
  617. c.fonts.web.family.cursive = ''
  618. # Font family for fantasy fonts.
  619. # Type: FontFamily
  620. c.fonts.web.family.fantasy = ''
  621. # Font family for fixed fonts.
  622. # Type: FontFamily
  623. c.fonts.web.family.fixed = ''
  624. # Font family for sans-serif fonts.
  625. # Type: FontFamily
  626. c.fonts.web.family.sans_serif = ''
  627. # Font family for serif fonts.
  628. # Type: FontFamily
  629. c.fonts.web.family.serif = ''
  630. # Font family for standard fonts.
  631. # Type: FontFamily
  632. c.fonts.web.family.standard = ''
  633. # The default font size for regular text.
  634. # Type: Int
  635. c.fonts.web.size.default = 16
  636. # The default font size for fixed-pitch text.
  637. # Type: Int
  638. c.fonts.web.size.default_fixed = 13
  639. # The hard minimum font size.
  640. # Type: Int
  641. c.fonts.web.size.minimum = 0
  642. # The minimum logical font size that is applied when zooming out.
  643. # Type: Int
  644. c.fonts.web.size.minimum_logical = 6
  645. # Controls when a hint can be automatically followed without pressing
  646. # Enter.
  647. # Type: String
  648. # Valid values:
  649. # - always: Auto-follow whenever there is only a single hint on a page.
  650. # - unique-match: Auto-follow whenever there is a unique non-empty match in either the hint string (word mode) or filter (number mode).
  651. # - full-match: Follow the hint when the user typed the whole hint (letter, word or number mode) or the element's text (only in number mode).
  652. # - never: The user will always need to press Enter to follow a hint.
  653. c.hints.auto_follow = 'unique-match'
  654. # A timeout (in milliseconds) to ignore normal-mode key bindings after a
  655. # successful auto-follow.
  656. # Type: Int
  657. c.hints.auto_follow_timeout = 0
  658. # CSS border value for hints.
  659. # Type: String
  660. c.hints.border = '1px solid black'
  661. # Chars used for hint strings.
  662. # Type: UniqueCharString
  663. c.hints.chars = 'tsrn'
  664. # The dictionary file to be used by the word hints.
  665. # Type: File
  666. c.hints.dictionary = '/usr/share/dict/words'
  667. # Which implementation to use to find elements to hint.
  668. # Type: String
  669. # Valid values:
  670. # - javascript: Better but slower
  671. # - python: Slightly worse but faster
  672. c.hints.find_implementation = 'python'
  673. # Hide unmatched hints in rapid mode.
  674. # Type: Bool
  675. c.hints.hide_unmatched_rapid_hints = True
  676. # Minimum number of chars used for hint strings.
  677. # Type: Int
  678. c.hints.min_chars = 1
  679. # Mode to use for hints.
  680. # Type: String
  681. # Valid values:
  682. # - number: Use numeric hints. (In this mode you can also type letters from the hinted element to filter and reduce the number of elements that are hinted.)
  683. # - letter: Use the chars in the `hints.chars` setting.
  684. # - word: Use hints words based on the html elements and the extra words.
  685. c.hints.mode = 'letter'
  686. # A comma-separated list of regexes to use for 'next' links.
  687. # Type: List of Regex
  688. c.hints.next_regexes = ['\\bnext\\b', '\\bmore\\b', '\\bnewer\\b', '\\b[>→≫]\\b', '\\b(>>|»)\\b', '\\bcontinue\\b']
  689. # A comma-separated list of regexes to use for 'prev' links.
  690. # Type: List of Regex
  691. c.hints.prev_regexes = ['\\bprev(ious)?\\b', '\\bback\\b', '\\bolder\\b', '\\b[<←≪]\\b', '\\b(<<|«)\\b']
  692. # Scatter hint key chains (like Vimium) or not (like dwb). Ignored for
  693. # number hints.
  694. # Type: Bool
  695. c.hints.scatter = False
  696. # Make chars in hint strings uppercase.
  697. # Type: Bool
  698. c.hints.uppercase = False
  699. # The maximum time in minutes between two history items for them to be
  700. # considered being from the same browsing session. Items with less time
  701. # between them are grouped when being displayed in `:history`. Use -1 to
  702. # disable separation.
  703. # Type: Int
  704. c.history_gap_interval = 30
  705. # Find text on a page case-insensitively.
  706. # Type: String
  707. # Valid values:
  708. # - always: Search case-insensitively
  709. # - never: Search case-sensitively
  710. # - smart: Search case-sensitively if there are capital chars
  711. c.search.ignore_case = 'smart'
  712. # Forward unbound keys to the webview in normal mode.
  713. # Type: String
  714. # Valid values:
  715. # - all: Forward all unbound keys.
  716. # - auto: Forward unbound non-alphanumeric keys.
  717. # - none: Don't forward any keys.
  718. c.input.forward_unbound_keys = 'auto'
  719. # Leave insert mode if a non-editable element is clicked.
  720. # Type: Bool
  721. c.input.insert_mode.auto_leave = True
  722. # Automatically enter insert mode if an editable element is focused
  723. # after loading the page.
  724. # Type: Bool
  725. c.input.insert_mode.auto_load = False
  726. # Switch to insert mode when clicking flash and other plugins.
  727. # Type: Bool
  728. c.input.insert_mode.plugins = False
  729. # Include hyperlinks in the keyboard focus chain when tabbing.
  730. # Type: Bool
  731. c.input.links_included_in_focus_chain = True
  732. # Timeout (in milliseconds) for partially typed key bindings. If the
  733. # current input forms only partial matches, the keystring will be
  734. # cleared after this time.
  735. # Type: Int
  736. c.input.partial_timeout = 5000
  737. # Enable Opera-like mouse rocker gestures. This disables the context
  738. # menu.
  739. # Type: Bool
  740. c.input.rocker_gestures = False
  741. # Enable Spatial Navigation. Spatial navigation consists in the ability
  742. # to navigate between focusable elements in a Web page, such as
  743. # hyperlinks and form controls, by using Left, Right, Up and Down arrow
  744. # keys. For example, if a user presses the Right key, heuristics
  745. # determine whether there is an element he might be trying to reach
  746. # towards the right and which element he probably wants.
  747. # Type: Bool
  748. c.input.spatial_navigation = False
  749. # Keychains that shouldn't be shown in the keyhint dialog. Globs are
  750. # supported, so `;*` will blacklist all keychains starting with `;`. Use
  751. # `*` to disable keyhints.
  752. # Type: List of String
  753. c.keyhint.blacklist = []
  754. # Time from pressing a key to seeing the keyhint dialog (ms).
  755. # Type: Int
  756. c.keyhint.delay = 500
  757. # Time (in ms) to show messages in the statusbar for. Set to 0 to never
  758. # clear messages.
  759. # Type: Int
  760. c.messages.timeout = 2000
  761. # How to open links in an existing instance if a new one is launched.
  762. # This happens when e.g. opening a link from a terminal. See
  763. # `new_instance_open_target_window` to customize in which window the
  764. # link is opened in.
  765. # Type: String
  766. # Valid values:
  767. # - tab: Open a new tab in the existing window and activate the window.
  768. # - tab-bg: Open a new background tab in the existing window and activate the window.
  769. # - tab-silent: Open a new tab in the existing window without activating the window.
  770. # - tab-bg-silent: Open a new background tab in the existing window without activating the window.
  771. # - window: Open in a new window.
  772. c.new_instance_open_target = 'tab'
  773. # Which window to choose when opening links as new tabs. When
  774. # `new_instance_open_target` is not set to `window`, this is ignored.
  775. # Type: String
  776. # Valid values:
  777. # - first-opened: Open new tabs in the first (oldest) opened window.
  778. # - last-opened: Open new tabs in the last (newest) opened window.
  779. # - last-focused: Open new tabs in the most recently focused window.
  780. # - last-visible: Open new tabs in the most recently visible window.
  781. c.new_instance_open_target_window = 'last-focused'
  782. # Show a filebrowser in upload/download prompts.
  783. # Type: Bool
  784. c.prompt.filebrowser = True
  785. # The rounding radius for the edges of prompts.
  786. # Type: Int
  787. c.prompt.radius = 8
  788. # Additional arguments to pass to Qt, without leading `--`. With
  789. # QtWebEngine, some Chromium arguments (see
  790. # https://peter.sh/experiments/chromium-command-line-switches/ for a
  791. # list) will work. This setting requires a restart.
  792. # Type: List of String
  793. c.qt.args = []
  794. # Force a Qt platform to use. This sets the `QT_QPA_PLATFORM`
  795. # environment variable and is useful to force using the XCB plugin when
  796. # running QtWebEngine on Wayland.
  797. # Type: String
  798. c.qt.force_platform = None
  799. # Force software rendering for QtWebEngine. This is needed for
  800. # QtWebEngine to work with Nouveau drivers. This setting requires a
  801. # restart.
  802. # Type: Bool
  803. c.qt.force_software_rendering = "none"
  804. # Show a scrollbar.
  805. # Type: Bool
  806. c.scrolling.bar = "when-searching"
  807. # Enable smooth scrolling for web pages. Note smooth scrolling does not
  808. # work with the `:scroll-px` command.
  809. # Type: Bool
  810. c.scrolling.smooth = True
  811. # The name of the session to save by default. If this is set to null,
  812. # the session which was last loaded is saved.
  813. # Type: SessionName
  814. c.session.default_name = None
  815. # Spell checking languages. You can check for available languages and
  816. # install dictionaries using scripts/install_dict.py. Run the script
  817. # with -h/--help for instructions.
  818. # Type: List of String
  819. # Valid values:
  820. # - af-ZA: Afrikaans (South Africa)
  821. # - bg-BG: Bulgarian (Bulgaria)
  822. # - ca-ES: Catalan (Spain)
  823. # - cs-CZ: Czech (Czech Republic)
  824. # - da-DK: Danish (Denmark)
  825. # - de-DE: German (Germany)
  826. # - el-GR: Greek (Greece)
  827. # - en-CA: English (Canada)
  828. # - en-GB: English (United Kingdom)
  829. # - en-US: English (United States)
  830. # - es-ES: Spanish (Spain)
  831. # - et-EE: Estonian (Estonia)
  832. # - fa-IR: Farsi (Iran)
  833. # - fo-FO: Faroese (Faroe Islands)
  834. # - fr-FR: French (France)
  835. # - he-IL: Hebrew (Israel)
  836. # - hi-IN: Hindi (India)
  837. # - hr-HR: Croatian (Croatia)
  838. # - hu-HU: Hungarian (Hungary)
  839. # - id-ID: Indonesian (Indonesia)
  840. # - it-IT: Italian (Italy)
  841. # - ko: Korean
  842. # - lt-LT: Lithuanian (Lithuania)
  843. # - lv-LV: Latvian (Latvia)
  844. # - nb-NO: Norwegian (Norway)
  845. # - nl-NL: Dutch (Netherlands)
  846. # - pl-PL: Polish (Poland)
  847. # - pt-BR: Portuguese (Brazil)
  848. # - pt-PT: Portuguese (Portugal)
  849. # - ro-RO: Romanian (Romania)
  850. # - ru-RU: Russian (Russia)
  851. # - sh: Serbo-Croatian
  852. # - sk-SK: Slovak (Slovakia)
  853. # - sl-SI: Slovenian (Slovenia)
  854. # - sq: Albanian
  855. # - sr: Serbian
  856. # - sv-SE: Swedish (Sweden)
  857. # - ta-IN: Tamil (India)
  858. # - tg-TG: Tajik (Tajikistan)
  859. # - tr-TR: Turkish (Turkey)
  860. # - uk-UA: Ukrainian (Ukraine)
  861. # - vi-VN: Vietnamese (Viet Nam)
  862. c.spellcheck.languages = ["en-US", "fr-FR"]
  863. # Hide the statusbar unless a message is shown.
  864. # Type: Bool
  865. c.statusbar.hide = False
  866. # Padding for the statusbar.
  867. # Type: Padding
  868. c.statusbar.padding = {'top': 1, 'bottom': 1, 'left': 0, 'right': 0}
  869. # The position of the status bar.
  870. # Type: VerticalPosition
  871. # Valid values:
  872. # - top
  873. # - bottom
  874. c.statusbar.position = 'bottom'
  875. # Open new tabs (middleclick/ctrl+click) in the background.
  876. # Type: Bool
  877. c.tabs.background = True
  878. # On which mouse button to close tabs.
  879. # Type: String
  880. # Valid values:
  881. # - right: Close tabs on right-click.
  882. # - middle: Close tabs on middle-click.
  883. # - none: Don't close tabs using the mouse.
  884. c.tabs.close_mouse_button = 'middle'
  885. # Scaling for favicons in the tab bar. The tab size is unchanged, so big
  886. # favicons also require extra `tabs.padding`.
  887. # Type: Float
  888. c.tabs.favicons.scale = 1.2
  889. # Show favicons in the tab bar.
  890. # Type: Bool
  891. c.tabs.favicons.show = 'always'
  892. # Padding for tab indicators
  893. # Type: Padding
  894. c.tabs.indicator.padding = {'top': 2, 'bottom': 2, 'left': 0, 'right': 4}
  895. # Behavior when the last tab is closed.
  896. # Type: String
  897. # Valid values:
  898. # - ignore: Don't do anything.
  899. # - blank: Load a blank page.
  900. # - startpage: Load the start page.
  901. # - default-page: Load the default page.
  902. # - close: Close the window.
  903. c.tabs.last_close = 'ignore'
  904. # Switch between tabs using the mouse wheel.
  905. # Type: Bool
  906. c.tabs.mousewheel_switching = True
  907. # How new tabs opened from another tab are positioned.
  908. # Type: NewTabPosition
  909. # Valid values:
  910. # - prev: Before the current tab.
  911. # - next: After the current tab.
  912. # - first: At the beginning.
  913. # - last: At the end.
  914. c.tabs.new_position.related = 'next'
  915. # How new tabs which aren't opened from another tab are positioned.
  916. # Type: NewTabPosition
  917. # Valid values:
  918. # - prev: Before the current tab.
  919. # - next: After the current tab.
  920. # - first: At the beginning.
  921. # - last: At the end.
  922. c.tabs.new_position.unrelated = 'next'
  923. # Padding around text for tabs
  924. # Type: Padding
  925. c.tabs.padding = {'top': 0, 'bottom': 0, 'left': 5, 'right': 5}
  926. # The position of the tab bar.
  927. # Type: Position
  928. # Valid values:
  929. # - top
  930. # - bottom
  931. # - left
  932. # - right
  933. c.tabs.position = 'top'
  934. # Which tab to select when the focused tab is removed.
  935. # Type: SelectOnRemove
  936. # Valid values:
  937. # - prev: Select the tab which came before the closed one (left in horizontal, above in vertical).
  938. # - next: Select the tab which came after the closed one (right in horizontal, below in vertical).
  939. # - last-used: Select the previously selected tab.
  940. c.tabs.select_on_remove = 'last-used'
  941. # When to show the tab bar.
  942. # Type: String
  943. # Valid values:
  944. # - always: Always show the tab bar.
  945. # - never: Always hide the tab bar.
  946. # - multiple: Hide the tab bar if only one tab is open.
  947. # - switching: Show the tab bar when switching tabs.
  948. c.tabs.show = 'always'
  949. # Time to show the tab bar before hiding it when tabs.show is set to
  950. # 'switching'.
  951. # Type: Int
  952. c.tabs.show_switching_delay = 800
  953. # Open a new window for every tab.
  954. # Type: Bool
  955. c.tabs.tabs_are_windows = False
  956. # Alignment of the text inside of tabs.
  957. # Type: TextAlignment
  958. # Valid values:
  959. # - left
  960. # - right
  961. # - center
  962. c.tabs.title.alignment = 'left'
  963. # The format to use for the tab title. The following placeholders are
  964. # defined: * `{perc}`: The percentage as a string like `[10%]`. *
  965. # `{perc_raw}`: The raw percentage, e.g. `10` * `{title}`: The title of
  966. # the current web page * `{title_sep}`: The string ` - ` if a title is
  967. # set, empty otherwise. * `{index}`: The index of this tab. * `{id}`:
  968. # The internal tab ID of this tab. * `{scroll_pos}`: The page scroll
  969. # position. * `{host}`: The host of the current web page. * `{backend}`:
  970. # Either ''webkit'' or ''webengine'' * `{private}` : Indicates when
  971. # private mode is enabled.
  972. # Type: FormatString
  973. c.tabs.title.format = '{title}'
  974. # The format to use for the tab title for pinned tabs. The same
  975. # placeholders like for `tabs.title.format` are defined.
  976. # Type: FormatString
  977. c.tabs.title.format_pinned = ''
  978. # The width of the tab bar if it's vertical, in px or as percentage of
  979. # the window.
  980. # Type: PercOrInt
  981. c.tabs.width = '20%'
  982. # Width of the progress indicator (0 to disable).
  983. # Type: Int
  984. c.tabs.indicator.width = 0
  985. # Whether to wrap when changing tabs.
  986. # Type: Bool
  987. c.tabs.wrap = True
  988. # Whether to start a search when something else than a URL is entered.
  989. # Type: String
  990. # Valid values:
  991. # - naive: Use simple/naive check.
  992. # - dns: Use DNS requests (might be slow!).
  993. # - never: Never search automatically.
  994. c.url.auto_search = 'naive'
  995. # The page to open if :open -t/-b/-w is used without URL. Use
  996. # `about:blank` for a blank page.
  997. # Type: FuzzyUrl
  998. c.url.default_page = 'https://start.duckduckgo.com/'
  999. # The URL segments where `:navigate increment/decrement` will search for
  1000. # a number.
  1001. # Type: FlagList
  1002. # Valid values:
  1003. # - host
  1004. # - path
  1005. # - query
  1006. # - anchor
  1007. c.url.incdec_segments = ['path', 'query']
  1008. # Definitions of search engines which can be used via the address bar.
  1009. # Maps a searchengine name (such as `DEFAULT`, or `ddg`) to a URL with a
  1010. # `{}` placeholder. The placeholder will be replaced by the search term,
  1011. # use `{{` and `}}` for literal `{`/`}` signs. The searchengine named
  1012. # `DEFAULT` is used when `url.auto_search` is turned on and something
  1013. # else than a URL was entered to be opened. Other search engines can be
  1014. # used by prepending the search engine name to the search term, e.g.
  1015. # `:open google qutebrowser`.
  1016. # Type: Dict
  1017. c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}'}
  1018. # The page(s) to open at the start.
  1019. # Type: List of FuzzyUrl, or FuzzyUrl
  1020. c.url.start_pages = 'https://start.duckduckgo.com'
  1021. # The URL parameters to strip with `:yank url`.
  1022. # Type: List of String
  1023. c.url.yank_ignored_parameters = ['ref', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']
  1024. # Hide the window decoration when using wayland (requires restart)
  1025. # Type: Bool
  1026. c.window.hide_decoration = False
  1027. # The format to use for the window title. The following placeholders are
  1028. # defined: * `{perc}`: The percentage as a string like `[10%]`. *
  1029. # `{perc_raw}`: The raw percentage, e.g. `10` * `{title}`: The title of
  1030. # the current web page * `{title_sep}`: The string ` - ` if a title is
  1031. # set, empty otherwise. * `{id}`: The internal window ID of this window.
  1032. # * `{scroll_pos}`: The page scroll position. * `{host}`: The host of
  1033. # the current web page. * `{backend}`: Either ''webkit'' or
  1034. # ''webengine'' * `{private}` : Indicates when private mode is enabled.
  1035. # Type: FormatString
  1036. c.window.title_format = '{perc}{title}'
  1037. # The default zoom level.
  1038. # Type: Perc
  1039. c.zoom.default = '100%'
  1040. # The available zoom levels.
  1041. # Type: List of Perc
  1042. c.zoom.levels = ['25%', '33%', '50%', '67%', '75%', '90%', '100%', '110%', '125%', '150%', '175%', '200%', '250%', '300%', '400%', '500%']
  1043. # How much to divide the mouse wheel movements to translate them into
  1044. # zoom increments.
  1045. # Type: Int
  1046. c.zoom.mouse_divider = 512
  1047. # Whether the zoom factor on a frame applies only to the text or to all
  1048. # content.
  1049. # Type: Bool
  1050. c.zoom.text_only = False
  1051. # Bindings for normal mode
  1052. config.bind("P", 'spawn mpv {url}')
  1053. config.bind("P", 'hint links spawn mpv {hint-url}')
  1054. config.bind("<space>", 'spawn --userscript password_fill')
  1055. config.bind("'", 'enter-mode jump_mark')
  1056. config.bind('+', 'zoom-in')
  1057. config.bind('-', 'zoom-out')
  1058. config.bind('.', 'repeat-command')
  1059. config.bind('/', 'set-cmd-text /')
  1060. config.bind(':', 'set-cmd-text :')
  1061. config.bind(';I', 'hint images tab')
  1062. config.bind(';O', 'hint links fill :open -t -r {hint-url}')
  1063. config.bind(';R', 'hint --rapid links window')
  1064. config.bind(';Y', 'hint links yank-primary')
  1065. config.bind(';b', 'hint all tab-bg')
  1066. config.bind(';d', 'hint links download')
  1067. config.bind(';r', 'hint all tab-fg')
  1068. config.bind(';h', 'hint all hover')
  1069. config.bind(';i', 'hint images')
  1070. config.bind(';o', 'hint links fill :open {hint-url}')
  1071. config.bind(';f', 'hint --rapid links tab-bg')
  1072. config.bind(';t', 'hint inputs')
  1073. config.bind(';y', 'hint links yank')
  1074. config.bind('<Alt-1>', 'tab-focus 1')
  1075. config.bind('<Alt-2>', 'tab-focus 2')
  1076. config.bind('<Alt-3>', 'tab-focus 3')
  1077. config.bind('<Alt-4>', 'tab-focus 4')
  1078. config.bind('<Alt-5>', 'tab-focus 5')
  1079. config.bind('<Alt-6>', 'tab-focus 6')
  1080. config.bind('<Alt-7>', 'tab-focus 7')
  1081. config.bind('<Alt-8>', 'tab-focus 8')
  1082. config.bind('<Alt-9>', 'tab-focus -1')
  1083. config.bind('<Ctrl-A>', 'navigate increment')
  1084. config.bind('<Ctrl-Alt-p>', 'print')
  1085. config.bind('<Ctrl-D>', 'scroll-page 0 -1')
  1086. config.bind('S', 'scroll-page 0 0.5')
  1087. config.bind('<Ctrl-F5>', 'reload -f')
  1088. config.bind('<Ctrl-S>', 'scroll-page 0 1')
  1089. config.bind('<Ctrl-N>', 'open -w')
  1090. config.bind('l', 'tab-next')
  1091. config.bind('v', 'tab-prev')
  1092. config.bind('<Ctrl-Q>', 'quit')
  1093. config.bind('<Ctrl-Return>', 'follow-selected -t')
  1094. config.bind('<Ctrl-Shift-N>', 'open -p')
  1095. config.bind('<Ctrl-Shift-T>', 'undo')
  1096. config.bind('<Ctrl-Shift-W>', 'close')
  1097. config.bind('<Ctrl-T>', 'open -t')
  1098. config.bind('<Ctrl-Tab>', 'tab-focus last')
  1099. config.bind('D', 'scroll-page 0 -0.5')
  1100. config.bind('<Ctrl-V>', 'enter-mode passthrough')
  1101. config.bind('<Ctrl-W>', 'tab-close')
  1102. config.bind('<Ctrl-X>', 'navigate decrement')
  1103. config.bind('<Ctrl-^>', 'tab-focus last')
  1104. config.bind('<Ctrl-h>', 'home')
  1105. config.bind('<Ctrl-p>', 'tab-pin')
  1106. config.bind('<Ctrl-s>', 'stop')
  1107. config.bind('<Escape>', 'clear-keychain ;; search ;; fullscreen --leave')
  1108. config.bind('<F11>', 'fullscreen')
  1109. config.bind('m', 'reload')
  1110. config.bind('<Return>', 'follow-selected')
  1111. config.bind('<back>', 'back')
  1112. config.bind('<forward>', 'forward')
  1113. config.bind('=', 'zoom')
  1114. config.bind('?', 'set-cmd-text ?')
  1115. config.bind('@', 'run-macro')
  1116. config.bind('B', 'set-cmd-text -s :quickmark-load -t')
  1117. config.bind('F', 'hint all tab')
  1118. config.bind('G', 'scroll-to-perc')
  1119. config.bind('gt', 'back')
  1120. config.bind('gr', 'forward')
  1121. config.bind('M', 'bookmark-add')
  1122. config.bind('N', 'search-prev')
  1123. config.bind('j', 'set-cmd-text -s :open -t ')
  1124. config.bind('PP', 'open -t -- {primary}')
  1125. config.bind('Pp', 'open -t -- {clipboard}')
  1126. config.bind('l', 'tab-focus')
  1127. config.bind('ZQ', 'quit')
  1128. config.bind('ZZ', 'quit --save')
  1129. config.bind('[[', 'navigate prev')
  1130. config.bind(']]', 'navigate next')
  1131. config.bind('`', 'enter-mode set_mark')
  1132. config.bind('ad', 'download-cancel')
  1133. config.bind('b', 'set-cmd-text -s :quickmark-load')
  1134. config.bind('cd', 'download-clear')
  1135. config.bind('q', 'tab-close')
  1136. config.bind('f', 'hint')
  1137. config.bind('g$', 'tab-focus -1')
  1138. config.bind('g0', 'tab-focus 1')
  1139. config.bind('gB', 'set-cmd-text -s :bookmark-load -t')
  1140. config.bind('gc', 'tab-clone')
  1141. config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}')
  1142. config.bind('gU', 'navigate up -t')
  1143. config.bind('g^', 'tab-focus 1')
  1144. config.bind('ga', 'open -t')
  1145. config.bind('gb', 'set-cmd-text -s :bookmark-load')
  1146. config.bind('gd', 'download')
  1147. config.bind('gf', 'view-source')
  1148. config.bind('gg', 'scroll-to-perc 0')
  1149. config.bind('gv', 'tab-move -')
  1150. config.bind('gm', 'tab-move')
  1151. config.bind('go', 'set-cmd-text :open {url:pretty}')
  1152. config.bind('gl', 'tab-move +')
  1153. config.bind('gu', 'navigate up')
  1154. config.bind('t', 'scroll left')
  1155. config.bind('i', 'enter-mode insert')
  1156. config.bind('s', 'scroll down')
  1157. config.bind('d', 'scroll up')
  1158. config.bind('r', 'scroll right')
  1159. config.bind('M', 'quickmark-save')
  1160. config.bind('n', 'search-next')
  1161. config.bind('J', 'set-cmd-text -s :open ')
  1162. config.bind('pP', 'open -- {primary}')
  1163. config.bind('pp', 'open -- {clipboard}')
  1164. config.bind('gT', 'back -t')
  1165. config.bind('gR', 'forward -t')
  1166. config.bind('h', 'undo')
  1167. config.bind('c', 'enter-mode caret')
  1168. config.bind('wB', 'set-cmd-text -s :bookmark-load -w')
  1169. config.bind('wO', 'set-cmd-text :open -w {url:pretty}')
  1170. config.bind('wP', 'open -w -- {primary}')
  1171. config.bind('wb', 'set-cmd-text -s :quickmark-load -w')
  1172. config.bind('wf', 'hint all window')
  1173. config.bind('gw', 'back -w')
  1174. config.bind('wi', 'inspector')
  1175. config.bind('wl', 'forward -w')
  1176. config.bind('wo', 'set-cmd-text -s :open -w')
  1177. config.bind('wp', 'open -w -- {clipboard}')
  1178. config.bind('xO', 'set-cmd-text :open -b -r {url:pretty}')
  1179. config.bind('xb', 'config-cycle statusbar.hide')
  1180. config.bind('xo', 'set-cmd-text -s :open -b')
  1181. config.bind('xt', 'config-cycle tabs.show always switching')
  1182. config.bind('xx', 'config-cycle statusbar.hide ;; config-cycle tabs.show always switching')
  1183. config.bind('yD', 'yank domain -s')
  1184. config.bind('yP', 'yank pretty-url -s')
  1185. config.bind('yT', 'yank title -s')
  1186. config.bind('yY', 'yank -s')
  1187. config.bind('yd', 'yank domain')
  1188. config.bind('yp', 'yank pretty-url')
  1189. config.bind('yt', 'yank title')
  1190. config.bind('yy', 'yank')
  1191. config.bind('{{', 'navigate prev -t')
  1192. config.bind('}}', 'navigate next -t')
  1193. # Bindings for caret mode
  1194. config.bind('$', 'move-to-end-of-line', mode='caret')
  1195. config.bind('0', 'move-to-start-of-line', mode='caret')
  1196. config.bind('<Ctrl-Space>', 'drop-selection', mode='caret')
  1197. config.bind('<Escape>', 'leave-mode', mode='caret')
  1198. config.bind('<Return>', 'yank selection', mode='caret')
  1199. config.bind('<Space>', 'toggle-selection', mode='caret')
  1200. config.bind('G', 'move-to-end-of-document', mode='caret')
  1201. config.bind('H', 'scroll left', mode='caret')
  1202. config.bind('J', 'scroll down', mode='caret')
  1203. config.bind('K', 'scroll up', mode='caret')
  1204. config.bind('L', 'scroll right', mode='caret')
  1205. config.bind('Y', 'yank selection -s', mode='caret')
  1206. config.bind('[', 'move-to-start-of-prev-block', mode='caret')
  1207. config.bind(']', 'move-to-start-of-next-block', mode='caret')
  1208. config.bind('b', 'move-to-prev-word', mode='caret')
  1209. config.bind('c', 'enter-mode normal', mode='caret')
  1210. config.bind('e', 'move-to-end-of-word', mode='caret')
  1211. config.bind('gg', 'move-to-start-of-document', mode='caret')
  1212. config.bind('h', 'move-to-prev-char', mode='caret')
  1213. config.bind('j', 'move-to-next-line', mode='caret')
  1214. config.bind('k', 'move-to-prev-line', mode='caret')
  1215. config.bind('l', 'move-to-next-char', mode='caret')
  1216. config.bind('v', 'toggle-selection', mode='caret')
  1217. config.bind('w', 'move-to-next-word', mode='caret')
  1218. config.bind('y', 'yank selection', mode='caret')
  1219. config.bind('{', 'move-to-end-of-prev-block', mode='caret')
  1220. config.bind('}', 'move-to-end-of-next-block', mode='caret')
  1221. # Bindings for command mode
  1222. config.bind('<Alt-B>', 'rl-backward-word', mode='command')
  1223. config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='command')
  1224. config.bind('<Alt-D>', 'rl-kill-word', mode='command')
  1225. config.bind('<Alt-F>', 'rl-forward-word', mode='command')
  1226. config.bind('<Ctrl-?>', 'rl-delete-char', mode='command')
  1227. config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='command')
  1228. config.bind('<Ctrl-B>', 'rl-backward-char', mode='command')
  1229. config.bind('<Ctrl-D>', 'completion-item-del', mode='command')
  1230. config.bind('<Ctrl-E>', 'rl-end-of-line', mode='command')
  1231. config.bind('<Ctrl-F>', 'rl-forward-char', mode='command')
  1232. config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='command')
  1233. config.bind('<Ctrl-K>', 'rl-kill-line', mode='command')
  1234. config.bind('<Ctrl-N>', 'command-history-next', mode='command')
  1235. config.bind('<Ctrl-P>', 'command-history-prev', mode='command')
  1236. config.bind('<Ctrl-Shift-Tab>', 'completion-item-focus prev-category', mode='command')
  1237. config.bind('<Ctrl-Tab>', 'completion-item-focus next-category', mode='command')
  1238. config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='command')
  1239. config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='command')
  1240. config.bind('<Ctrl-Y>', 'rl-yank', mode='command')
  1241. config.bind('<Down>', 'command-history-next', mode='command')
  1242. config.bind('<Escape>', 'leave-mode', mode='command')
  1243. config.bind('<Return>', 'command-accept', mode='command')
  1244. config.bind('<Shift-Delete>', 'completion-item-del', mode='command')
  1245. config.bind('<Shift-Tab>', 'completion-item-focus prev', mode='command')
  1246. config.bind('<Tab>', 'completion-item-focus next', mode='command')
  1247. config.bind('<Up>', 'command-history-prev', mode='command')
  1248. # Bindings for hint mode
  1249. config.bind('<Ctrl-B>', 'hint all tab-bg', mode='hint')
  1250. config.bind('<Ctrl-F>', 'hint links', mode='hint')
  1251. config.bind('<Ctrl-R>', 'hint --rapid links tab-bg', mode='hint')
  1252. config.bind('<Escape>', 'leave-mode', mode='hint')
  1253. config.bind('<Return>', 'follow-hint', mode='hint')
  1254. # Bindings for insert mode
  1255. config.bind('<Ctrl-E>', 'open-editor', mode='insert')
  1256. config.bind('<Escape>', 'leave-mode', mode='insert')
  1257. config.bind('<Shift-Ins>', 'insert-text {primary}', mode='insert')
  1258. # Bindings for passthrough mode
  1259. config.bind('<Ctrl-V>', 'leave-mode', mode='passthrough')
  1260. # Bindings for prompt mode
  1261. config.bind('<Alt-B>', 'rl-backward-word', mode='prompt')
  1262. config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='prompt')
  1263. config.bind('<Alt-D>', 'rl-kill-word', mode='prompt')
  1264. config.bind('<Alt-F>', 'rl-forward-word', mode='prompt')
  1265. config.bind('<Ctrl-?>', 'rl-delete-char', mode='prompt')
  1266. config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='prompt')
  1267. config.bind('<Ctrl-B>', 'rl-backward-char', mode='prompt')
  1268. config.bind('<Ctrl-E>', 'rl-end-of-line', mode='prompt')
  1269. config.bind('<Ctrl-F>', 'rl-forward-char', mode='prompt')
  1270. config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='prompt')
  1271. config.bind('<Ctrl-K>', 'rl-kill-line', mode='prompt')
  1272. config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='prompt')
  1273. config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='prompt')
  1274. config.bind('<Ctrl-X>', 'prompt-open-download', mode='prompt')
  1275. config.bind('<Ctrl-Y>', 'rl-yank', mode='prompt')
  1276. config.bind('<Down>', 'prompt-item-focus next', mode='prompt')
  1277. config.bind('<Escape>', 'leave-mode', mode='prompt')
  1278. config.bind('<Return>', 'prompt-accept', mode='prompt')
  1279. config.bind('<Shift-Tab>', 'prompt-item-focus prev', mode='prompt')
  1280. config.bind('<Tab>', 'prompt-item-focus next', mode='prompt')
  1281. config.bind('<Up>', 'prompt-item-focus prev', mode='prompt')
  1282. config.bind('n', 'prompt-accept no', mode='prompt')
  1283. config.bind('y', 'prompt-accept yes', mode='prompt')
  1284. # Bindings for register mode
  1285. config.bind('<Escape>', 'leave-mode', mode='register')
  1286. # Zotero Bindings
  1287. config.bind('zz', 'zotero')
  1288. config.bind('zf', 'zotero_link')