1
0
Fork 0
Commit Graph

320 Commits

Author SHA1 Message Date
cage 61c39b6c62 - moved to an internal wrapping of 'mkstemp' to allow extensions in filename;
- [gemini] rendering all stream with MIME type "text/*" with this program.
2021-04-01 17:08:42 +02:00
cage ef3724e986 - fixed 'uri:normalize-path';
- [gemini] cleaned paths when exploring local tree.
2021-03-28 16:43:21 +02:00
cage 02ea992ca8 - [gemini] expand 'pwd' when printing the directory's contents;
- [gemini] forced displaying of director with tinmop.
2021-03-28 15:00:00 +02:00
cage ad21da5957 - cleaned a bit reults of 'prepend-pwd'. 2021-03-28 14:42:19 +02:00
cage 8b50eec3be - [gemini] allowed exploring directory using relative path;
- [gemini]  allowed  opening  a  file using  tinmop  itself  (example:
  opening a gemini text file);
- added a more hi-level function to open a file with an external program.
  - this function  takes into account  the file that should  be opened
    with tinmop and uses 'xdg-open' as  fallback if the user did not
    specified an association program file-type.
2021-03-28 14:33:56 +02:00
cage ff99cd50b6 - [gemini] allowed opening local folder using 'ui:open-gemini-address'. 2021-03-27 11:01:36 +01:00
cage 9dd77c549d - [gemini] allowed going back in history also when exploring a local filesystem. 2021-03-27 10:59:10 +01:00
cage 87377914a3 - [gemini] added a symbol to mark a directory when exploring local filesystem. 2021-03-27 10:37:05 +01:00
cage 6a82f892a1 - [gemini] added feature: open local directory. 2021-03-27 10:21:33 +01:00
cage 57776623aa - allowed, again, nil value for some message window data when loading a gemini resource. 2021-03-27 09:41:44 +01:00
cage 16c131e952 - used 'load-gemini-url', when possible, to avoid duplication. 2021-03-27 09:33:55 +01:00
cage db34a2f958 - [gemini] added feature: loading local gemini files from command line (switch: '-o'). 2021-03-27 09:19:13 +01:00
cage 029acbe186 - removed empty line. 2021-03-24 16:26:26 +01:00
cage d92c103c43 - [gemini] when resolving host try UTF8 encoded name first and punycoded last. 2021-03-24 16:12:32 +01:00
cage 11fa85ad79 - fixed test for deciding if a pair timeline/folder must be renumbered. 2021-03-21 14:36:47 +01:00
cage 6228858e79 - skipped threads group (pair timeline and folder) that has not
statuses  marked to  be  deleted when  sorting  all statuses  before
  quitting the  program. Hopefully this  is the last change  needed to
  remove  long   waiting  times  before  program   process  terminate,
  returning to the shell.
2021-03-20 20:27:13 +01:00
cage 17bb9f5f15 - fixed 'percent-encoded-p'. 2021-03-15 19:48:02 +01:00
cage 0c2398c184 - fixed hex digit parsing from iri parser;
- added more debugging messages;

- fixed formatting.
2021-03-15 19:28:07 +01:00
cage b3c3d8a232 - prevented crash when removing two (or more) statuses that reblogged the same status.
When more  than one statuses points  to the same reblogged  status and
more the one of the formers  is deleted the first deletion will remove
the reblogged  status as well  and the second  will try to  remove the
same (already removed from db) status. This makes the program crash.
2021-03-15 18:33:16 +01:00
cage 4d2ac3a751 - fixed chat api;
- fixed regression, loading scripts works again.
2021-03-14 13:26:06 +01:00
cage b1eb1a2664 - changed wrong parameter's name: 'limits' -> 'limit'. 2021-03-14 11:04:20 +01:00
cage f03880a7cf - used version 2 for get chats. 2021-03-13 20:50:04 +01:00
cage 81e5c3eba1 - changed the way a message is deleted: when deleting a reblogging
message delete the reblogged message as well.

