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.
This commit is contained in:
2016-09-26 16:19:36 +02:00
parent 4755033781
commit 81d702ed66
2 changed files with 201 additions and 15 deletions

View File

@@ -66,7 +66,24 @@ As the original StarDict is a bit of a clusterfuck with regard to collation of
dictionary entries, I had to introduce an additional `collation` field into the
'.ifo' file. When sdtui discovers this field while reading the dictionary, it
automatically reorders the index according to that locale (e.g. "cs_CZ").
This operation may take a little while.
This operation may take a little while, in the order of seconds.
Configuration
-------------
To get a nicer look in 256color terminals, create ~/.config/sdtui/sdtui.conf
with the following. Note that it is intended for black-on-white terminals.
....
[Settings]
center-search = true
underline-last = false
[Colors]
header = reverse
search = ul
even = 16 231
odd = 16 255
....
Dictionaries
------------