aboutsummaryrefslogtreecommitdiff
path: root/src/sdtui.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve GLib version compatibilityPřemysl Eric Janouch2023-06-101-0/+4
|
* sdtui: measure the "search" prompt properlyPřemysl Eric Janouch2022-09-241-18/+24
|
* sdtui: improve tab bar overflow behaviourPřemysl Eric Janouch2022-09-241-7/+28
|
* sdtui: handle input field overflows reasonablyPřemysl Eric Janouch2021-11-041-28/+122
|
* Fix various macOS-related/found issuesPřemysl Eric Janouch2021-11-021-2/+0
| | | | | Even though this software isn't very useful on that system either, due to its lack of PRIMARY.
* sdtui: make M-Tab go to the last chosen dictionaryPřemysl Eric Janouch2021-10-301-3/+22
|
* Add clang-format configuration, clean upPřemysl Eric Janouch2021-10-301-1/+1
|
* sdgui: load dictionaries in parallel, as sdtui didPřemysl Eric Janouch2021-10-161-111/+38
| | | | Also, resolve some use-after-frees in GTK+.
* sdgui: load dictionaries from sdtui configurationPřemysl Eric Janouch2021-10-161-113/+9
|
* sdgtk -> sdgui, improve build, mention in READMEPřemysl Eric Janouch2021-10-151-2/+27
| | | | It's finally not horrible.
* sdgtk: add and use a custom listview widgetPřemysl Eric Janouch2021-10-151-1/+2
| | | | | | | | | | | | | | | | Nothing in GTK+ appears to be suited for what are virtually infinite lists. Our workaround with GtkLabel and GtkScrolledWindow has been heavily suboptimal and needs to be replaced. Use Pango directly to handle our relatively simple needs. Upgrades: - the widget can be scrolled, - keywords are repeated for each definition line, - definition lines are now wrapped, and support 'g' and 'x' fields. Downgrades: - text can no longer be selected, so far.
* query-tool: support more field typesPřemysl Eric Janouch2021-10-121-17/+3
| | | | | | | Add options to format the output for the terminal, or IRC messages. Changed the output format to separate dictionary name with a tab, so it's now rather similar to tabfiles.
* sdtui: fix introductory message centringPřemysl Eric Janouch2021-10-111-8/+5
|
* sdtui: minor rendering clean-upPřemysl Eric Janouch2021-10-111-53/+60
|
* sdtui: further improve the XML manglerPřemysl Eric Janouch2021-10-111-1/+3
| | | | Comments should be more or less reliably handled by GMarkup now.
* sdtui: skip keywords in XDXFPřemysl Eric Janouch2021-10-111-1/+2
|
* sdtui: implement elementary XDXF displayPřemysl Eric Janouch2021-10-111-0/+23
| | | | We're lacking word wrapping, but it's more or less usable.
* sdtui: support <b>/<i>/<u> in Pango entriesPřemysl Eric Janouch2021-10-101-14/+64
|
* sdtui: lay the groundwork for formatted entriesPřemysl Eric Janouch2021-10-101-16/+54
|
* sdtui: keep the per-ViewEntry GPtrArraysPřemysl Eric Janouch2021-10-101-35/+35
|
* Make Tab put the current definition into searchPřemysl Eric Janouch2021-10-061-61/+88
| | | | Moving some X11-only code out.
* sdtui: enable styling of defocused selected rowsPřemysl Eric Janouch2021-07-031-8/+39
| | | | | | | | | | | | The defaults are unaffected, the row is always reverse, like it used to. Having the deselected row just be underlined seems sensible. It isn't currently possible to change /just/ the foreground or the background colour of the selection, due to how ncurses works with colours. Bumped termo to enable requesting the appropriate events.
* sdtui: normalize whitespace in clipboard inputPřemysl Eric Janouch2021-07-031-5/+18
|
* Update copyright years within the programPřemysl Eric Janouch2020-09-071-1/+1
|
* Enable switching among more than 10 dictionariesPřemysl Eric Janouch2020-09-021-1/+32
| | | | Ctrl + PageUp/PageDown/Left/Right now change the active tab.
* Name changePřemysl Eric Janouch2020-09-021-2/+2
|
* Fix an unimportant memory leakPřemysl Janouch2018-09-231-6/+15
|
* Implement the INCR ICCCM selection mechanismPřemysl Janouch2018-09-231-53/+126
| | | | | | | | | | xcb_get_property is now also called with a length that is a multiple of four so that we advance the offset properly. Some cleanup. Selection code should work pretty well by now. The amount of code supporting it has more than doubled since GTK+.
* Re-shuffle code, no functional changesPřemysl Janouch2018-09-231-51/+43
|
* Use XCB and SelectSelectionInput instead of GTK+Přemysl Janouch2018-09-231-101/+239
| | | | | | | | | | | As it happens, there is no real need to constantly poll for changes, since XFixes can inform us of updates as they happen. With GTK+ gone we've got dependencies and error handling under control. XCB is a truly awful thing to learn, though. Our method will never work on Wayland or Windows, so we don't miss out on anything by abandoning the huge toolkit.
* Strip whitespace from clipboard contentsPřemysl Janouch2018-06-301-5/+13
|
* Relicense to 0BSD, update mail addressPřemysl Janouch2018-06-241-3/+2
| | | | | | | | | I've come to the conclusion that copyright mostly just stands in the way of software development. In my jurisdiction I cannot give up my own copyright and 0BSD seems to be the closest thing to public domain. The updated mail address, also used in my author/committer lines, is shorter and looks nicer. People rarely interact anyway.
* Skip combining marks in the editorPřemysl Janouch2017-06-271-2/+6
| | | | For slightly more correct Unicode handling.
* Fix and update LICENSEPřemysl Janouch2017-02-031-1/+0
|
* Fix some character width countingPřemysl Janouch2016-10-221-26/+33
|
* Fix mouse clicks on full width charactersPřemysl Janouch2016-10-221-4/+13
|
* Try to make the view fullPřemysl Janouch2016-10-221-15/+26
|
* Disallow scrolling down too muchPřemysl Janouch2016-10-181-45/+37
| | | | | | The ability to scroll past the end was rather unusual. You can still achieve that by searching and resizing the window now.
* Tiny enhancements and cleanupsPřemysl Janouch2016-10-181-8/+9
|
* MicrooptimizationPřemysl Janouch2016-10-181-5/+6
| | | | It hurts me to see wasted mallocs.
* Fix regression in GLib message handlerPřemysl Janouch2016-10-121-2/+2
|
* Don't increment the result from GUINT_TO_POINTERPřemysl Janouch2016-10-081-1/+1
| | | | Increment the argument instead.
* Parallelize dictionary loadingPřemysl Janouch2016-10-081-5/+64
| | | | | | It gives me about 2.5 times speed-up on a 4-core CPU. It could be even better and I mainly blame GLib.
* Simplify, optimize terminal outputPřemysl Janouch2016-10-071-67/+54
| | | | | | Finally getting rid off app_add_utf8_string(). Just like in nncmpp, the dependency on ncurses is now a bit narrower.
* Fix regression in locale supportPřemysl Janouch2016-10-071-1/+1
|
* Update documentationPřemysl Janouch2016-09-281-1/+1
|
* Move the -w switch to the configuration filePřemysl Janouch2016-09-281-62/+28
| | | | | | Update README accordingly. Woo, I get to remove code.
* Handle mouse clicks on dictionary namesPřemysl Janouch2016-09-281-10/+25
|
* Fix mouse in the search barPřemysl Janouch2016-09-281-1/+2
|
* Show all dictionaries in the headerPřemysl Janouch2016-09-281-8/+22
| | | | Make the style of the active dictionary's name configurable.