summaryrefslogtreecommitdiff
path: root/ui/buffers.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Multi-WIP that I probably should have done in multiples commits:Jordan Bracco2023-01-151-5/+13
| | | | | | | | | | | | | | | | | | | | - more colors settings: - server foreground - channel foreground (active, inactive) - dumb cosmetic changes because why not (`!` -> `:(`, coloring) - temporary lines to unclutter main ui from disconnections/reconnections - display line head only once in case of multiple lines - cosmetic motd - handle 396 numeric as "server" head - improved ACTION display - imrpoved topic display bugs: - ACTION fucks up with multi-line head - multi-line head needs rework before trying upstream - what the fuck to with my cosmetic changes - document new config values
* feat(ui): Only show nickname once for multiple consecutive messagesJordan Bracco2023-01-151-0/+16
|
* Clear highlights from MARKREAD when only NotifyNone lines are leftdelthas2022-10-181-8/+14
| | | | | | | | | | | | | | | | | Previously, we did not clear buffers highlight statuses on MARKREAD if there was any unread line after it. This meant that if we received a plain message, than a join message, and some other device sent us a read marker for the plain message, we would still highlight the buffer. But we should not: a join message should not highlight the buffer. This is a recurrent use case because some clients do not display join mesasges and therefore do not send read markers for it. This updates the logic to actually store the notify level (in the line) and uses it to reset the highlight status when only NotifyNone messages (or no messages) are left.
* Scroll to buffer on zoomNomeji2022-10-131-0/+4
|
* Always show the date of the top messagedelthas2022-08-281-15/+20
| | | | | | Even if it is a continuation line. Fixes: https://todo.sr.ht/~taiite/senpai/98
* Show the message date instead of its time on date changedelthas2022-08-161-1/+12
| | | | Fixes: https://todo.sr.ht/~taiite/senpai/17
* Add support for soju.im/bouncer-networks-notifydelthas2022-08-101-0/+14
| | | | | | This enables dynamic discovery of new and deleted networks. Fixes: https://todo.sr.ht/~taiite/senpai/71
* Add pane-widths { text } to limit the max line widthdelthas2022-07-251-6/+12
| | | | Fixes: https://todo.sr.ht/~taiite/senpai/87
* Scroll to the channel when changing the horizontal channelNomeji2022-07-221-16/+32
| | | | | | | | | | | | | Previously, when running CTRL+N or CTRL+P to go to the next or previous channel, with the horizontal channel mode, the selected channel could appear offscreen. This patch ensures that we scroll just enough to make the newly selected chan visible. Thanks to Nomeji for his hard work on this. Adapted slightly to refactor existing code to use the newly created width computation routine.
* Fix horizontal channel list buffer underline positiondelthas2022-05-101-0/+1
|
* Handle IRC read events correctlyptrcnull2022-04-271-1/+1
| | | | | It should mark the buffer as read if the last message was before or at the "read" event, not after.
* Defer parsing URLs until a buffer is opened at least oncedelthas2022-04-201-2/+11
| | | | | | This heavily reduces CPU load on start, so that we only parse the links of the current buffer hundreds of messages, rather than all of the hundreds of messages * count of buffers.
* Add a config option for unread buffer text colorTim Culverhouse2022-04-201-3/+6
| | | | | | | This patch adds the ability to set a config option for changing the foreground text color of unread buffers (This was refactored slightly by delthas.)
* Enable clicking on a horizontal buffer to switch to itdelthas2022-04-201-0/+23
| | | | | | | This is inspired by a patch from mooff. This keeps the same click & drag behavior as for the vertical channel list.
* Scroll horizontal channel list with the mouse wheeldelthas2022-04-201-3/+22
| | | | | | This is inspired by a patch by mooff. The horizontal channel list can now be scrolled with the mouse wheel.
* Only send READ for messages received from a channeldelthas2022-04-151-4/+11
| | | | i.e. don't enter an infinite loop when printing disconnection errors :-)
* Implement SEARCHdelthas2022-04-121-31/+65
| | | | | | Also refactor ui/ to support overlays, temporary anonmyous buffers. See: https://github.com/emersion/soju/pull/39
* Fix event collapsingdelthas2022-02-111-1/+1
|
* Add support for the soju.im/read capability and READ commanddelthas2022-02-111-0/+34
| | | | See: https://github.com/emersion/soju/blob/c7f0634ec8ee94425547b159bc36705582151012/doc/read.md
* ui: buffers: sort buffer listKalyan Sriram2022-02-101-24/+31
| | | | | Implements sorting of both network names and buffer names inside networks.
* ui: use reverse colors for current buffer instead of underlineSimon Ser2021-12-121-5/+3
| | | | I personally find this esthetically more pleasing.
* Merge redundant eventsHubert Hirtz2021-12-061-16/+23
|
* Add support for draft/event-playbackdelthas2021-11-241-22/+31
| | | | | | | | | | - Refactor formatting lines into a function - Store event times in the event - Refactor merging lines into a function - Always merge lines from the history, now that we will add mergeable lines with CHATHISTORY Successfully tested locally.
* Show the current channel topic at the top of the timelinedelthas2021-11-241-13/+37
|
* Fix part-ing a channel with duplicate name in other networksdelthas2021-11-161-12/+10
| | | | | If there are multiple channels with the same name in several networks, we should part from the one from the correct network.
* Revert "Show the current channel topic at the top of the timeline"Hubert Hirtz2021-11-051-36/+12
| | | | | This reverts commit 96340f8c4d91f59f6e39767891f9bb52d7fad329 because of a bug in timeline rendering.
* Show the current channel topic at the top of the timelinedelthas2021-11-041-12/+36
|
* Mark hyperlinks with the OSC hyperlink terminal escapedelthas2021-10-311-0/+6
| | | | | | This makes multi-line links properly clickable. See: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
* Make vertical channel list scrollabledelthas2021-10-311-7/+15
| | | | Seems like I really have too many channels... :)
* Scroll up/down highlight by highlightHubert Hirtz2021-10-261-0/+30
|
* timeline drawing: fix off-by-one errorHubert Hirtz2021-10-261-6/+2
|
* Support for soju.im/bouncer-networksHubert Hirtz2021-10-241-18/+61
| | | | | | | | | | | | | | | This patch also disable the highlight on reconnect. This might be an issue (the user would want to know when senpai is online again?), but with multiple connections, it's bothersome to have to unread all of them on start (it wasn't a problem with only one connection since it was read instantly). Now, lastbuffer.txt also contains the network ID, otherwise the user might end up on another buffer with the same name. This patch does not extend /r to support multiple networks (it will send the message to the latest query, whatever the current displayed network is).
* Rework vertical listsHubert Hirtz2021-10-221-24/+18
|
* Cleanup drawVerticalMemberListHubert Hirtz2021-10-191-34/+0
|
* Only show buffer numbers when necessaryHubert Hirtz2021-10-191-4/+12
| | | | | | Saves space also removed non-edition related method IsCommand out of editor.go
* Fix horizontal channel bar drawingHubert Hirtz2021-09-131-0/+4
|
* Random code improvements/tidyingHubert Hirtz2021-09-111-2/+0
|
* Fix typosHubert Hirtz2021-09-111-4/+4
|
* Fix line wrapping not working on historyHubert Hirtz2021-09-081-0/+7
|
* Use messageBounds for infinite scroll CHATHISTORY requestsHubert Hirtz2021-09-031-8/+0
|
* Channel list is horizontal by defaultHubert Hirtz2021-09-011-0/+31
|
* Fetch missed messages on reconnectHubert Hirtz2021-09-011-39/+10
| | | | just one step closer to proper CHATHISTORY support!! :=D ^v^
* Enable scrolling through the vertical member list with the mouse wheeldelthas2021-08-061-3/+15
|
* Make buffers indexed, and refer to indexes with /BUFFERdelthas2021-07-151-1/+9
| | | | Fixes: #29
* ui: Introduce a vertical member list on channelsdelthas2021-07-141-17/+39
| | | | | | | | Also, fix the UI timeline clearing too much, as well as the status line. Also, remove the width in the editor and buffer list constructors. We were initializing them with wrong values, only to overwrite these values with correct ones later in Resize().
* Add notify types for fine-grained control of unread/highlight statedelthas2021-07-141-3/+11
| | | | | | | | Namely, we want the unread light to show up only on actual messages, not commands etc. This opens the way for not showing an unread light when printing topic on join.
* Switch to the buffer of a new user-requested channel joindelthas2021-07-131-5/+4
|
* Do not print empty rowsHubert Hirtz2021-07-111-0/+4
| | | | | If a message contains a sequence of spaces/tabs that is wider than the terminal, do not print an empty row.
* Pick nick colors in terminal color schemeHubert Hirtz2021-05-261-44/+40
| | | | So that the colors go well with the terminal background.
* Fix duplicate lines when scrolling upHubert Hirtz2021-04-271-1/+21
|