diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-16 18:24:42 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-16 18:25:24 +0100 |
commit | a83c0be8abb07e736297dcc6d6304bfbb243eb99 (patch) | |
tree | f118e60b4da3ce625155d1bd1394effe983ba4b4 /src/config | |
parent | 1d2b576e408059f500e97e52e8930d2cb7c38551 (diff) | |
download | chawan-a83c0be8abb07e736297dcc6d6304bfbb243eb99.tar.gz |
pager, loader: add "Save file to" functionality
As simple as it could be; no download panel yet. Also, remove the xdg-open default mailcap entry; it's better to just save by default.
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config.nim | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/config/config.nim b/src/config/config.nim index 8f798cd3..e42fe9e4 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -92,6 +92,7 @@ type mime_types* {.jsgetset.}: seq[ChaPath] cgi_dir* {.jsgetset.}: seq[ChaPath] urimethodmap* {.jsgetset.}: seq[ChaPath] + download_dir* {.jsgetset.}: string w3m_cgi_compat* {.jsgetset.}: bool InputConfig = object @@ -364,13 +365,6 @@ proc getMailcap*(config: Config): tuple[mailcap: Mailcap, errs: seq[string]] = cmd: ansiPath, flags: {HTMLOUTPUT} )) - if not found: - mailcap.add(MailcapEntry( - mt: "*", - subt: "*", - cmd: "xdg-open '%s'" - )) - return (mailcap, errs) return (mailcap, errs) # We try to source mime types declared in config. |