Commit Graph

90 Commits

Author SHA1 Message Date
38b463c883
Move the -w switch to the configuration file
Update README accordingly.

Woo, I get to remove code.
2016-09-28 06:01:13 +02:00
b3458d84a0
Handle mouse clicks on dictionary names 2016-09-28 05:27:53 +02:00
1f60d096ea
Fix mouse in the search bar 2016-09-28 05:27:22 +02:00
30345ec8d4
Show all dictionaries in the header
Make the style of the active dictionary's name configurable.
2016-09-28 05:05:24 +02:00
4f0a47d5f7
Allow loading multiple dictionaries
They can also be specified in the configuration.

They can be switched between using Alt+<number>.
2016-09-28 04:30:15 +02:00
a063328ac8
Fix performance regression
Avoid stepping through the entire dictionary

When looking for the first match with an empty common prefix.
2016-09-28 04:17:08 +02:00
f453b9dd43
Extract get_xdg_config_dirs() 2016-09-28 04:16:00 +02:00
021fdcc97c
Use GLib booleans 2016-09-28 03:05:39 +02:00
ff0ec60931
Validate encoding in .ifo files 2016-09-28 03:03:42 +02:00
474bcb518a
Make app_load_config() return any error 2016-09-28 00:14:11 +02:00
db0579b7a0
Improve partial matches 2016-09-27 03:47:36 +02:00
da6c46cba9
Fix common prefix search with no collator 2016-09-27 03:35:14 +02:00
08fdad56eb
Fix Travis build 2016-09-26 21:14:13 +02:00
5ee562faf4
Make it possible to disable prefix highlighting 2016-09-26 21:06:51 +02:00
81d702ed66
Add a configuration file
Now you can have pretty colors w/o having to hardcode them.
The selection is rather limited for now, though.

Search "centering" can now be disabled by default as well.
2016-09-26 21:06:51 +02:00
4755033781
Fix bottom right corner 2016-09-26 20:50:38 +02:00
a591041912
Highlight the longest matching prefix of entries 2016-09-26 15:59:26 +02:00
a87aca9c76
Refactor app_add_utf8_string() 2016-09-26 14:14:01 +02:00
f1624095f8
Update copyright years 2016-09-25 22:24:35 +02:00
61f8b134a9 Fix transcoding on OpenBSD 2016-01-14 22:52:46 +01:00
e740854dd2 Center the view on search
A lot of the time a better match is actually before the point
where we expect the entry to be.

Can be turned off with Alt-C.
2015-07-25 17:01:42 +02:00
1b15b52087 Formatting: leftovers 2015-02-28 21:21:21 +01:00
25366d369b Refactoring 2015-02-27 23:50:32 +01:00
6fb83a4043 Don't let GLib/GTK+ draw messages over curses 2015-02-27 23:42:24 +01:00
7db828f62b Handle SIGINT/SIGTERM properly 2015-02-27 23:36:56 +01:00
10240c716a Formatting 2015-02-26 23:29:45 +01:00
2f0852ec05 Handle search field overflow a bit better
Make sure the cursor doesn't overflow where it doesn't belong.
2015-02-24 23:52:36 +01:00
f4b29a980c Add a near-useless bar on top with bookname 2015-02-24 23:42:15 +01:00
9f8af6c27b Fix build with ICU versions < 50
I'll try to describe my feelings with this excerpt from
David Firth's video "Take This Pill":

  PAIN.

  *oooowww...*

  Hurts, doesn't it?

  *...wwwwwww*
2015-02-24 21:39:45 +01:00
ccfa92ba2a Fix reporting of unknown .ifo keys 2015-02-24 09:27:38 +01:00
2abbe7017f Add a custom collation mechanism
A lot better than that StarDict shitfuckery.
2015-02-24 09:27:38 +01:00
d93b241a65 Silence a warning
We don't care if we read a byte from the pipe.
2015-02-14 06:16:17 +01:00
61ad99b611 Make more use of xstrtoul() 2015-02-07 22:11:53 +01:00
99116d0f70 Update information texts and copyrights 2015-02-07 21:38:27 +01:00
e1643289c5 Cancel selection confirmation when following the selection 2015-02-07 21:13:34 +01:00
a9bc1d8751 Add support for watching the primary selection
Depends on GTK+, which should make it work with all of X11, Wayland, and Mir.
2015-02-07 21:05:32 +01:00
627248bd1f React to mouse wheel scrolling 2015-02-07 20:36:45 +01:00
4730cc47e1 Hide the help in app_search_for_entry() 2015-02-07 20:35:09 +01:00
6e42b07d20 Or let's rather do it like this 2015-02-01 22:44:16 +01:00
08ed996fe1 Tell termo to convert DEL to Backspace
Now backspace works in tmux.
2015-02-01 22:32:49 +01:00
bb9802f83d resize_term -> resizeterm
Apparently we do need to call the "outer-level" function.
2015-01-20 23:56:29 +01:00
a5e0c0ea71 Update termo 2014-11-19 03:31:47 +01:00
2562d108fa Avoid some overhead with iconv()
Now, in theory, terminal output could actually be a bit faster.
2014-11-19 03:31:47 +01:00
da3a4842f1 Get rid of wchar_t for good 2014-11-19 03:31:47 +01:00
b8dc6bb3cc Avoid flicker while resizing 2014-11-19 03:31:47 +01:00
b352a0fc8d Rewrite to use termo
Also get rid of some silliness that I'm only able to see now.
2014-11-19 03:31:46 +01:00
a3348d888b I've been enlightened
Now responding to C-p, C-n, C-b, C-f and C-h as expected.
2014-02-11 23:28:02 +01:00
d7114f0634 Don't apply the bold attribute to padding.
It looked awful when it caused a change in the colour of underlining.
2013-10-09 02:54:19 +02:00
adce15243a Add a querying tool for use in e.g. IRC bots
Now the tools don't get built on `make all' but instead have their
own target called `tools'.  It might be reasonable to move them into
their own directory sometime, instead of cluttering `src'.
2013-10-02 02:17:38 +02:00
1955343857 Add a workaround for GLib < 2.33.1
I wanted to have it working in Wheezy and this was standing in the way,
so I went for the quick fix that I'd made available to myself.
2013-10-02 02:11:57 +02:00