Commit Graph

269 Commits

Author SHA1 Message Date
Lionel Dricot 484987e21f max 20mo for http downloads 2022-03-01 22:03:42 +01:00
Lionel Dricot 3faca54050 … 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
Lionel Dricot 74bbf76814 FolderRenderer (currently only used for listing lists 2022-02-13 01:12:55 +01:00
Lionel Dricot 3029a3a218 Improving lists and making an abstract renderer 2022-02-13 00:37:31 +01:00
Lionel Dricot b85e9e8f04 handlers are now only used for non-text 2022-02-12 19:07:55 +01:00
Lionel Dricot 15b7591424 fixing a crash because a variable interfered witht the CMD module 2022-02-12 14:41:05 +01:00
Lionel Dricot 980ad72510 We now render images in terminal and introduce the open command. Beware, it is very experimental 2022-02-12 14:24:43 +01:00
Lionel Dricot ff9adf4aea Making offpunk working for variable width. Thanks to Kelbot for pointing it was not working 2022-02-12 13:12:37 +01:00
Lionel Dricot ec8fb1fda6 optimisation to not run image processor when syncing 2022-02-11 12:32:59 +01:00
Lionel Dricot 9cdb52383d improved image robustness 2022-02-11 12:01:05 +01:00
Lionel Dricot 4b39b7eac1 releasing 0.3 2022-02-11 11:33:37 +01:00
Lionel Dricot dc7e9156c8 improved handling of gopher connections and support for animated gif 2022-02-11 11:12:36 +01:00
Lionel Dricot 2413c1bf19 support for gopher 2022-02-10 23:46:59 +01:00
Lionel Dricot f0177f62f8 support for images nested in links 2022-02-10 17:19:20 +01:00
Lionel Dricot 691d2ee07c This is a very funny experiment with chapa to display image in
webpages
2022-02-09 21:46:29 +01:00
Lionel Dricot d0294fb58c trying to fallback on html if theres no entries in the feed. 2022-02-07 00:29:26 +01:00
Lionel Dricot f205dde0b6 full functionnal support for RSS and Atom 2022-02-06 15:48:24 +01:00
Lionel Dricot 8b1e28427b Basic support for RSS/Atom feeds 2022-02-06 14:08:25 +01:00
Lionel Dricot 81f3ff9f5b use magic by default if available to get mimetype 2022-02-06 12:55:54 +01:00
Lionel Dricot 79572a93ca small html rendering improvement 2022-02-05 14:42:35 +01:00
Lionel Dricot c405f8ddd9 improved title for non-fetched ressource 2022-02-05 12:46:32 +01:00
Lionel Dricot 08aedd4b42 improving html rendering 2022-02-05 00:26:51 +01:00
Lionel Dricot 11e6b3ccbc README improvments 2022-02-04 16:10:49 +01:00
Lionel Dricot 8de8c9ff7f new option --disable-http 2022-02-04 15:55:22 +01:00
Lionel Dricot 1cb3f48845 minor improvement in handling html titles 2022-02-04 13:38:33 +01:00
Lionel Dricot c985f1e8b4 aborting when an url is too long (this is an OS limitation) 2022-02-04 13:00:29 +01:00
Lionel Dricot 5d19662e3e adding depth and support for img in html 2022-02-04 01:14:22 +01:00
Lionel Dricot db991b2fd2 new argument to command less : full, allowing to disable readability 2022-02-03 21:56:23 +01:00
Lionel Dricot ba2c2f0d0e updated VERSIONS 2022-02-03 16:49:23 +01:00
Lionel Dricot e7f7e417e6 vastly improved syncing performance by building caches in more situation and disabling https_everywhere 2022-02-03 13:38:07 +01:00
Lionel Dricot ee1c660d74 This is an experiment to make --sync more intuitive based on Bjorn
Westergard’s feedback

See his post:
gemini://bjornwestergard.com/log/offpunk.gmi
2022-02-02 12:57:55 +01:00
Lionel Dricot 1881b98d96 adding our own user-agent else offpunk is considered as a bot by many http servers 2022-02-01 15:53:07 +01:00
Lionel Dricot 591c848478 close #6 (please test). It seems there are two XDG modules out there which are both incompatibles. The one is Debian seems to be a mix of both so I migrated to the correct way of using it (thanks to Klaus Alexander for providing code example). If this doesn’t work for everyone, we will have to support both way (code also provided by Klaus Alexander) 2022-02-01 12:32:51 +01:00
Lionel Dricot 6b0c362b5e do not update history while syncing 2022-01-31 15:32:34 +01:00
Lionel Dricot ed81c3245f removing a forgotten print 2022-01-31 15:07:59 +01:00
Lionel Dricot 635dfdbf80 releasing 0.2 2022-01-31 14:55:34 +01:00
Lionel Dricot 4980890ac4 fixing a crash 2022-01-31 11:54:17 +01:00
Lionel Dricot 2dbe7de21c improving documentation 2022-01-30 19:33:04 +01:00
Lionel Dricot fb6511d51d pretty titles in list and not adding lists to history 2022-01-30 19:11:23 +01:00
Lionel Dricot b611c1ec87 fixing a bug where mailto: url were not counted as URL in a page 2022-01-30 17:47:03 +01:00
Lionel Dricot f2944d35af first step to transform renderers into their own objects 2022-01-29 15:37:18 +01:00
Lionel Dricot 69db426ab8 fixing bug #4 (thanks for the report) 2022-01-28 13:25:55 +01:00
Lionel Dricot 06b2e178fb history is now a list 2022-01-26 19:35:05 +01:00
Lionel Dricot 41f0900373 implementing the archive list 2022-01-26 18:52:38 +01:00
Lionel Dricot bd09d7cc61 localhost:// is now the widely used file:// 2022-01-25 12:20:11 +01:00
Lionel Dricot a961596f69 solved 2 nasty crashes and one infinite loop 2022-01-25 11:49:31 +01:00
Lionel Dricot 70cc059528 get_filename would crash while accessing local ressources 2022-01-24 19:23:03 +01:00
Lionel Dricot 9fa216c11e search is now find (because it’s on current page only) 2022-01-24 17:04:03 +01:00
Lionel Dricot 682631c4cd https_everywhere enabled by default 2022-01-24 16:50:22 +01:00
Lionel Dricot 2e7d213c26 improving subscribtions 2022-01-24 16:21:30 +01:00
Lionel Dricot 976c958bc3 lists can now be deleted 2022-01-24 15:11:49 +01:00
Lionel Dricot fd5da8761d new command : list edit 2022-01-24 12:24:19 +01:00
Lionel Dricot fcf8605af9 size of lists 2022-01-24 11:23:22 +01:00
Lionel Dricot daece10ce5 fixing bugs in the new sync code 2022-01-24 10:58:32 +01:00
Lionel Dricot 3c8db67844 multiple lists are now implemented 2022-01-23 23:14:06 +01:00
Lionel Dricot 1b4e1bf6bf added support for mailto links 2022-01-23 17:40:28 +01:00
Lionel Dricot ffc939094f tour is now a list 2022-01-23 17:09:05 +01:00
Lionel Dricot c8c32e4640 bookmarks are now a list 2022-01-23 13:52:34 +01:00
Lionel Dricot ac4d6547d2 debug of automatic choice 2022-01-23 10:44:19 +01:00
Lionel Dricot 9131c5621f new --assume-yes option for answering question when sync. Without it, no is assumed 2022-01-22 15:33:39 +01:00
Lionel Dricot 0894be5167 new method to manage lists: move 2022-01-22 15:08:06 +01:00
Lionel Dricot 5db7a47e72 you can create lists and add pages to them 2022-01-21 17:42:14 +01:00
Lionel Dricot 57c69df5b6 support query in the URL 2022-01-19 18:44:39 +01:00
Lionel Dricot 7ff4065493 added the --fetch-later command line 2022-01-19 15:21:28 +01:00
Lionel Dricot 7a17f04343 remove offline_web option (not used anymore) 2022-01-19 11:02:49 +01:00
Lionel Dricot d688a5d8ba better handling of paths 2022-01-19 10:46:53 +01:00
Lionel Dricot 9047dbd718 another stupid refactoring bug 2022-01-19 09:41:04 +01:00
Lionel Dricot 14e5fbcc83 refactoring and cleanup: now accessing links directly from gi instead of hiding a go_to 2022-01-18 22:19:43 +01:00
Lionel Dricot bdd006c896 offpunk now respects XDG 2022-01-18 18:04:29 +01:00
Lionel Dricot 9b8c06efce getting rid of from_map_line, never liked that odd method 2022-01-18 14:45:37 +01:00
Lionel Dricot 103610b077 t . was recognized as url, not a tour command 2022-01-18 14:42:09 +01:00
Lionel Dricot 7e9c535c1d stupid bug which break rendering with preformtted content 2022-01-18 14:16:14 +01:00
Lionel Dricot 00a8cf7580 stupid refactoring bug about localhost 2022-01-18 11:40:16 +01:00
Lionel Dricot 94bed58364 fixing bugs after refactorisation 2022-01-18 10:53:56 +01:00
Lionel Dricot e40c0439b2 this is a huge refactorisation so gemtext/html renderers are now handled by each GeminiItem and not by the GeminiClient. Expect bugs 2022-01-17 23:37:12 +01:00
Lionel Dricot 76c2d9a491 consider that all .gmi files are text/gemini mimetype, even if they are not recognized as such 2022-01-17 14:32:46 +01:00
Lionel Dricot e3147d61d0 cosmetic change 2022-01-14 21:42:46 +01:00
Lionel Dricot c6a45ba819 cosmetic changes 2022-01-14 14:54:27 +01:00
Lionel Dricot b02b2603f0 fixed gemini:// not being added by default 2022-01-14 12:14:46 +01:00
Lionel Dricot 456095bd07 improve handling of nested <pre> 2022-01-14 11:28:30 +01:00
Lionel Dricot 5ad8dd61e7 html rendering starts to become really acceptable 2022-01-13 10:47:39 +01:00
Lionel Dricot 3bc6022348 fixed a bug while caching binary files 2022-01-13 10:06:10 +01:00
Lionel Dricot b1318e0289 solving that rendering bug where some spaces were removed 2022-01-12 16:23:55 +01:00
Lionel Dricot 2d26bc255c wrapping long links 2022-01-12 15:39:03 +01:00
Lionel Dricot bf6527d8e6 implemented blockquote 2022-01-12 13:23:22 +01:00
Lionel Dricot b7fa06322d makes the from_map_line method more robust to handle failures and bad URL 2022-01-12 12:21:11 +01:00
Lionel Dricot 0a26759d04 wrap long titles 2022-01-12 10:41:21 +01:00
Lionel Dricot 52735962c0 added standard_ports for http/https 2022-01-12 10:05:52 +01:00
Lionel Dricot e2d69df398 handle html page without body 2022-01-12 09:23:27 +01:00
Lionel Dricot 63e8c0e678 another crash with badly parsed url 2022-01-12 09:19:08 +01:00
Lionel Dricot fa9678895d vastly improved html rendering 2022-01-11 22:26:57 +01:00
Lionel Dricot 37918995d6 fix bad url crash 2022-01-11 14:04:20 +01:00
Lionel Dricot 4153a12f2b make to_fetch list more resilient to crashes 2022-01-11 09:39:09 +01:00
Lionel Dricot 257ee2f66d solving crashes 2022-01-11 09:16:34 +01:00
Lionel Dricot 305a736074 small changes 2022-01-10 21:29:19 +01:00
Lionel Dricot b3821d7719 removing debug log 2022-01-10 16:50:13 +01:00
Lionel Dricot 1d5f3b94b3 implementig hX 2022-01-10 16:48:35 +01:00
Lionel Dricot a92130db00 implement pre and li 2022-01-10 16:35:37 +01:00
Lionel Dricot a75cd96f65 less was not working with http 2022-01-10 15:53:41 +01:00
Lionel Dricot 35b884e9ff browsing the web seems to work 2022-01-10 15:30:23 +01:00
Lionel Dricot 8f5240f982 basic html rendering engine 2022-01-10 12:49:24 +01:00
Lionel Dricot 1d780fb1a3 refactor get_title 2022-01-10 11:19:29 +01:00