qutebrowser: fix escape sequences and disable session restore

- Simplify escape sequences in bind commands (M, Z keys)
- Add c.session.default_name = '' and c.session.store_size = 0
- Update AGENTS.md (trimmed to 150 lines)
- Update flake.lock with latest dependencies
This commit is contained in:
2026-03-22 00:07:52 +02:00
parent c567ca5c3f
commit e6188adc0d
4 changed files with 80 additions and 145 deletions
+5 -7
View File
@@ -7,6 +7,8 @@ config.load_autoconfig(True)
#Also using this https://github.com/miseran/tabs_are_windows/blob/main/config.py
c.tabs.show = 'never'
c.session.default_name = ''
c.session.store_size = 0
c.tabs.tabs_are_windows = True
c.window.title_format = 'qute: {private}{host}{perc}{title_sep}{current_title}'
@@ -26,12 +28,8 @@ c.url.searchengines = {
#Youtube stuff from DT.
#Added media-title to MPV and youtube-dl with exwm process to track progress.
config.bind('M', 'hint links spawn mpv --title=\'${media-title}\' {hint-url}')
config.bind('Z',
'hint links spawn emacsclient -e "(start-process '\
'\\"youtube-dl {hint-url}\\" \\"youtube-dl {hint-url}\\" '\
'\\"youtube-dl\\" \\"-o\\" \\"~/downloads/%(title)s.%(ext)s\\" '\
'\\"{hint-url}\\" \\"--newline\\")"')
config.bind('M', 'hint links spawn mpv --title="${media-title}" {hint-url}')
config.bind('Z', 'hint links spawn emacsclient -e "(start-process \\"youtube-dl {hint-url}\\" \\"youtube-dl {hint-url}\\" \\"youtube-dl\\" \\"-o\\" \\"~/downloads/%(title)s.%(ext)s\\" \\"{hint-url}\\" \\"--newline\\")"')
config.bind('xb', 'config-cycle statusbar.show always in-mode')
c.statusbar.show = 'in-mode'
@@ -44,7 +42,7 @@ c.downloads.location.prompt = False
c.editor.command = ['emacsclient', '-e', '(find-file "{}")']
monospace = "10pt 'LiberationMono'"
monospace = "10pt 'DejaVu Sans Mono'"
c.fonts.completion.category = f"bold{monospace}"
c.fonts.completion.entry = monospace
c.fonts.debug_console = monospace