Commit Graph

113 Commits

Author SHA1 Message Date
Tulir Asokan
dbee49476d Start refactoring various things in message rendering and sending 2019-04-09 18:45:41 +03:00
Tulir Asokan
2b6c435e50 Refactor message parsing things 2019-04-09 18:42:49 +03:00
Tulir Asokan
927be9bdcd Move stripLinebreak to a struct field in the HTML parser 2019-04-09 01:03:17 +03:00
Tulir Asokan
887e2e232a Fix non-syntax-highlighted code block newline rendering 2019-04-09 00:59:56 +03:00
Tulir Asokan
5d7c1a4caa Improve handling of multiple linebreaks 2019-04-07 22:54:55 +03:00
Tulir Asokan
e6180c9b6f Move special list/blockquote prefixing to renderer 2019-04-07 22:25:53 +03:00
Tulir Asokan
cf93671ecd Add syntax highlighting. Fixes #28 2019-04-07 20:13:23 +03:00
Tulir Asokan
083ae8bd44 Remove commented code 2019-04-07 18:25:13 +03:00
Tulir Asokan
b0c4ef81e9 More changes to do #91 2019-04-07 18:21:38 +03:00
Tulir Asokan
21b81ccb27 Initial changes to do #91 2019-04-07 03:22:51 +03:00
Tulir Asokan
7ad2103f8f Move history storage to matrix package. Fixes #90 2019-04-05 23:44:17 +03:00
Tulir Asokan
cc63a197c6 Change more things 2019-03-26 22:09:10 +02:00
Tulir Asokan
c3c7cc9b35 Change things 2019-03-26 19:57:44 +02:00
Tulir Asokan
8aa134b8b2 Start moving to mauview 2019-03-26 00:37:35 +02:00
Tulir Asokan
bf2a5e9b34 Update license and sort imports 2019-01-23 00:26:51 +02:00
Tulir Asokan
331597b9f8 Switch to Go modules and make other changes 2019-01-11 23:28:47 +02:00
Tulir Asokan
a0815a6f3d Fix named colors and remove HTML from plaintext body when sending 2018-11-14 00:28:53 +02:00
Tulir Asokan
ba387764ca Fix things 2018-11-14 00:00:35 +02:00
Tulir Asokan
cfb2cc057c Update to latest gomatrix. Things are broken 2018-09-05 10:55:48 +03:00
Tulir Asokan
5e3994ce2c Add font tag support and /rainbow command 2018-06-11 19:52:22 +03:00
Tulir Asokan
b9079e22d2 Gofmt 2018-06-02 00:44:21 +03:00
Tulir Asokan
134604edce Add ui toggle for image rendering 2018-06-02 00:43:56 +03:00
Tulir Asokan
7868bd90fa Improve newlines in HTML parser 2018-06-02 00:28:21 +03:00
Tulir Asokan
1da02e3a13 Rewrite HTML parser 2018-05-31 16:59:40 +03:00
Tulir Asokan
b63c451706 Fix m.emote messages in bare message views 2018-05-27 14:51:16 +03:00
Tulir Asokan
1d44d3da1a Add real bare view 2018-05-23 00:44:29 +03:00
Tulir Asokan
14903e0cdc Add bare mode and fix terminal resize bug. Fixes #48 2018-05-22 22:06:49 +03:00
Tulir Asokan
4849ef08b8 Re-enable coloring of new name in name change events 2018-05-22 21:18:46 +03:00
Tulir Asokan
c87097627e Split up getMembershipEventContent() 2018-05-22 17:36:41 +03:00
Tulir Asokan
cce79ab7d8 Clean up code 2018-05-22 17:23:54 +03:00
Tulir Asokan
512ca88804 Fix notifications about own messages 2018-05-16 21:42:07 +03:00
Tulir Asokan
fdbb168e2b Display ban/unban events 2018-05-15 18:02:36 +03:00
Tulir Asokan
709a57d029 Fix displayname in leave messages 2018-05-15 17:55:08 +03:00
Tulir Asokan
5884ce3233 Fix sender color in membership events 2018-05-15 17:55:08 +03:00
Tulir Asokan
b6ebd7d8b5 Don't colorize new name in name change message 2018-05-15 17:55:08 +03:00
Tulir Asokan
c600ce68a2 Fix room list updating when joining/leaving 2018-04-30 23:09:14 +03:00
Tulir Asokan
cc929ba899 Fix splitting long messages without spaces. Fixes #38 2018-04-30 12:01:43 +03:00
Tulir Asokan
74119ee242 Move defer and add a debug print 2018-04-30 12:01:24 +03:00
Tulir Asokan
7026ed99a3
Merge pull request #33 from tulir/initial-sync
Use initial sync data instead of fetching room list, state, history, etc manually
2018-04-24 22:58:30 +03:00
Tulir Asokan
d7d654e2ec Flatten calculateBufferWithText() and gofmt 2018-04-24 22:50:04 +03:00
Tulir Asokan
49cd74c548 Replace tabs with spaces so that they get rendered 2018-04-24 22:09:04 +03:00
Tulir Asokan
e64df67ec3 Everything is no longer broken 2018-04-24 16:51:40 +03:00
Tulir Asokan
7e946a0703 Fix golint warnings 2018-04-22 20:14:40 +03:00
Tulir Asokan
c3386ba118 Fix golint issues 2018-04-19 11:35:52 +03:00
Tulir Asokan
b1dc965a4a Gofmt 2018-04-19 11:10:34 +03:00
Tulir Asokan
b17ff318c2 Disconnect UI from main Gomuks struct. Fixes #21 2018-04-18 18:35:54 +03:00
Tulir Asokan
3b2d5fa034 Fix nick coloring 2018-04-18 17:33:59 +03:00
Tulir Asokan
bb36996194 Add support for sending Markdown messages 2018-04-18 14:46:03 +03:00
Tulir Asokan
3750d5007f Create pills when tab-completing or clicking nicks 2018-04-18 13:38:33 +03:00
Tulir Asokan
4f4e78ae0c Fix another nil pointer panic in the HTML parser (ref #20) 2018-04-16 12:04:00 +03:00
Tulir Asokan
0d4d597909 Fix panic in HTML parser (#20) 2018-04-15 17:54:11 +03:00
Tulir Asokan
28e5f9d4b0 Add package docs 2018-04-15 13:34:39 +03:00
Tulir Asokan
85757c387e Fix typo in newline stripping 2018-04-14 11:50:57 +03:00
Tulir Asokan
f5530ff99c Move message parsing to parser subpackage 2018-04-14 11:50:18 +03:00
Tulir Asokan
782ba0657a Make HTML rendering more advanced
Also add Python-like HTML parser thing in lib/htmlparser
2018-04-14 11:44:09 +03:00
Tulir Asokan
e7bf5bd59f Add basic HTML rendering (ref #16) 2018-04-14 00:34:25 +03:00
Tulir Asokan
69c163cfe9 Unknown changes that possibly fix and/or break things 2018-04-13 21:25:45 +03:00
Tulir Asokan
7e5e802e90 Cache TString version of UITextMessage.MsgText 2018-04-11 19:36:15 +03:00
Tulir Asokan
92a2428865 Allow clicking images and load images from cache 2018-04-11 19:20:40 +03:00
Tulir Asokan
ff7ee333a1 Rename UIString to TString, move ansimage to lib/ and switch to tcell fork 2018-04-11 17:57:15 +03:00
Tulir Asokan
8270bc0322 Move event parsing to ui/messages and add image displaying 2018-04-10 19:31:28 +03:00
Tulir Asokan
ee67c1446c Convert message buffer to use custom colorable strings 2018-04-10 16:07:16 +03:00
Tulir Asokan
eda2b575f0 Refactor UI to use interfaces everywhere 2018-04-09 23:45:54 +03:00