This way  quit should  be faster  as the  folder ".reblogged"  can not
grows without limit anymore.
2021-03-13 18:46:01 +01:00
cage f0bc12c435 - made explicit the folder for parent (reblogged) messages. 2021-03-13 13:20:32 +01:00
cage c621f9f25c - fixed docstring. 2021-03-13 13:19:46 +01:00
cage b73f982408 - reverted method of rendering of text in message window to a
line-based one.

The old method that packed text got from gemini stream in single event
was ugly and blocked the UI.

This version  revert to a line  by line rendering but  it is optimized
and does not gets slow with the size of the text the window holds.
2021-03-09 11:32:09 +01:00
cage 8b99548e6e - made nicer the error message when a directive is missing from configuration file. 2021-03-09 10:19:01 +01:00
cage 8230056152 - [gemini] made fetching of favicon opt-in
by default tinmop  will not fetch favicon.txt  anymore, this feature
  must be enabled by user using a configuration directive.
2021-02-21 12:23:01 +01:00
cage 04ca1d14c1 - fixed crash when starting the program without a configuration file. 2021-02-20 18:28:49 +01:00
cage cc146a652c - changed ':draw-border' to ':border' to track the new croatoan API. 2021-02-19 17:38:39 +01:00
cage ae178546b9 - added version 2 of get chat list endpoint. 2021-02-19 16:34:38 +01:00
cage 7b3a97a3ec - fixed append. 2021-02-18 20:03:34 +01:00
cage bb53d98f4c - improved a bit rendering of text in message window. 2021-02-18 19:43:27 +01:00
cage 121eaed346 - reverting order of packaging. 2021-02-13 19:35:24 +01:00
cage 8f0f4af090 - moving tiu-utils symbols before software-configuration. 2021-02-13 19:15:01 +01:00
cage 8f757b563b - allowed users (via caonfiguration directive) to use (or not) cache when opening a link with a custom program. 2021-02-13 12:37:37 +01:00
cage bc3e7685a7 - prevented crash when a program to open a link is not found. 2021-02-11 15:27:58 +01:00
cage 07d04f760a - [gemini] complete URL on command line matching substring in any position, not only at the start of the URL. 2021-02-10 20:34:08 +01:00
cage 7eea02992c - respected arguments of a program when opening a link. 2021-02-10 18:02:06 +01:00
cage 3df833b248 - added configuration directive to use a specific program to open a
link (e.g. open all mp3 files with program mpv).
2021-02-10 17:43:40 +01:00
cage cc82ceff02 - [gemini] removed useless 'unwind-protect' (and simplified code) from 'gemini-client:request'. 2021-02-09 20:15:57 +01:00
cage ae82420cfe - [gemini] in gemini-client:request-dispatch signal a condition
('not-implemented-error') instead  of doing nothing when  a response
  in not handled (i.e. no function for that response type exists).
2021-02-09 19:32:48 +01:00
cage 4f4a3f4476 - [gemini] ensured 'gemini-viewer:request' respects the 'enqueue'
argument when making recursive call to itself.
2021-02-07 13:50:52 +01:00
cage dc9e23e3c0 - [gemini] rewritten gemini-viewer:request using gemini-client:request-dispatch machinery;
hopefully this should made the function easier to read (by human) and extend.
2021-02-07 13:50:52 +01:00
cage 08c803bfba - replaced local function 'fetch-cached-certificate' with a global one. 2021-02-07 13:50:52 +01:00
cage e32358c6d5 - replaced local function with a global one. 2021-02-07 13:50:52 +01:00
cage 6a1ea415f7 - [gemini]
- added some messages to debug protocol;
  - asking  for query  event  got minimum  priority  to prevent  being
    hidden  by informational  messages on  the command  line (e.g  the
    message that  inform the  user that  the client  is going  back in
    history);
  - always stream contents that are repsonses to a query;
  - added      gemini-client:request-dispatch       and      rewritten
    gemini-client:slurp-gemini-url based on the former.
2021-02-07 13:50:40 +01:00
cage 986ea84313 - added hook '*after-saving-message*. 2021-02-06 12:29:31 +01:00
cage 1c6defddf1 - fixed indentation of 'gemini-viewer:request'. 2021-02-02 20:58:23 +01:00
cage d0a9b6583a - [gemini] encoded the input string before making the request. 2021-02-02 20:57:30 +01:00
cage b37c590265 - prevented crash when sending message to command did not worked.
Printing error to command line instead.
2021-02-02 20:44:18 +01:00
cage 0fc46fa1b5 - removed dependency from libidn2
punycode encoding  comes from  an internal implementation  istead of
  using an C library.
