Commit Graph

269 Commits

Author SHA1 Message Date
Lionel Dricot 0e8557480a NewHTML: solved centering and other stuff 2022-03-18 22:11:58 +01:00
Lionel Dricot a9b5c37b8a better performance by using links_only when needed 2022-03-18 21:12:21 +01:00
Lionel Dricot 6b1b527b04 NewHTML: trying to center img comments 2022-03-18 18:10:38 +01:00
Lionel Dricot f5c10392c3 working on a textwrap-compatible html renderer 2022-03-18 17:35:14 +01:00
Lionel Dricot ea31d72b9e force saving animation as gif to avoid a crash by PIL 2022-03-18 13:40:54 +01:00
Lionel Dricot 51c2bd966e first try at reimplementing the html renderer (currently commented out) 2022-03-18 11:25:47 +01:00
Lionel Dricot e388b4f49c understand links in html titles 2022-03-17 15:34:43 +01:00
Lionel Dricot 435ab36525 support for timg as an alternative to chafa 2022-03-17 10:23:35 +01:00
Lionel Dricot a651537052 initial work to support timg instead of chafa 2022-03-17 00:01:18 +01:00
Lionel Dricot c9f2191f71 fixing the fix_ipv6 which was breaking some domain names 2022-03-16 19:26:46 +01:00
Lionel Dricot ab08d28537 fix crash when getting links for pictures 2022-03-16 10:08:29 +01:00
Lionel Dricot 8170c26532 full support for multiple view modes 2022-03-16 10:03:29 +01:00
Lionel Dricot 5ddd309bce links were broken in v full 2022-03-16 09:47:53 +01:00
Lionel Dricot 452ae6015f dont crash if a picture is in the clipboard 2022-03-16 00:41:56 +01:00
Lionel Dricot 76ba0104d5 repair broken view full and got saved position in different views 2022-03-16 00:21:55 +01:00
Lionel Dricot 03f62d2e57 cp url X to copy the url of a link 2022-03-15 23:43:21 +01:00
Lionel Dricot 4f4e1cc72c fixed missing links in feeds 2022-03-15 23:23:29 +01:00
Lionel Dricot c6d164e743 refactor: display is now handled by the renderer. Also, removal of fold 2022-03-15 23:01:04 +01:00
Lionel Dricot 0d282b7ccf drop html comments 2022-03-15 20:24:06 +01:00
Lionel Dricot 190139e431 refactor: removing reable=True for mode=readable 2022-03-15 20:14:21 +01:00
Lionel Dricot 543455e1c6 starting refactorisation to support better chafa 2022-03-15 16:23:44 +01:00
Lionel Dricot 133be0dc13 ensure we are using chafa with symbols to allow upgrading to 1.8 2022-03-15 15:30:30 +01:00
Lionel Dricot 10a576838b use html unescape instead of implementing it ourselves 2022-03-15 00:04:11 +01:00
Lionel Dricot ca1cd780a3 cp cache to get the path of the cached file 2022-03-14 22:36:34 +01:00
Lionel Dricot 112ff11d3d proper support for <pre> 2022-03-14 18:46:14 +01:00
Lionel Dricot 7182059fa5 fix crash if python readability not present 2022-03-14 11:43:40 +01:00
Lionel Dricot 438d8b9363 error with NEW_CHAFA 2022-03-14 10:23:14 +01:00
Lionel Dricot ac07ddb5c4 release 1.0 and fix view full for feeds 2022-03-13 17:45:41 +01:00
Lionel Dricot 5589568d8b simplifying chafa detection 2022-03-13 14:36:21 +01:00
Lionel Dricot 58dc23b50f switching to the more standard width of 72 for 1.0 2022-03-12 22:19:54 +01:00
Lionel Dricot e92d57a94a Handling chafa > 1.10 2022-03-12 18:41:38 +01:00
Lionel Dricot d74d00feb1 crash in subscribe 2022-03-09 11:34:41 +01:00
Lionel Dricot 1e18cb71a3 added man as an abbrevs for help. Because I typed it spontanously. 2022-03-09 10:15:24 +01:00
Lionel Dricot db5e922af9 up can take an integer as argument 2022-03-08 22:21:44 +01:00
Lionel Dricot 672a1a9c4b dropping python-xdg dependancy. It’s easier to implement our own version of it 2022-03-08 10:14:36 +01:00
Lionel Dricot 7de6cf5d1f download limit seems to work 2022-03-08 09:12:01 +01:00
Lionel Dricot c1f2206937 less has been renamed view and feed/feeds options have been added 2022-03-07 23:16:17 +01:00
Lionel Dricot b37fb2f599 dropping javascript from full view 2022-03-07 22:29:55 +01:00
Lionel Dricot d6cf0962b7 centering pictures in html pages 2022-03-07 21:54:43 +01:00
Lionel Dricot 636e8bb4b8 content is now centered in the terminal 2022-03-07 18:23:48 +01:00
Lionel Dricot 35123e920c fix crash reported by Matthieu Talbot 2022-03-07 15:36:16 +01:00
Lionel Dricot 907fc70b5d fallback less frequently to text/gemini mime 2022-03-06 19:36:02 +01:00
Lionel Dricot f322c8d73c small typo inducing crash 2022-03-06 16:02:30 +01:00
Lionel Dricot 4e5dbe4882 added spartan to README 2022-03-05 16:36:39 +01:00
Lionel Dricot 100f69ebe7 releasing 0.9 2022-03-05 11:45:26 +01:00
Lionel Dricot 42f0f06494 Add support for spartan protocol 2022-03-04 23:38:35 +01:00
Lionel Dricot 1e44ae76a0 forgot to increase version number 2022-03-04 16:50:33 +01:00
Lionel Dricot 28feaf6f6d reload doesn’t care about cache anymore 2022-03-04 12:38:41 +01:00
Lionel Dricot b7c34f3bb9 stupid white space bug 2022-03-04 10:18:57 +01:00
Lionel Dricot d28a3423d6 Http download which are not to be put in tour are now limited to 20Mo, to avoid downloading large unwanted files 2022-03-03 16:16:32 +01:00
Lionel Dricot 484987e21f max 20mo for http downloads 2022-03-01 22:03:42 +01:00
Lionel Dricot 3faca54050 &mldr; spotted in a wild page and implemented 2022-02-27 22:54:28 +01:00
Lionel Dricot f73577ae08 warn if alreaday subscribed to a feed 2022-02-27 22:32:25 +01:00
Lionel Dricot b0a2961acc more feedback from subscribe 2022-02-27 22:20:42 +01:00
Lionel Dricot af57715f99 feed without entries are not feed but html pages 2022-02-25 22:13:40 +01:00
Lionel Dricot 7a05e5514e do not quit on ctrl+c, behaviour is annoying 2022-02-25 14:36:46 +01:00
Lionel Dricot edb71471dc rare crash on rss detection with some websites 2022-02-25 10:59:54 +01:00
Lionel Dricot 3231f425a9 binary files in gopher 2022-02-24 10:29:14 +01:00
Lionel Dricot ff12498b49 handle relative path for subscribing to feeds 2022-02-23 12:06:53 +01:00
Lionel Dricot 8c8b6763b2 quit on ctrl+c 2022-02-23 10:43:46 +01:00
Lionel Dricot 6d87b2f4bc solve a crash when calling less after a mailto link 2022-02-22 13:24:36 +01:00
Lionel Dricot 4f56a85e28 move from PROTOCOL_TLS to PROTOCOL_TLS_CLIENT. This should be enough to close #7 2022-02-22 11:15:19 +01:00
Lionel Dricot d468aced2f abstracting wrapping methods to try replace ansiwrap 2022-02-21 21:20:34 +01:00
Lionel Dricot 3b809c4146 Releasing 0.4 2022-02-21 00:46:14 +01:00
Lionel Dricot aa8e0cdb3e solve two gopher bugs related to path 2022-02-19 22:09:57 +01:00
Lionel Dricot fb29a83cc6 displaying lists where a page appear in info 2022-02-19 21:36:54 +01:00
Lionel Dricot f669bd9bed change process name to offpunk 2022-02-18 23:50:08 +01:00
Lionel Dricot f6820ba244 sync can now be called inside offpunk 2022-02-18 22:55:32 +01:00
Lionel Dricot d1ce7bd662 removing reference to cmdqueue in case we want to migrate to cmd2 2022-02-18 17:13:20 +01:00
Lionel Dricot 6f36970b34 new info command 2022-02-18 15:52:27 +01:00
Lionel Dricot cd5bba7b7b subscribe now detect embeded RSS feeds 2022-02-18 14:11:09 +01:00
Lionel Dricot f0623c1b93 should fix a rare crash when fetching redirected urls 2022-02-18 12:14:42 +01:00
Lionel Dricot 7d91ee0eb9 using new --incsearch for less if available 2022-02-17 23:16:16 +01:00
Lionel Dricot 87e8364932 cleaning up the less history file 2022-02-17 17:47:16 +01:00
Lionel Dricot 75397963cf restoring last position when less-ing a page 2022-02-17 17:19:11 +01:00
Lionel Dricot 80bf937f03 get less version 2022-02-17 15:57:04 +01:00
Lionel Dricot 279bd12748 proper separation of get_cache_path 2022-02-17 12:51:48 +01:00
Lionel Dricot 78e428d3a7 starting to remove self.path from GeminiItem 2022-02-17 12:38:50 +01:00
Lionel Dricot 136c8cfce7 cache_path is now generated upon request for case where it might become a folder afterward 2022-02-17 10:42:18 +01:00
Lionel Dricot 06f2c1b838 how a directory went to get mime ? 2022-02-17 10:02:45 +01:00
Lionel Dricot cf4dc86b03 tentatively improve html rendering 2022-02-17 09:58:42 +01:00
Lionel Dricot b9e0cf4b0b fix for gopher selectors 2022-02-16 09:45:38 +01:00
Lionel Dricot 4fa3a718a8 fixing a tour bug and making the width dynamic 2022-02-15 21:57:14 +01:00
Lionel Dricot 0b5e516361 list help is synonym for help list 2022-02-15 16:50:33 +01:00
Lionel Dricot 33cc967df1 don’t save gi if it doesn’t exist 2022-02-15 16:05:10 +01:00
Lionel Dricot 39caf95381 we fetch frozen list if no valid cache exists 2022-02-15 15:18:07 +01:00
Lionel Dricot 4464a605b0 I was too quick to commit the new feature 2022-02-15 15:05:08 +01:00
Lionel Dricot bc0358f6c9 New list subscribe and list freeze commands 2022-02-15 14:56:35 +01:00
Lionel Dricot aa75f713ea reverting the non-recursive render of image in links 2022-02-15 10:17:00 +01:00
Lionel Dricot 8ae7587ab4 improving rendering of images nested in links and of non-breaking spaces 2022-02-15 00:04:30 +01:00
Lionel Dricot fdd1f36de6 vastly improved version command to see status of different features 2022-02-14 23:02:53 +01:00
Lionel Dricot 5cf26e28fa improve unicode handling and rss detection 2022-02-14 11:54:51 +01:00
Lionel Dricot e1ab504f69 --fetch-later now directly add to tour if a cached version already exists 2022-02-14 11:28:12 +01:00
Lionel Dricot 26009c7f75 RSS feeds are now rendered as gemlogs 2022-02-14 11:05:39 +01:00
Lionel Dricot 7781d7123c fixing blue title for RSS feeds 2022-02-14 10:25:55 +01:00
Lionel Dricot bf20721be5 fix crash with some mailto links 2022-02-13 23:18:42 +01:00
Lionel Dricot 176bcd438b Making Html renderer working with fragments to improve FeedRenderer 2022-02-13 22:59:16 +01:00
Lionel Dricot 85551f5af5 abstracting renderers to make them more coherent 2022-02-13 17:50:15 +01:00
Lionel Dricot 67fbf9902e fixing, once again, a crash wit too long path 2022-02-13 16:35:30 +01:00
Lionel Dricot ed5298b67e avoid crash with badly formatted images 2022-02-13 10:59:10 +01:00