Robert C. Martin
6760ba48a8
Fixed unicode and slashes. json/write-str was escaping them.
2022-04-20 10:22:52 -05:00
Robert C. Martin
bc2b912cab
Rudimentary reply is working.
2022-04-20 09:15:31 -05:00
Robert C. Martin
7afaa564c6
Copies article being replied to into edit window, prefixed with '>'.
2022-04-19 13:51:41 -05:00
Robert C. Martin
52639cb80e
fixed improperly created graphics-dummy.
2022-04-18 16:13:07 -05:00
Robert C. Martin
6cbeceb035
Begin the process of replying. ^R is the reply command. So far just clears the edit window if no article is selected.
...
Also began creation of the object-mother.
2022-04-18 16:03:11 -05:00
Robert C. Martin
5fde839565
Clean out old elliptic_signature code that was replaced by the Schnorr java library.
2022-04-18 08:09:47 -05:00
Robert C. Martin
6ab3246d80
Kill edit window buffer after sending message.
2022-04-17 17:27:05 -05:00
Robert C. Martin
0b1da7f1ca
Hitting ^S in edit window actually composes and sends the event to the relay! WOOT!
2022-04-15 10:52:11 -05:00
Robert C. Martin
6472e7ca9b
Add the BIT340_Schnorr code from https://code.samourai.io/samouraidev/BIP340_Schnorr
...
Works. The first message from more-speech was sent to the nostr network using the signature created by this code.
2022-04-14 16:06:09 -05:00
Robert C. Martin
beb998fc0d
Implement ^s to send as a shortcut.
...
Format message to send.
Sign and paste message into core.
Signature verification error.
Add test to detect the error.
This one is going to take awhile.
2022-04-10 13:40:22 -05:00
Robert C. Martin
b798a9201c
mend
2022-04-10 09:36:08 -05:00
Robert C. Martin
9433b71ef3
Add private to .gitignore
2022-04-10 09:33:40 -05:00
Robert C. Martin
bad0745fcc
Add threading diagnosis to stories.
2022-04-09 10:04:30 -05:00
Robert C. Martin
6f767f0256
Keeps websocket open until GUI is closed; and then closes down connection nicely.
2022-04-09 09:56:37 -05:00
Robert C. Martin
0688fc35ab
Added things to todo list.
2022-04-08 12:35:27 -05:00
Robert C. Martin
efe273e32b
Better sorting technique, using sorted-set. I expect that will do insertions rather than continual sorting of a large collection. Also reversed the sense of the sort, so latest articles are on top.
2022-04-08 12:28:30 -05:00
Robert C. Martin
2addd2e5f7
Sort incoming events by created-time. This might be very inefficient if the number of events in large.
2022-04-08 08:21:30 -05:00
Robert C. Martin
12262b0f79
Use java.net.http.Websocket instead of 'aleph'. Works great!
2022-04-07 12:28:34 -05:00
Robert C. Martin
d0ce37dc1a
Edit the gateway table.
2022-04-07 10:32:11 -05:00
Robert C. Martin
b4fd031e36
Running with nostr protocol. Sorta works with certain relays.
2022-04-05 12:48:54 -05:00
Robert C. Martin
a56eb819bb
Bringing in the nostr protocol.
2022-04-05 10:12:16 -05:00
Robert C. Martin
e09addbbec
Can use backspace to delete characters in edit window.
2022-04-03 10:12:37 -05:00
Robert C. Martin
e726c21f06
Can add multiple lines to edit window. Can navigate with arrows. Ignores control keys, etc.
2022-04-02 12:21:33 -05:00
Robert C. Martin
849ee68e63
Can add chars to edit window. Very primitive, but...
2022-04-02 10:13:28 -05:00
Robert C. Martin
52503bdd98
Flashing text cursor in edit window. Very preliminary.
2022-04-01 08:24:02 -05:00
Robert C. Martin
b16c8236f6
Fix threading issue by using only the first reference from an event. This prevents the same article from showing up more than once in the headers. Later we might want a menu of references; but not now.
2022-03-17 13:15:26 -05:00
Robert C. Martin
dbfce698ce
:cursor on the text-frame controls which cursor will be applied. :frame-tags on the text-window merges with the text-frame.
2022-03-17 09:03:26 -05:00
Robert C. Martin
1f6273f334
Added the edit window. Non-functional.
2022-03-08 11:27:24 -06:00
Robert C. Martin
e9ce907495
Window Titles.
2022-03-07 14:44:00 -06:00
Robert C. Martin
9038199c35
Clean up author window formatting.
2022-03-07 08:23:27 -06:00
Robert C. Martin
acf4250223
Fix reformatting bug that inserted a line end before the last word.
2022-03-07 07:34:21 -06:00
Robert C. Martin
502964a328
Arrow keys move the selected header.
2022-03-05 13:23:09 -06:00
Robert C. Martin
1e3bc8611b
Route key-pressed events through the widget and text-window structure so that text-frames can respond to them.
2022-03-05 09:29:29 -06:00
Robert C. Martin
421488c26f
Keyboard focus and passing events from child to parent widgets. A little cleanup in widget to ensure functions are functions.
2022-03-04 07:32:16 -06:00
Robert C. Martin
fb0abcc2c2
Refactor and add tests to reformat-article. Much improved.
2022-03-03 12:24:32 -06:00
Robert C. Martin
4bd5abb22c
Very preliminary formatter for articles. Based on the old word-wrap problem.
2022-03-03 11:30:00 -06:00
Robert C. Martin
5ccb060d98
Headers abbreviated properly.
2022-03-03 08:49:21 -06:00
Robert C. Martin
b2df19a432
Repartitioning. Eliminated content/article. Created ui/formatters and moved specific formatting into the window modules. Those modules will likely need to be split into specific control and formatting modules. But not yet.
2022-03-03 08:18:29 -06:00
Robert C. Martin
060be44533
Move most author window processing out of draw and into update. Saves cycles.
2022-02-28 16:20:02 -06:00
Robert C. Martin
c1c923ac28
Preliminary content in article window. Needs a lot of formating, word wrapping, etc. But works for now.
2022-02-28 15:07:04 -06:00
Robert C. Martin
c5b1cfd6a4
Layout article-window. No content yet.
2022-02-28 14:03:43 -06:00
Robert C. Martin
f2abe0e6f5
Move computation of authors to display from the draw function to the update function. This will drastically reduce the load on the draw cycle.
2022-02-27 08:08:33 -06:00
Robert C. Martin
44af6bcf9a
Add some unit tests that would have helped me through my previous headache.
2022-02-26 11:27:23 -06:00
Robert C. Martin
91a821a73c
Use mouse functions in defsketch instead of the silly stuff I was doing in button. This was a big change that took a long time and was a big headache. Forced me to repartion widget and app-util to avoid cyclic dependencies.
2022-02-26 09:48:37 -06:00
Robert C. Martin
c920f46432
Can select and deselect headers.
2022-02-25 09:15:03 -06:00
Robert C. Martin
a0f77dc33b
Yeah, the deferral was a bad idea. Better to simply find the deepest widget that the mouse is in that also has a :mouse-wheel function.
2022-02-24 14:15:50 -06:00
Robert C. Martin
4244ea9f53
Header is hilighted when mouse hovers. This required quite a bit of refactoring in order to tune the button tags and defer the mouse-wheel up from the button to the frame. I'm not sure that deferral is the right approach.
2022-02-24 13:57:44 -06:00
Robert C. Martin
18b6d4c75d
Merge text-frame into text-window, rearrage a bit, and write header comment for text-window.
2022-02-24 09:12:42 -06:00
Robert C. Martin
417d6e4ce4
Prune unused code.
2022-02-21 16:48:00 -06:00
Robert C. Martin
cbc94c1ac3
Author window now uses text-window abstraction. Fits like a glove.
2022-02-21 14:41:13 -06:00