2021-01-31 13:08:34 +01:00
cage 52393e2a5e - [gemini] fixed canceling subscription to gemlogs. 2021-01-28 16:14:00 +01:00
cage 17401274b5 - [gemini] added support for favicon.txt
the       implementation       more       or       less       follow
  gemini://mozz.us/files/rfc_gemini_favicon.gmi but it does render the
  first  character  of   the  file  instead  of   checking  for  emoji
  characters.
2021-01-28 15:35:26 +01:00
cage c66a71881e - made input command history less messy
- adding a sequence  of n equals entries count as  one (no duplicate
    entries on top of the history);
  - removed duplicate for gemini history URL.
2021-01-27 20:31:18 +01:00
cage 1710ac5b48 - added feature to allow users ro configure symbols rendered for each toot visibility level in main window. 2021-01-24 16:15:42 +01:00
cage c75efe0638 - prevented crash truncating the scaled width of tags window. 2021-01-24 14:53:43 +01:00
cage 3daf205dd8 - prevented non rendering of 'new-message' character in tags window. 2021-01-24 14:46:13 +01:00
cage aae3aed7d4 - made 'text-utils:strim-blanks' returns nil and not "NIL" when input is null;
- [gemini] trim whitespaces from link name.
2021-01-24 12:20:18 +01:00
cage 1f0cc71884 - [gemini] shown selected row in gemlog subscription window. 2021-01-24 11:48:25 +01:00
cage ecec01f285 - [gemini] made slurp-gemini-url works with redirect;
- [gemini] made some refactoring for building redirect IRIs.
2021-01-23 16:25:37 +01:00
cage 3962af0256 - changed db-nil-p
this function was transforming "no" and even 0.0 (floating point number) to nil.

That behaivour was incorrect for  numbers and probably not desiderable
for the  string no  (in fact  poll with "No"  option was  not rendered
beacause of this fact).

Removed conversion  for non- integer numbers  and prevented conversion
from some  kind of  non empty string  (like "nil" or  "no") via  a key
argument.
2021-01-23 15:40:51 +01:00
cage 6356331408 - [gemini] fixed purging and refreshing posts from subscribed gemlog
- changing  deleting   of  posts  references  to   logical  deleting
    (i.e. setting a boolean column to true);
  - fixed time threshold for purging (must be a negative integer).
2021-01-18 20:16:47 +01:00
cage 0fe939ea1d - shown a message when user's searching for commands retuns no results.
- updated italian translation

