Commit Graph

269 Commits

Author SHA1 Message Date
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
Lionel Dricot 1110bf5e0c gi might be None. Strange but it seems to happen in --sync. 2022-01-10 09:45:21 +01:00
Lionel Dricot d92a6db6b6 allowing http in --sync 2022-01-09 21:21:09 +01:00
Lionel Dricot 1edeab027c disable readability for now 2022-01-09 21:10:34 +01:00
Lionel Dricot fd88a5181f first working http support (work in progress) 2022-01-09 20:41:47 +01:00
Lionel Dricot c9a478d0eb starting to have http support 2022-01-09 16:12:07 +01:00
Lionel Dricot 2f7fa5daae starting to implement http support 2022-01-09 15:53:14 +01:00
Lionel Dricot a79f5da2cc refactoring write_body 2022-01-09 15:27:02 +01:00
Lionel Dricot 78c2728e96 some comments 2022-01-09 11:35:09 +01:00
Lionel Dricot 1d458c88f1 local files can be opened again 2022-01-08 22:18:54 +01:00
Lionel Dricot 818ae874a3 removing the never-used cache implementation 2022-01-08 21:55:19 +01:00
Lionel Dricot 28908078c3 fixing bugs introduced by the refactoring 2022-01-08 21:46:57 +01:00
Lionel Dricot 2f212848d8 big refactorisation incoming. Lot of bugs to expect. 2022-01-08 21:32:25 +01:00
Lionel Dricot 53d17d0f3b start of a huge refactoring : moving mime into a GeminiItem 2022-01-08 14:16:55 +01:00
Lionel Dricot 2f78452f9c add the longer prompt in less to see position 2022-01-06 13:44:02 +01:00
Lionel Dricot 4aec75a753 new feature : copy content or url to main clipboard 2022-01-05 21:12:59 +01:00
Lionel Dricot 9974dab934 new feature: tour . 2022-01-03 16:40:52 +01:00
Lionel Dricot ae198f8f6e fixed a crash of the save command 2022-01-01 22:05:02 +01:00
Lionel Dricot 81e821f994 cache_path depends of the protocol 2021-12-30 16:46:52 +01:00
Lionel Dricot 700cba7184 Introducing Offpunk 2021-12-30 16:03:08 +01:00