summaryrefslogtreecommitdiff
path: root/ui (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Make vertical channel list scrollabledelthas2021-10-312-9/+33
| | | | Seems like I really have too many channels... :)
* Sync screen during resizeHubert Hirtz2021-10-271-0/+1
| | | | For CtrlL to actually refresh the screen.
* Scroll up/down highlight by highlightHubert Hirtz2021-10-262-0/+38
|
* timeline drawing: fix off-by-one errorHubert Hirtz2021-10-261-6/+2
|
* status bar drawing: fix off-by-one errorHubert Hirtz2021-10-261-7/+1
|
* Support for soju.im/bouncer-networksHubert Hirtz2021-10-242-25/+81
| | | | | | | | | | | | | | | 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).
* Make use of away-notifyHubert Hirtz2021-10-231-2/+10
|
* Rework vertical listsHubert Hirtz2021-10-223-37/+43
|
* Fix ui.StyledStringBuilderHubert Hirtz2021-10-222-4/+31
|
* Cleanup drawVerticalMemberListHubert Hirtz2021-10-192-35/+31
|
* Only show buffer numbers when necessaryHubert Hirtz2021-10-193-16/+22
| | | | | | Saves space also removed non-edition related method IsCommand out of editor.go
* Fix horizontal channel bar drawingHubert Hirtz2021-09-132-1/+5
|
* More lintsHubert Hirtz2021-09-133-14/+14
|
* Random code improvements/tidyingHubert Hirtz2021-09-112-3/+1
|
* 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-032-13/+0
|
* Don't show the member list by defaultHubert Hirtz2021-09-011-1/+3
|
* Channel list is horizontal by defaultHubert Hirtz2021-09-012-7/+61
|
* Fetch missed messages on reconnectHubert Hirtz2021-09-012-42/+13
| | | | just one step closer to proper CHATHISTORY support!! :=D ^v^
* Remove outdated UI testsHubert Hirtz2021-08-071-20/+0
| | | | IRC formatting is now handled prior to word wrapping.
* Introduce backsearch message support with ctrl+Rdelthas2021-08-072-8/+123
| | | | Fixes: #47
* ui: fix editor testsAlexey Yerin2021-08-061-5/+10
|
* Enable scrolling through the vertical member list with the mouse wheeldelthas2021-08-062-7/+45
|
* Make buffers indexed, and refer to indexes with /BUFFERdelthas2021-07-151-1/+9
| | | | Fixes: #29
* ui: Introduce a vertical member list on channelsdelthas2021-07-143-30/+60
| | | | | | | | 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-142-5/+13
| | | | | | | | 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.
* Don't send typing=done when input is already emptyHubert Hirtz2021-07-132-5/+5
|
* Switch to the buffer of a new user-requested channel joindelthas2021-07-132-7/+14
|
* Clear the input on CTRL+C instead of quittingdelthas2021-07-132-0/+16
| | | | | | | | We have /QUIT for quitting. Most well-known IRC clients don't quit on CTRL+C but they do on QUIT. Clearing the editor input on CTRL+C is useful for shell-like behaviour "abort current line, let me start my line again".
* Ignore case when searching for a /BUFFERdelthas2021-07-121-1/+2
| | | | Best-effort regular casemapping, not the IRC session's one. :P
* 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.
* ui: don't mark // in input as a commandAlexey Yerin2021-07-081-1/+5
| | | | | | | | | Prior to this, IsCommand was returning true for inputs starting with two slashes and thus showing ">"-prompt. This is a possible confusion (and unwanted behaviour) because the user might think that they are writing a command but in fact, the message would be sent verbatim (excluding first slash).
* Pick nick colors in terminal color schemeHubert Hirtz2021-05-266-275/+367
| | | | So that the colors go well with the terminal background.
* Fix ui testsHubert Hirtz2021-05-252-14/+14
|
* ui/editor: add boundary checks for word actionsAlexey Yerin2021-05-171-3/+3
| | | | | Prior to this, if the input is spaced out (whitespace skip), word movements caused senpai to crash because there were no boundary checks.
* Properly show cursor on two-width charactersHubert Hirtz2021-05-111-8/+2
|
* go fmtHubert Hirtz2021-05-111-3/+2
|
* Make mouse support optionalAlexey Yerin2021-04-281-1/+4
| | | | | | To not break existing users, mouse is enabled by default but you have an option to disable it with "mouse: false" in your /.confg/senpai/senpai.yaml.
* editor: Ctrl+{Right,Left} moves cursor by wordsAlexey Yerin2021-04-272-0/+39
| | | | | A very useful readline feature when combined with ^W can be a really quick way to reformat a sentence, which is what I do on IRC quite often.
* Add BUFFER command to jump to the matching bufferAlexey Yerin2021-04-271-0/+12
| | | | | Is is very useful when you have joined a bunch of channels and scrolling with Ctrl+n/Ctrl+p is quite inefficient.
* Fix duplicate lines when scrolling upHubert Hirtz2021-04-271-1/+21
|
* Blacklist more colorsHubert Hirtz2021-04-271-1/+3
|
* editor: add ^W delete word bindingAlexey Yerin2021-04-262-0/+34
| | | | | | | | | | It allows to delete the current word (any string of characters until a space). Also, all spaces at the start are cleared to allow doing something like: Hello world| Hello | <- the cursor is at a space | <- nothing left
* Support cycling backward in auto-completionsHubert Hirtz2021-03-042-7/+5
|
* Do not use dim styles on the buffer listHubert Hirtz2021-03-041-3/+3
| | | | | | | Reverse + Dim is not rendered the same way across terminals. For example, - alacritty shows black text on gray background - kitty shows gray text on white background
* Fix random crash on startupHubert Hirtz2021-01-071-2/+2
| | | | The .exit value would be read before it was initialized.
* Move editor view when completing textHubert Hirtz2020-11-131-0/+6
|
* Fix click colors on highlighted channelHubert Hirtz2020-11-081-1/+1
|
* Handle Alt-Home and Alt-EndHubert Hirtz2020-11-071-1/+4
| | | | To navigate to the first/last buffer