- improved a bit a signle docstring
2021-01-17 20:37:26 +01:00
cage 848ed6a043 - [gemini] fixed test for checking valid cached value for
certificate/key pair.

  The function  to find a  cached certificate/key  or create a  new pair
  retuns a multiple value.

  I was using multiple-value-list  for getting the pairs certificate/key
  from   said  functions.    Then  i   was  checking   the  results   of
  'multiple-value-list' for null values to get the non correct pair, but
  that expression never return nil (was returning '(nil) instead).

  This was breaking the client autentication.
2021-01-17 19:13:33 +01:00
cage 8e58698bfa - added some more tests for checking missing values from configuration files. 2021-01-16 13:17:15 +01:00
cage f4ec44adc1 - added some more human friendly error messages. 2021-01-16 11:29:39 +01:00
cage 382c61818d - create an empty config file if the user did not provided oopne, instread of printing an error and exit. 2021-01-13 17:28:23 +01:00
cage 72254f981a - prevented authorization of client if no server nameahs been provided
by the user in the config file.
2021-01-12 20:31:44 +01:00
cage 766367369c - added scheduling of purging of old gemlog's posts;
- updated italian translation.
2021-01-11 19:36:43 +01:00
cage ad33ca61df - [gemini] prevent gemlog window to lose focus when a gemlog is selected.
- made gemlog window close when focus passes to thread window.
2021-01-11 19:14:53 +01:00
cage 8aa7e223a3 - [gemini] mark post as read when opening the corresponding link. 2021-01-11 19:00:00 +01:00
cage db3b014bb8 - [gemini] fixed reendering of 'seen' flag for gemini post;
- fixed italian translation.
2021-01-11 18:57:01 +01:00
cage 7f5a21c9ed - [gemini] ensure link opened is saved in history. 2021-01-11 18:21:38 +01:00
cage 44b6c62e44 - [gemini]
- added command to refresh all gemlogs;
  - added scheduled refresh of all gemlogs;
  - fixed sorting of gemlog posts.
2021-01-10 13:01:03 +01:00
cage f09b0f4aa3 - [gemini]
- prevent crash when subscribing to an already subscribed gemlog;
  - added cancel of subscriptions.
2021-01-10 11:35:28 +01:00
cage 0cb5ef9c29 - used pkg-config in the libidn2 grovel file (thanks to yumh!). 2021-01-09 19:38:58 +01:00
cage eac0b7b5a7 - fixed message. 2021-01-09 16:28:59 +01:00
cage a0f8c83681 - [gemini] added a draft for gemlog subscriptions. 2021-01-09 16:27:40 +01:00
cage f6c02041ef - [gemini] added subscription command to gemlog. 2021-01-09 11:01:10 +01:00
cage 7e32091b6f - [gemini]
Started with gemlog subscription, added database table and interface
  and subscribing API.
2021-01-08 18:21:43 +01:00
cage ade19e76c5 - rendered visibility of a status when printed on the main window;
- tested with latest croatoan: no problem so far.
2021-01-06 11:42:23 +01:00
cage e9b7a45214 - removed IDN2_NO_ALABEL_ROUNDTRIP from grovel file for libidn2 (see previous commit message). 2021-01-03 20:24:28 +01:00
cage ad10c2517d - removed IDN2_ALABEL_ROUNDTRIP_FAILED from grovel file for libidn2
This value  has been added lately  to the C library  and some system
  (reportedly:  Debian Buster)  ships an  old version  of the  library
  without this enumeration's value.

  I am commenting out the code, preventing grovel to process it for now.
2021-01-03 19:29:16 +01:00
cage edd1aba2fe -[gemini] added urls to history if document is loaded from cached content too. 2021-01-03 11:28:54 +01:00
cage b846dff5ba - fixed hooks for remapping links in gemini window. 2021-01-02 18:06:20 +01:00
cage 62bd4ac19f - do not repeat a search if no search has been performed before. 2021-01-02 11:29:46 +01:00
cage 0e2e883d1a - added hook to all links displaying windows. 2020-12-31 19:18:21 +01:00
cage 55667c2511 - reverse link order in window. 2020-12-31 16:06:19 +01:00
cage a3c2550ff4 - Added a command line switch to load a module.
- fixed 'run-hook-compose'.
2020-12-31 15:36:10 +01:00
cage 8dae8ddac2 - added 'run-hook-compose';
- added a module to rewrite URLs.
2020-12-31 14:58:40 +01:00
cage b8d7af915c - made scheduled updating of chat messages happening only when a chat
window is shown

  This changes should make the  program more responsive when scrolling
  the text of the main window.
2020-12-31 11:54:40 +01:00
cage e9e4071132 - moved function. 2020-12-31 11:38:37 +01:00
cage 3245239eee - added a profiling macro;
- added function to stop event dispatching.
2020-12-31 11:36:34 +01:00
cage e87fc07e25 - allow repeat search on links window's items. 2020-12-30 12:38:31 +01:00
cage abec6a9322 - added a command to send data to an external program. 2020-12-30 12:24:13 +01:00
cage 7a98df4a5a - [gemini] fix split when separator is at the end of a path. 2020-12-29 20:36:42 +01:00
cage 9876213933 - using a cache for username completion. 2020-12-29 19:14:18 +01:00
cage aa24c49753 - changed default completion function to "no completion". 2020-12-29 18:39:45 +01:00
cage 77b7188581 - added command to repeat the last text search. 2020-12-29 13:01:59 +01:00