summaryrefslogtreecommitdiff
path: root/ui/style.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Optimize URL regexdelthas2022-04-151-1/+1
| | | | | | | | | | Following a quick local profiling & benchmark, matching links with regexes is by far (>50x) the most time-consuming processing we do, especially on start. Switching to a URL regex with any scheme is faster by a factor of ~x8, probably because there are many less "or" cases between a list of 100+ schemes, instead using a simple character class.
* Add HTTPS schema by default to hyperlinksdelthas2022-03-291-0/+4
|
* Optimize URL parsing performancedelthas2022-02-181-0/+5
| | | | | | | | | According to a CPU profiling I meade, the regex applied on each incoming message took a substantial part of the CPU time. The slowdown it caused was noticable at startup. This optimizes the URL parsing by eliminating fast-path cases where no dot appears to avoid parsing the line with a regex in those cases.
* Rename ColorGrey to ColorGray for consistencyHugo Machet2022-02-101-1/+1
|
* Fix link value, removing debug query stringdelthas2021-11-191-1/+1
|
* Mark hyperlinks with the OSC hyperlink terminal escapedelthas2021-10-311-0/+65
| | | | | | This makes multi-line links properly clickable. See: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
* Fix ui.StyledStringBuilderHubert Hirtz2021-10-221-4/+30
|
* More lintsHubert Hirtz2021-09-131-1/+1
|
* Pick nick colors in terminal color schemeHubert Hirtz2021-05-261-180/+195
| | | | So that the colors go well with the terminal background.
* Blacklist more colorsHubert Hirtz2021-04-271-1/+3
|
* Vertical channel listHubert Hirtz2020-10-261-0/+19
|
* Display strike-through textHubert Hirtz2020-10-181-6/+13
|
* Update tcell to v2 andHubert Hirtz2020-10-181-5/+21
| | | | | - enable bracketed paste - use hex color codes instead of ansi
* Update tcell and support italicsHubert Hirtz2020-08-261-1/+1
|
* General refactor yayHubert Hirtz2020-08-261-0/+8
| | | | | | | | | | | | - Centralize message formatting - Make line formatting more flexible - Provide more information in irc events - Refactor command handling - Add a /help command - Make /me reply to last query if from home - Enforce argument for /me - Make BufferList and Editor public - Batch processing of IRC events
* ui: Fix color codesHubert Hirtz2020-08-211-36/+18
|
* ui: Strip formatting codes in notificationsHubert Hirtz2020-08-201-3/+3
|
* Actually the rune width issue is from alacrittyHubert Hirtz2020-08-061-3/+1
|
* Support reverse character codeHubert Hirtz2020-08-051-0/+7
|
* Fix colors not being reset with \x03Hubert Hirtz2020-08-051-0/+4
|
* Use a custom runewidth.ConditionHubert Hirtz2020-08-051-1/+13
| | | | | Because some characters were not using the number of cells runewidth.RuneWidth returned, eg \u2026 and \u2192.
* Rework displayHubert Hirtz2020-08-041-0/+191
- Put timestamps, nicks and messages into separate columns - Print a bar in the "typing" row - Fix word wrapping - Improve channel list display