Commit Graph

195 Commits

Author SHA1 Message Date
Přemysl Eric Janouch fc395d4068
Fix mouse clicks on full width characters 2016-10-22 23:29:29 +02:00
Přemysl Eric Janouch 6155c9bf91
Try to make the view full 2016-10-22 23:10:58 +02:00
Přemysl Eric Janouch dcfc9bfd22
Disallow scrolling down too much
The ability to scroll past the end was rather unusual.

You can still achieve that by searching and resizing the window now.
2016-10-18 20:46:51 +02:00
Přemysl Eric Janouch e06d9c9f71
Tiny enhancements and cleanups 2016-10-18 20:46:38 +02:00
Přemysl Eric Janouch 6f91f8131a
Microoptimization
It hurts me to see wasted mallocs.
2016-10-18 19:06:51 +02:00
Přemysl Eric Janouch a63db9d978
Fix regression in GLib message handler 2016-10-12 22:21:15 +02:00
Přemysl Eric Janouch 1f811d903e
Don't increment the result from GUINT_TO_POINTER
Increment the argument instead.
2016-10-08 09:21:54 +02:00
Přemysl Eric Janouch a7068157f2
Parallelize dictionary loading
It gives me about 2.5 times speed-up on a 4-core CPU.

It could be even better and I mainly blame GLib.
2016-10-08 03:39:06 +02:00
Přemysl Eric Janouch 26155227c7
Simplify the collation mess
Brings a bit worse performance on load since more memory is being
reordered but it seems to be worth it.
2016-10-08 01:20:09 +02:00
Přemysl Eric Janouch 36236955e5
Simplify, optimize terminal output
Finally getting rid off app_add_utf8_string().

Just like in nncmpp, the dependency on ncurses is now a bit narrower.
2016-10-07 18:35:27 +02:00
Přemysl Eric Janouch 0d779d718b
Improve memory usage
By avoiding unnecessary fragmentation in indexes.

With a larger set of dictionaries, I've observed a ~20% improvement.
2016-10-07 17:30:57 +02:00
Přemysl Eric Janouch a1b7e84c6a
Fix example configuration in README 2016-10-07 17:27:28 +02:00
Přemysl Eric Janouch 930ce8a944
Fix regression in locale support 2016-10-07 17:26:56 +02:00
Přemysl Eric Janouch 3c5eae978d
Update more copyright years 2016-09-28 16:25:19 +02:00
Přemysl Eric Janouch 5e3f62e457
Update translations 2016-09-28 16:20:18 +02:00
Přemysl Eric Janouch ee37895206
Update documentation 2016-09-28 16:11:56 +02:00
Přemysl Eric Janouch 732c2903d3
Update README 2016-09-28 06:08:34 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch b3458d84a0
Handle mouse clicks on dictionary names 2016-09-28 05:27:53 +02:00
Přemysl Eric Janouch 1f60d096ea
Fix mouse in the search bar 2016-09-28 05:27:22 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch 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
Přemysl Eric Janouch 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
Přemysl Eric Janouch f453b9dd43
Extract get_xdg_config_dirs() 2016-09-28 04:16:00 +02:00
Přemysl Eric Janouch 021fdcc97c
Use GLib booleans 2016-09-28 03:05:39 +02:00
Přemysl Eric Janouch ff0ec60931
Validate encoding in .ifo files 2016-09-28 03:03:42 +02:00
Přemysl Eric Janouch 474bcb518a
Make app_load_config() return any error 2016-09-28 00:14:11 +02:00
Přemysl Eric Janouch e14c9af40f
Bump termo
Fixing cursor keys.
2016-09-28 00:01:34 +02:00
Přemysl Eric Janouch db0579b7a0
Improve partial matches 2016-09-27 03:47:36 +02:00
Přemysl Eric Janouch da6c46cba9
Fix common prefix search with no collator 2016-09-27 03:35:14 +02:00
Přemysl Eric Janouch c9eb47de7e
Update README 2016-09-27 01:12:24 +02:00
Přemysl Eric Janouch 08fdad56eb
Fix Travis build 2016-09-26 21:14:13 +02:00
Přemysl Eric Janouch 5ee562faf4
Make it possible to disable prefix highlighting 2016-09-26 21:06:51 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch 4755033781
Fix bottom right corner 2016-09-26 20:50:38 +02:00
Přemysl Eric Janouch a591041912
Highlight the longest matching prefix of entries 2016-09-26 15:59:26 +02:00
Přemysl Eric Janouch a87aca9c76
Refactor app_add_utf8_string() 2016-09-26 14:14:01 +02:00
Přemysl Eric Janouch 5f9cd0885c
Bump termo 2016-09-25 22:37:07 +02:00
Přemysl Eric Janouch f1624095f8
Update copyright years 2016-09-25 22:24:35 +02:00
Přemysl Eric Janouch 4f9c638798 CMakeLists.txt: use more succint variables 2016-03-15 21:56:07 +01:00
Přemysl Eric Janouch 38890be47d Fix manpage installation 2016-03-15 21:53:52 +01:00
Přemysl Eric Janouch c5dbe5fa44 Don't force compilation flags 2016-03-14 21:28:44 +01:00
Přemysl Eric Janouch 7e5e660737 Update README, Travis CI, termo 2016-03-14 21:27:57 +01:00
Přemysl Eric Janouch 61f8b134a9 Fix transcoding on OpenBSD 2016-01-14 22:52:46 +01:00
Přemysl Eric Janouch c04ab011d1 Try harder to find ncursesw 2016-01-14 20:32:04 +01:00
Přemysl Eric Janouch ee9f055820 Travis CI: Update IRC server address 2015-10-01 22:37:30 +02:00
Přemysl Eric Janouch e7e92231fa Use optional dependencies opportunisticaly 2015-10-01 22:27:35 +02:00
Přemysl Eric Janouch 4c30a62246 Convert README to AsciiDoc 2015-09-27 01:44:06 +02:00
Přemysl Eric Janouch 533ea1044a Fix and update README 2015-09-27 01:36:36 +02:00
Přemysl Eric Janouch 4c18bd59a2 Bump termo 2015-07-25 19:49:50 +02:00