Commit graph

157 commits

Author SHA1 Message Date
dece 690879f558 identity: indent the file 2021-05-29 01:14:31 +02:00
dece 2d493af64b preferences: basic per-capsule preferences
For now only a per-path render mode is available.
2021-05-29 01:13:43 +02:00
dece f827ce3ee1 browser: show an error early on loading failure 2021-05-29 01:11:38 +02:00
dece 1468e6ef10 page: add a dumb rendering mode
Dumb mode affects Gemtext parsing (gotta keep those empty lines) and
rendering (render empty lines, do not attempt to put smart margins).
2021-05-28 13:34:08 +02:00
dece 46ec9879e6 help: add "help" command in case of 2021-05-28 13:26:41 +02:00
dece b22981cef6 browser: fix minor status bar issues 2021-05-24 21:11:58 +02:00
dece 8e4f8c4c70 mime: fix issue with charset param 2021-05-24 20:10:04 +02:00
dece 4738e495b2 browser: add command to show page info 2021-05-24 20:09:34 +02:00
dece f6eeccdb32 colors: fix crash in xterm 2021-05-18 22:29:38 +02:00
dece e2cc152f6d help: do not show config default when it is set 2021-05-18 16:47:52 +02:00
dece ca72c4683e textbox: fix gather for unicode 2021-05-18 12:19:57 +02:00
dece 0a746a1e28 textbox: fix right-key going banana 2021-05-16 19:43:41 +02:00
dece 1ae2ed41e5 textbox: find C-e issue 2021-05-16 19:37:27 +02:00
dece 5829e7e267 textbox: fix double delete of trailing spaces 2021-05-16 19:28:10 +02:00
dece d07d4b3388 textbox: copy curses.textpad, restrict to 1 line 2021-05-16 18:00:23 +02:00
dece 4726a5a281 command_line: fix nodelay mode reset 2021-05-16 17:24:36 +02:00
dece acf8147fa1 linting 2021-05-16 01:30:00 +02:00
dece 1d92b52379 external: fix issues with coming back from vim 2021-05-16 01:28:47 +02:00
dece 8de79a6e5a help: clean up a lot and fix smol issues
Moved a lot of stuff from the readme to the help page so the program is
more self-contained.
2021-05-16 00:46:19 +02:00
dece 2bfed8533e welcome: add welcome page 2021-05-15 19:44:50 +02:00
dece 2b072bcc76 navigation: abandon assume_absolute URL madness 2021-05-15 19:06:44 +02:00
dece 2b684d7afc navigation: fix issue with reloading bebop pages 2021-05-15 18:06:04 +02:00
dece 09f660feaf browser: only use cache when going back 2021-05-14 23:16:49 +02:00
dece 62997b9385 help: display current config 2021-05-13 01:26:50 +02:00
dece f63d875fc3 logging 2021-05-13 01:25:50 +02:00
dece 8b1561e689 identity: present cert instead of waiting for 60 2021-05-13 01:24:29 +02:00
dece 57f01720d6 identity: add basic identity management 2021-05-12 22:34:18 +02:00
dece 6ceb75b84c config: add download_path 2021-05-09 23:02:56 +02:00
dece 056616b130 page_pad: fix crashes on some fail refresh
would have been better to understand why it crashed but yolo
2021-05-09 15:55:27 +02:00
dece 5aa03da3e8 help: improve view and list commands 2021-05-09 02:03:45 +02:00
dece 3a88a898c9 browser: open last download with external commands 2021-05-09 01:39:42 +02:00
dece f1c5d8dfc9 history: fix going back
Ultimately a simple link list does not do all you want, so now the
history maintains a list of visited links that are useful to display,
but also a backlink list to let the user move to the previous pages.
2021-05-09 00:46:26 +02:00
dece 397a143695 navigation: rework entirely URL management
oh and fix the whole history mess a bit
2021-05-08 22:47:34 +02:00
dece b26dad0d0d rendering: fix crash on empty pages 2021-05-07 21:54:09 +02:00
dece 6b0a622017 gemtext: fix issue with preformatted blocks 2021-05-04 22:29:00 +02:00
dece 1fddf4c2b2 tofu: proper implementation 2021-04-19 02:04:18 +02:00
dece 80ec71f30b command_line: add a prompt function 2021-04-19 00:28:20 +02:00
dece 396391ea80 help: add help page 2021-04-18 16:13:41 +02:00
dece 6574048763 command_line: fix new line issue when using editor 2021-04-18 14:17:20 +02:00
dece 3a818812a9 config: add config management
A config file is now created and used, and a few hardcoded things in the
source have been moved to the config file \o/
2021-04-18 14:17:20 +02:00
dece 4fbfa37937 browser: do not send requests with too long URLs 2021-04-18 01:17:33 +02:00
dece cf48818c24 protocol: download unknown mime types 2021-04-17 22:59:54 +02:00
dece b2fdabea71 linting 2021-04-17 22:02:29 +02:00
dece cee04f10c7 browser: add missing horizontal scrolling features 2021-04-17 22:02:06 +02:00
dece 535ab0aa16 command_line: allow external editor for writing 2021-04-17 21:54:11 +02:00
dece 7b9a314481 navigation: fix parameters left in URL for parents 2021-04-17 21:52:20 +02:00
dece f3a3a36039 browser: render all "text/*" Gemini responses 2021-04-16 19:56:56 +02:00
dece 347b5a81cc browser: open editor to view/edit sources & pages 2021-04-16 19:30:33 +02:00
dece bce65a1472 browser: minor fixes 2021-04-16 19:30:14 +02:00
dece 6bc4dbcc5d metalines: split contents from rendering module 2021-03-28 18:57:23 +02:00
dece 8aee7fdfba gemtext: add links/title to parsing result
parse_gemtext used to return only the element list, requiring subsequent
loops to find a title or collect links; now it's all done at the same
time!
2021-03-28 18:55:52 +02:00
dece 1f938fd2af clean and fix minor issues 2021-03-28 18:28:54 +02:00
dece bd7cfce520 browser: split in several files 2021-03-28 18:28:35 +02:00
dece 5b3e91336f bookmarks: basic bookmark management 2021-03-18 01:56:24 +01:00
dece d6bcd1f706 page: split page/page_pad modules
Also add title to Page but really this needs a big cleanup.
2021-03-18 01:55:31 +01:00
dece 40133a1e6b browser: bypass cache when reloading, duh 2021-03-16 19:38:25 +01:00
dece b508ab8128 navigation: add a "go to root" function 2021-03-16 19:38:11 +01:00
dece cf6b67f78b navigation: add function to go to parent URL 2021-03-16 19:12:28 +01:00
dece 5d1e13ea6a rendering: add typings 2021-03-14 00:09:24 +01:00
dece a37ed6f64d page: add docs 2021-03-14 00:09:24 +01:00
dece 0c786087ea gemtext: auto-close preformatted blocks
The spec does not say if preformatted text should be rendered or not if
the file stops before the closing fence is found. The wording makes me
think it is more adequate to auto-close the block in this case.
2021-03-14 00:09:24 +01:00
dece fef350804c browser: add a cache 2021-03-14 00:09:24 +01:00
dece dd4a4196a8 mime: basic MIME type management 2021-03-14 00:09:24 +01:00
dece 2767402d9f clean 2021-03-14 00:09:24 +01:00
dece 1ff23e58e8 tofu: fix bug in save_cert_stash 2021-03-14 00:09:24 +01:00
dece 05c54eff48 page: move page content to a separate class 2021-03-14 00:09:24 +01:00
dece 3d15074bdd browser: clean 2021-03-13 20:38:56 +01:00
dece 33f215dd3e browser: rework default movement keys 2021-03-13 20:38:56 +01:00
dece bcc9a72d97 command_line: fix issue with digits input 2021-03-13 20:38:56 +01:00
dece e517df7836 tofu: add save_cert_stash 2021-03-13 20:38:56 +01:00
dece 0b79bd9e9e command_line: move input validation there
This absolutely un-atomic commit also introduces the Links class to hold
methods regarding link lookups on top of the standard dict class.
2021-03-13 20:38:56 +01:00
dece 83db26ada7 fs: add minimal module to get some directories 2021-03-13 20:38:56 +01:00
dece 1b8127eea1 add module docstrings 2021-03-13 20:38:52 +01:00
dece 89abbc6fd9 browser: show status line in italic 2021-03-09 00:44:54 +01:00
dece 2db721d48a browser: capture C-c 2021-03-09 00:44:42 +01:00
dece 398f526b82 rendering: fix vspace issue with link/lists 2021-03-08 23:42:18 +01:00
dece 84221a7816 browser: handle local file:// URIs 2021-03-08 23:40:21 +01:00
dece 85934eedcf rendering: show link preview after links 2021-03-08 22:30:39 +01:00
dece d7a94650cb rendering: do not crash on rendering failure 2021-03-05 19:28:56 +01:00
dece 524bda5b39 protocol: limit meta line length in request 2021-03-05 19:28:17 +01:00
dece 72111bce70 protocol: make connection timeout after some time 2021-03-05 19:27:42 +01:00
dece 62619f29fb browser: quit with ":quit" instead of pressing q 2021-02-28 18:51:15 +01:00
dece 33b1e497af browser: fix issue with relative redirections 2021-02-26 17:41:16 +01:00
dece e7ef91ed9f browser: use "p" instead of "H" for going back 2021-02-26 16:40:07 +01:00
dece 70cd3f6557 browser: basically handle HTTP(S) links 2021-02-26 16:40:07 +01:00
dece 03a51c13f5 browser: move faster using uppercase hjkl 2021-02-26 15:36:45 +01:00
dece 9f5cae5014 protocol: catch wrong URLs ending with bare colon 2021-02-26 15:36:02 +01:00
dece ff49f0d17e page: methods to go to beginning/end of page 2021-02-18 19:01:28 +01:00
dece 8fdf23689d browser: minor fixes 2021-02-18 01:41:14 +01:00
dece 34f7ef0a95 browser: press r to reload page 2021-02-18 01:41:02 +01:00
dece 8830465fbf history: separate smol module 2021-02-18 01:40:05 +01:00
dece 294c7796fa browser: fix relative link issue 2021-02-17 01:31:24 +01:00
dece 657d46adc5 navigation: fix minor issues with URLs 2021-02-16 21:23:06 +01:00
dece 85570de5a8 browser: rename screen and handle quick commands 2021-02-16 21:22:49 +01:00
dece 15f56289b9 gemtext: handle list items 2021-02-16 20:23:44 +01:00
dece 4cb8ac11d6 protocol: fix requests to servers needing SNI ext 2021-02-16 19:10:32 +01:00
dece b23e4a8d6a screen: handle input request (code 10) 2021-02-16 19:10:11 +01:00
dece 5ef9a0430a protocol: catch connection/SSL errors 2021-02-15 19:57:49 +01:00
dece 15037ec0a6 screen: fix looping history 2021-02-15 18:53:21 +01:00
dece 1d51a2ca40 protocol: support URLs with port specified 2021-02-15 18:52:37 +01:00