Florian Bruhin
d3a7b2e4ca
Big refactoring of app.py.
2015-04-30 07:37:25 +02:00
Florian Bruhin
6ca39dd851
Handle --relaxed-config for keys.conf as well.
2015-04-21 22:48:45 +02:00
Florian Bruhin
9ee74253e4
Remove name annotation for cmdutils.register.
...
See #637 .
2015-04-20 22:25:27 +02:00
Florian Bruhin
7439586334
Move special params to cmdutils.register decorator
...
See #637 .
2015-04-20 19:33:05 +02:00
Florian Bruhin
c071bcbec8
Clean up loggers.
2015-04-13 08:49:04 +02:00
Florian Bruhin
2876ba5cfa
Pass a parent to global QObjects.
2015-04-06 00:10:37 +02:00
Florian Bruhin
1fdd7051c3
config: Filter docs for change_filter.
2015-04-04 22:03:28 +02:00
Florian Bruhin
57158e7191
Don't make default config a mutable global.
...
Before, configdata.DATA only existed once - that means when something
manipulated it, instantiating a new ConfigManager actually gave us the
*modified* rather than the default data.
There's still a (now readonly) configdata.DATA for performance reasons -
before, the settings completion model called data() many times, which caused
initializing of it taking a few (instead of nearly 0) seconds.
See https://github.com/hackebrot/qutebrowser/pull/16#discussion-diff-27770433
2015-04-04 22:01:02 +02:00
Florian Bruhin
3b3b55234b
Add a signal to KeyConfigParser to save config.
...
Before, we used the 'changed' signal for the SaveManager - however, that also
was emitted when only the internal structure changed. Now we add a new signal
for that.
2015-04-03 19:07:29 +02:00
Florian Bruhin
18b5512fe9
Remove 'fooled' from state file.
2015-04-02 14:58:34 +02:00
Florian Bruhin
6e435ad215
Add state config sections when initializing.
2015-04-01 18:26:45 +02:00
Florian Bruhin
8ebac8d38c
Various spelling fixes.
2015-03-31 21:11:47 +02:00
Florian Bruhin
82322beb03
Fix pep257 issues.
2015-03-26 07:08:54 +01:00
Florian Bruhin
1425d306bc
Fix lint.
2015-03-23 08:19:31 +01:00
Florian Bruhin
0e8b42a9d8
Add a --relaxed-config options.
2015-03-23 07:58:28 +01:00
Florian Bruhin
2b10adfad7
Remove colors -> completion.item.bg config option.
...
This wasn't used anywhere...
2015-03-17 07:45:11 +01:00
Florian Bruhin
55eabafc0d
Rename completion -> history-length.
...
This is now renamed to cmd-history-max-items to avoid confusion with the web
history.
2015-03-13 19:46:21 +01:00
Florian Bruhin
5b4b793538
Split LineParser into multiple classes.
...
There is now:
- BaseLineParser
- LineParser
- LimitLineParser
2015-03-08 21:53:42 +01:00
Florian Bruhin
99de995813
Rename/move config.parsers.line.LineConfigParser.
...
It's now misc.lineparser.LineParser since it handles other stuff than just
config.
2015-03-08 21:53:42 +01:00
Florian Bruhin
fcbd69e209
Clean up standarddir handling #2 .
...
We already attempted this in c5a2039da4
, but
having the directories as module attributes means they'll be created on start
(rather than when they're actually used), and it'd also be impossible to change
them after init for some reason in the future.
To still have a nice short API, we simply change the attributes to functions.
2015-02-26 07:01:22 +01:00
Florian Bruhin
c5a2039da4
Refactor QStandardPaths handling.
2015-02-22 19:13:51 +01:00
Florian Bruhin
684f0d3df5
Fix starting with -c '' again.
2015-02-20 09:12:56 +01:00
Florian Bruhin
8c32fb86e2
Make it possible to set options with ! in it.
...
This is needed for a quit! alias for example. The option was wrongly treated as
an inversion even though a value was given.
2015-02-18 23:06:35 +01:00
Florian Bruhin
3d72235023
Set the QSettings path to a config-subdirectory.
...
QWebInspector uses QSettings to save its GUI-settings. However, the default
path for QSettings is ~/.config/qutebrowser/qutebrowser.conf which overwrites
our own config file.
This fixes one part of #515 .
2015-02-18 22:18:55 +01:00
Florian Bruhin
62fb4b0d0b
Fix initial creating of config.
2015-02-17 22:43:32 +01:00
Florian Bruhin
5817f3c18d
Split config init into three functions.
2015-02-14 00:25:26 +01:00
Florian Bruhin
1cf34e7984
Force saving the config if new options were added.
2015-02-13 23:53:56 +01:00
Florian Bruhin
94b51128d1
Whitespace fixes.
2015-02-13 22:19:45 +01:00
Florian Bruhin
0b55f4df77
Fix starting with -c "".
...
This is a regression introduced in 9b1729c77e
.
2015-02-12 13:24:17 +01:00
Florian Bruhin
f78b21874f
Add -p/--print argument to :set to print value.
2015-02-05 07:58:51 +01:00
Florian Bruhin
9b1729c77e
Always write config files to disk on first start.
2015-02-01 23:47:40 +01:00
Florian Bruhin
43c5dc3bf6
Refactor saving logic, only save stuff if modified.
...
Fixes #113 .
See #11 .
2015-02-01 00:43:07 +01:00
Florian Bruhin
0d93d1eaff
Minor style fixes.
2015-01-24 18:10:24 +01:00
ZDarian
d7b5f2bf52
Remove always-hide from changed cfg
2015-01-21 23:21:43 -07:00
ZDarian
ef5412f596
tab *-hide -> tab hide-*
2015-01-21 20:50:30 -07:00
ZDarian
5100f6fc8f
better type check; -'aborting'
2015-01-21 07:24:05 -07:00
ZDarian
3c21d5986e
Added toggle ability to :set
...
Append '!' to option name of boolean value to toggle its state.
2015-01-18 07:34:33 -07:00
Florian Bruhin
4f1e0d32b0
Handle UnicodeDecodeError when reading configs.
...
(WTF are you guys doing?!)
2015-01-16 07:10:12 +01:00
Florian Bruhin
3ba202d467
Fix config breakage because of deleted option.
2015-01-09 14:38:20 +01:00
Florian Bruhin
450d1ab70d
Update copyright years
2015-01-03 15:51:31 +01:00
Florian Bruhin
a714f0b70c
config: Set self._initialized before validating.
...
With a setting with an interpolation this caused a ValueError because
validate_all called get before self._initialized was True.
2014-12-17 13:40:15 +01:00
Florian Bruhin
512d7c4448
Simplify config exception tree and handling.
...
Also make sure we catch all config-related errors in all related places.
Fixes #324 .
2014-12-17 11:17:18 +01:00
Florian Bruhin
0d9c7049b6
Clean up ConfigManager._from_cp.
2014-12-15 22:25:06 +01:00
Florian Bruhin
3c68506665
Fix sect/opt in config validation error message.
...
This is a regression introduced in 0c1420112c
.
See #202 .
2014-12-15 22:08:33 +01:00
Florian Bruhin
d84c4fab84
Remove old comment.
2014-12-15 21:49:48 +01:00
Florian Bruhin
e87b3fd568
Fix loading of renamed config sections.
2014-12-14 20:46:32 +01:00
Florian Bruhin
06ec1a3885
Big file tree reorganisation.
...
Closes #255 .
Should make a lot more sense now ;)
2014-12-13 17:28:50 +01:00
Florian Bruhin
ec07e4f8be
Handle OSError exceptions where appropriate.
...
Fixes #25 .
2014-12-10 18:00:49 +01:00
Florian Bruhin
bf24578dfd
Use QSaveFile for saving files. Fixes #234 .
2014-12-08 23:42:26 +01:00
Florian Bruhin
0c1420112c
Fix config interpolation with non-default values.
...
Fixes #202 .
2014-12-08 18:50:53 +01:00