summary refs log tree commit diff
path: root/ui.c
AgeCommit message (Collapse)Author
2020-03-31Save and load buffer line heatC. McEnroe
2020-03-31Store line heat in bufferC. McEnroe
2020-03-30Replace some declaration; while loops with for loopsC. McEnroe
I should have been using this for getopt loops already but the call here is slightly too long to fit on one line as a for loop.
2020-03-30Add text macrosC. McEnroe
2020-03-23Add M-Enter to insert a newlineC. McEnroe
2020-03-23Handle bracketed paste, including newlinesC. McEnroe
2020-02-29Implement the causal.agency/consumer capabilityC. McEnroe
2020-02-19Apply word wrapping to tabs before setting alignC. McEnroe
This fixes long URLs right after the initial \t being wrapped and line counted incorrectly.
2020-02-19Remove bad continues in styleParse loopsC. McEnroe
Since we're sometimes manually doing spaces that need the right styling.
2020-02-19Various small cleanup in ui.cC. McEnroe
2020-02-17Increase buffer size to 1024C. McEnroe
2020-02-17Accept Shift-M-0 through Shift-M-9 as wellC. McEnroe
This mostly just to accommodate my inverted keyboard layout.
2020-02-17Only scroll after reflow if necessaryC. McEnroe
If we've already filled up every line of the window, there is no need to scroll.
2020-02-17Scroll the window only once during reflowC. McEnroe
ncurses implements scrolling as a memmove of the array of lines pointers, which happens each time a line is added to the bottom of the window, causing a scroll. This would get noticeably slow if WindowLines were increased to just 1024. Should've used a ring buffer, I think.
2020-02-16Various small cleanupsC. McEnroe
Haven't really gone through ui.c yet.
2020-02-16Replace a lot of snprintf with a catf implementationC. McEnroe
2020-02-15Replace small integers in size_t with uintC. McEnroe
2020-02-15Separate network info from selfC. McEnroe
2020-02-14Save heat, unreadTotal, unreadWarmC. McEnroe
2020-02-14Track unreadTotal and unreadWarm separatelyC. McEnroe
Otherwise reflow's calculation of unreadLines is always going to be wrong if there were Cold lines interspersed.
2020-02-13Set hidden to true initiallyC. McEnroe
Otherwise uiShow in uiInit does nothing, of course.
2020-02-13Only uiShow if hidden and only uiHide if shownC. McEnroe
2020-02-13Rename procPipe to utilPipeC. McEnroe
2020-02-13Set swap correctly when closing a windowC. McEnroe
I knew I missed something.
2020-02-13Refactor windows into array and add /moveC. McEnroe
Oof.
2020-02-12Add -N flag for notificationsC. McEnroe
2020-02-12Mark and unmark on uiHide, uiShowC. McEnroe
2020-02-12Hide debug prompt if buffer starts with /C. McEnroe
2020-02-12Add C-t transposeC. McEnroe
Also in emacs, weechat.
2020-02-12Add C-v and M-vC. McEnroe
I figure there should be some way to scroll without keypad, and apparently this is what emacs offers...
2020-02-11Support monochromatic terminalsC. McEnroe
Oops, division by zero!
2020-02-11Exit focus and paste modes on err exitC. McEnroe
2020-02-11Call completeClear when closing a windowC. McEnroe
2020-02-11Use time_t for save signatureC. McEnroe
It's actually more likely to be 64-bit than size_t anyway, and it eliminates some helper functions. Also don't error when reading an empty save file.
2020-02-11Set self.nick to * initiallyC. McEnroe
Allows removing a bunch of checks that self.nick is set, and it's what the server usually calls you before registration. Never highlight notices as mentions.
2020-02-11Define ColorCap instead of hardcoding 100C. McEnroe
2020-02-11Cast towupper to wchar_tC. McEnroe
For some reason it takes and returns wint_t...
2020-02-11Cast set but unused variables to voidC. McEnroe
2020-02-11Check if VDSUSP existsC. McEnroe
2020-02-10Invalidate title on uiShowC. McEnroe
2020-02-10Only write out title if it has changedC. McEnroe
2020-02-10Only write out title on uiDrawC. McEnroe
2020-02-10Manually raise SIGINT from C-cC. McEnroe
This allows it to still work, but makes C-z C-c insert the color code rather than exit, and in the future, will allow pasting in text with color codes.
2020-02-10Replace alignment tabs with spaces in bufferListC. McEnroe
2020-02-10Add C-o as alias of M-/C. McEnroe
M-/ is from weechat. C-o is like in vim.
2020-02-10Factor out XDG base directory codeC. McEnroe
And add warnings to configOpen, since that's the only way to be accurate if a weird error occurs.
2020-02-10Leave a blank line after loaded bufferC. McEnroe
2020-02-10Add -s to save and load buffersC. McEnroe
2020-02-10Show heat and other unread in titleC. McEnroe
2020-02-10Improve color fudgingC. McEnroe
Prevent fudged colors from ever being pure black. Distribute fudged colors between normal and bold if COLORS is 8. Fudge colors before checking if it's a pre-allocated pair.