1
0
Fork 0
Commit Graph

50 Commits

Author SHA1 Message Date
cage 9568b88e8d - fixed adjusting strategy functions when drawing gemini text. 2021-10-08 11:37:53 +02:00
cage 5f4789be79 - removed useless comment. 2021-09-04 14:17:41 +02:00
cage 3f27420848 - added group-id property to all gemtext elements. 2021-09-04 14:17:25 +02:00
cage c22e427f18 - highlighted current TOC entry while browsing gemini page/gempub;
- added hook:*before-rendering-message-visible-rows*;

- changed default: appending hooks by default in hook:add-hook.
2021-09-03 12:32:09 +02:00
cage 5e230407c6 - added adjust-strategy-last to show text in message-window;
- removed call to 'adjust-selected-rows' when redrawing message-window;
- fixed 'adjust-selected-rows', wa never actually called.
2021-07-26 19:03:10 +02:00
cage 81b581ff14 - [gemini] changed streaming animation. 2021-07-22 20:18:22 +02:00
cage e5f93bd632 - [gemini] removed link prefix for link labels that starts with an emoji;
- [gemini] removed splitting of long link labels;
- fixed output stream of 'print-debug'.
2021-07-17 12:13:04 +02:00
cage a44d42201a - [gemini] changed animation when streaming data. 2021-07-14 21:24:41 +02:00
cage bb07663a0a - added a visual hint while a gemini page is streaming contents. 2021-07-14 19:00:23 +02:00
cage 287055f576 -[gemini] removed preformatted line truncate;
- [gemini] colored the alt text as the preformatted line (when shown).
2021-06-28 15:04:26 +02:00
cage 5fbb86419c - do not show marks for empty lines. 2021-06-27 14:02:47 +02:00
cage f6d87b15ec - marked that there is content on the left in message window when
scrolling horizontally.
2021-06-27 13:48:57 +02:00
cage 5e3c19811b - trucated long lines in message window and allowed horizontal scrolling. 2021-06-27 13:13:28 +02:00
cage 68c250e03c - fixed regression: searching in the message window does not get stuck at the first occurence. 2021-06-16 18:33:16 +02:00
cage 50c76209c5 - [gemini] removed removing of text from TOC entry. 2021-05-16 16:00:20 +02:00
cage 4a6e2fca3d - added a generated TOC for gemini files. 2021-05-16 15:23:55 +02:00
cage cd11e04658 - got rid of 'prepare-new-search' and 'cleanup-after-search';
- fixed misc:safe-subseq (subseq sequence -1)' does not signa an error anymore.
2021-05-13 15:32:31 +02:00
cage e319ccd112 - prevented out of bound condition when scrolling message-window's
contents.

  When  user switched  from a  page to  another shorter  the scrolling
  position was  not restored,  pointing outside  the actual  text line
  counts. This prevent the correct rendering of the page (a blank page
  is shown instead) and crash the software if scrolling up.

  Thanks op!
2021-05-02 16:28:50 +02:00
cage be6f2a9551 - fixed end position for 'visible-rows' 2021-04-21 16:36:45 +02:00
cage 02894dcc64 - optimized module 'rewrite-message-urls.lisp'. 2021-04-21 16:29:50 +02:00
cage 0cd1f77c7f - fixed rendering of text: all text is now rearranged to fit the
window.
2021-04-20 20:28:04 +02:00
cage a9ce526dce - added 'remove-corrupting-utf8-chars' to clean up rendered text from trouble characters. 2021-04-13 18:32:48 +02:00
cage a4630f08af -[gemtext] added metadata for list and link lines. 2021-04-13 17:29:25 +02:00
cage a91ec4c7ae -[gemtext] added metadata to header lines;
- fixed processing of follow requests.
2021-04-13 17:02:30 +02:00
cage 15bbb49d5e - [gemini] added feature to toggle preformatted block on/off;
- [gemini] trimmed alt-text;

- reworded some functions.
2021-04-11 15:19:45 +02:00
cage 84a8029c9a - specialized message-window' to skip invisible rows. 2021-04-11 11:06:39 +02:00
cage 6786d48f6d - rewritten rendering of text in message window
i got rid of slot support-text in message-window, so that class does
  not maintain a state.

- changed behaivour of split-line
  (split-line (format nil "~2%")) ; => ("" "")

  That is an emtpy line is returned as empty string and not skipped
  Thanks to people from IRC and cl-ppcre maintainer for help!

- [breaking changes] changed 'hooks:*before-prepare-for-rendering-message*
  with 'hooks:*before-rendering-message-text*.
2021-04-10 13:52:56 +02:00
cage ddb74a600f - [gemini] tag preformatted text lines with metadata (group-id and alt text). 2021-04-08 16:32:34 +02:00
cage ca2ace2551 - discouraged use of slot 'rows' for 'row-oriented-widget', used API instead. 2021-04-08 15:13:31 +02:00
cage 3ca18e1fd9 - fixed searching in links or gemini pages: searching starts from the first row. 2021-04-06 19:59:58 +02:00
cage f6556fd4ff - fixed search in message window.
If more than  one occurence of the matched string  was present (in the
same line) drawing the last will overwrite the others.
2021-04-06 18:27:47 +02:00
cage 816a04812d - fixed search in message-window;
- there  was a  lot of  problems  related to  type of  an element  of
    'rows', they must be always a complex string

  - moreover there  was an incorrect  positioning of the  matching string
    when  character  with  column  width >1  was  present  before  the
    string compatible with the regex.
2021-04-05 18:10:14 +02:00
cage 9572f2a917 - changed 'source-text' to 'support-text'. 2021-04-05 17:33:16 +02:00
cage eaf23afb58 - [gemini] fixed rendering of quoted lines;
- [gemini] do not set, always append, source text when refreshing a gemini window.
2021-04-05 14:47:57 +02:00
cage fac77297e8 - [gemini] started coloring preformatted block. 2021-04-05 12:01:30 +02:00
cage 9e3269576d - [gemini] improved rendering of quoted text. 2021-04-03 15:03:24 +02: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 94a8e29f84 - [gemini] added a command to refresh a page;
- refactoring some code to add the above command.
2020-12-29 12:36:22 +01:00
cage d5f0121923 - fixed keymap of messages window when switching focus or opening a toot. 2020-10-02 18:26:59 +02:00
cage 52f550df5e - added feature create new chat;
- fixed crash when selecting a chat with no messages.
2020-09-10 17:50:22 +02:00
cage f135292e53 - basics chats works. 2020-09-06 17:28:16 +02:00
cage b2b3e65431 - posting on chats works;
- fixed ordering  in db:all-chat-messages (message-id was  not a valid
  column name);
- added scheduled events;
- minor changes in labels.
2020-09-06 14:42:16 +02:00
cage c5118d46a6 - changed GPL comment headers. 2020-09-06 11:32:08 +02:00
cage a129f14834 - fixed vertical position of line mark in message window. 2020-09-06 11:25:23 +02:00
cage 6135cc5c02 - fixed 'line-oriented-window:row-move' must return always a number
(0), not nil, when no movement occurs;

- fixed vertical scrolling boundaries of messages window.
2020-09-06 11:18:49 +02:00
cage 254cd94720 - [gemini] the parser has been modified to renders (in a separate
thread) the contents of a gemini  file parsed so far without waiting
  for the whole document to be read from the socket.

  This  feature should  prevent blocking  the client  when the  server
  never close the socket (i.e. for streamed contents).
2020-07-26 12:07:26 +02:00
cage 562d023b55 - fixed regex for percent numbering;
- formatted as floating points votes percentage in polls.
2020-07-13 17:27:46 +02:00
cage d1266fa422 - fixed bug that prevented to properly reset links list when in gemini mode. 2020-06-28 12:59:23 +02:00
cage 9461c0ea70 - gemini client works (but missing client authorization using certificates). 2020-06-22 14:03:06 +02:00
cage c56a5b86ca - initial commit. 2020-05-08 15:45:43 +02:00