Florian Bruhin
76f4917ae9
Implement wrapping/message when switching tabs
2014-04-22 15:57:38 +02:00
Florian Bruhin
3ab3e9394d
Bind backspace to back
2014-04-22 15:48:38 +02:00
Florian Bruhin
abb5c06ee6
Remove import FIXMEs
2014-04-22 15:22:50 +02:00
Florian Bruhin
94cef5ea22
Remove FIXME for keybindingname validation
2014-04-22 15:19:28 +02:00
Florian Bruhin
a87163b213
Complete commands
2014-04-22 15:19:18 +02:00
Florian Bruhin
1638823fb3
Add a complete() method to config types
2014-04-22 15:19:01 +02:00
Florian Bruhin
963066b4bd
Remove some old FIXMEs
2014-04-22 14:45:24 +02:00
Florian Bruhin
21abfa10a4
Improve config section comments
2014-04-22 08:42:58 +02:00
Florian Bruhin
27f88ffa47
Don't break https:// urls
2014-04-22 08:42:47 +02:00
Florian Bruhin
7645f4fdea
Revert "Use "Monospace" only as monospace font"
...
This reverts commit 1442b1e35f
.
For true CSS fonts (hints), we can use "Monospace" as generic family and
it'll work.
However, for Qt fonts, this will get us a non-monospace font on Windows.
Conflicts:
qutebrowser/config/configdata.py
2014-04-22 08:26:53 +02:00
Florian Bruhin
ba7f56f5e9
Add different hinting modes (yank, backtab, rapid)
2014-04-21 23:33:36 +02:00
Florian Bruhin
73dfa30a49
Display error message when config validation failed
2014-04-21 22:29:57 +02:00
Florian Bruhin
f70fad650d
Spelling fix
2014-04-21 21:11:01 +02:00
Florian Bruhin
695ab70d7c
Style fixes
2014-04-21 21:05:39 +02:00
Florian Bruhin
b10c934e15
Validate length/bounds for config values
2014-04-21 21:04:19 +02:00
Florian Bruhin
a11b14fd2d
Implement more hinting modes
2014-04-21 19:29:11 +02:00
Florian Bruhin
0741326e5d
Make it possible to open tabs in background
2014-04-21 19:03:04 +02:00
Florian Bruhin
de0e96ab2d
Add clicking on links
2014-04-21 16:59:03 +02:00
Florian Bruhin
c2aa9517ea
Mark partial hint matches
2014-04-21 15:45:29 +02:00
Florian Bruhin
98ed6c9812
Implement hint strings
2014-04-21 11:03:43 +02:00
Florian Bruhin
5dd74d39fd
Make hinting configurable
2014-04-21 11:03:42 +02:00
Florian Bruhin
1f66766e0a
Add CssColor conftype
2014-04-21 11:03:09 +02:00
Florian Bruhin
0bbd128fca
Add Float conftype
2014-04-21 11:03:09 +02:00
Florian Bruhin
9152e40bfb
Implement validate() for String
2014-04-21 11:03:09 +02:00
Florian Bruhin
2da1f05326
Output better error when validate() isn't implemented
2014-04-21 11:03:09 +02:00
Florian Bruhin
1442b1e35f
Use "Monospace" only as monospace font
2014-04-21 11:03:09 +02:00
Florian Bruhin
c8795a21a6
Revert "Make it possible to not typecheck values in setv."
...
This reverts commit 152bcae618
.
2014-04-18 11:01:02 +02:00
Florian Bruhin
a91dde8a26
Catch exceptions in get_wrapper
2014-04-17 19:11:31 +02:00
Florian Bruhin
152bcae618
Make it possible to not typecheck values in setv.
2014-04-17 19:08:57 +02:00
Florian Bruhin
abaec2f044
Remove __setitem__ for sections
2014-04-17 19:08:31 +02:00
Florian Bruhin
3089463a9a
Remove FIXME
2014-04-17 19:04:04 +02:00
Florian Bruhin
5bd40e732c
Do validation and reading from configparser correctly
2014-04-17 19:02:58 +02:00
Florian Bruhin
a5f8bdf7fc
Add validation FIXME
2014-04-17 18:00:15 +02:00
Florian Bruhin
1282a211cf
Add validation for search engine URLs and colors
2014-04-17 17:59:57 +02:00
Florian Bruhin
39f580d9f1
Cleanup
2014-04-17 17:44:27 +02:00
Florian Bruhin
457e173592
More config cleanup.
...
This renames the config instance from "config" to "instance" and adds a
convenience get() function in the config module.
2014-04-17 15:26:27 +02:00
Florian Bruhin
a15461b5da
Rename config.config dict to sections
2014-04-17 14:49:38 +02:00
Florian Bruhin
3728381643
Make dump_userconfig work correctly
2014-04-17 12:35:46 +02:00
Florian Bruhin
c6df785c41
Use common base class for config section
2014-04-17 12:21:22 +02:00
Florian Bruhin
3eca7d6847
Don't split value for set commands
2014-04-17 12:06:48 +02:00
Florian Bruhin
3ad4b447b4
Remove FIXME
2014-04-17 11:45:06 +02:00
Florian Bruhin
72340575af
Remove value from on_config_changed signal again.
...
Turns out this causes more trouble than it's worth, and it's unintuitive
from which layer we get the value.
2014-04-17 11:39:25 +02:00
Florian Bruhin
16afba032f
Remove warn logging
2014-04-17 11:10:08 +02:00
Florian Bruhin
90ddd26981
Handle the case where no history is present correctly
2014-04-17 11:07:57 +02:00
Florian Bruhin
a1a0325283
Use ChainMap for ValueList config section.
...
This also fixes the problem where no keybindings are loaded on the first
start.
2014-04-17 11:01:45 +02:00
Florian Bruhin
af94b9f212
Don't attempt to save if no data was read
2014-04-16 23:32:21 +02:00
Florian Bruhin
981ca7d18e
Fix layer handling in dump_userconfig
2014-04-16 23:21:57 +02:00
Florian Bruhin
48ced03d57
Display config description in completion
2014-04-16 16:36:45 +02:00
Florian Bruhin
57baafbf30
Change configdata from function to attribute
2014-04-16 16:32:14 +02:00
Florian Bruhin
bc4a01faf3
Fix config importing
2014-04-16 16:32:06 +02:00
Florian Bruhin
517c9e6b69
Split config.py more
2014-04-16 16:16:17 +02:00
Florian Bruhin
fc24cb620c
Move websettings to own file
2014-04-16 15:49:56 +02:00
Florian Bruhin
03227c2b41
Lint fixes
2014-04-16 14:14:37 +02:00
Florian Bruhin
4c751d8081
Add webkit settings to config
2014-04-16 13:32:55 +02:00
Florian Bruhin
4ca8cc9537
Add value to config.changed signal
2014-04-16 09:50:24 +02:00
Florian Bruhin
a410d56a78
Implement command history
2014-04-16 09:08:56 +02:00
Florian Bruhin
1d5b0ca9a6
Add save command
2014-04-15 17:28:14 +02:00
Florian Bruhin
73c319a1ec
Add autosave option
2014-04-15 17:28:05 +02:00
Florian Bruhin
f959c0c137
Add completion for settings values
2014-04-14 17:54:11 +02:00
Florian Bruhin
313d6e3967
Use slicing for getlayers for SettingsValue
2014-04-13 21:48:51 +02:00
Florian Bruhin
65b99dab45
Fix false-positive check
2014-04-11 19:37:49 +02:00
Florian Bruhin
ab31f2a289
Add set_temp command
2014-04-11 19:34:46 +02:00
Florian Bruhin
a3a81543a0
Don't write temp layer to config
2014-04-11 19:34:34 +02:00
Florian Bruhin
80ca9a8dd0
Whitespace fix
2014-04-11 19:33:11 +02:00
Florian Bruhin
e12531e766
Fix dict-change (change attibute to item access)
2014-04-11 19:32:20 +02:00
Florian Bruhin
b0792203a5
Change namedtuple to OrderedDict for conflayers
2014-04-11 17:49:15 +02:00
Florian Bruhin
e7c23312d7
Start implementing different config layers.
...
With a namedtuple though, which is pretty much a fail.
2014-04-11 07:16:16 +02:00
Florian Bruhin
575a934892
Move SettingValue to own file
2014-04-11 06:28:07 +02:00
Florian Bruhin
04807489b7
Update everything needed when config is changed
2014-04-10 23:30:45 +02:00
Florian Bruhin
aa616e5ac7
Start implementing config changed signal
2014-04-10 18:01:16 +02:00
Florian Bruhin
175eabdc80
Remove fallback values from config
2014-04-10 14:40:02 +02:00
Florian Bruhin
c5ca0e56be
Remove blank lines before """ in docstrings.
...
pep257 has changed in this regard so we reflect this change.
2014-04-10 14:21:27 +02:00
Florian Bruhin
cba2d4d450
Basic validation for zoom values
2014-04-10 12:57:57 +02:00
Florian Bruhin
c845db4799
Refactor config and sectionproxy
2014-04-10 12:37:53 +02:00
Florian Bruhin
4ff86b660c
Lint fixes
2014-04-10 12:24:41 +02:00
Florian Bruhin
33aa8bfa52
Fix checking of boolean states
2014-04-10 12:22:22 +02:00
Florian Bruhin
32ce8e6772
Print nice error messages on wrong setting values
2014-04-10 12:20:15 +02:00
Florian Bruhin
c05e66a9b9
Refactor ValueList
2014-04-10 12:09:32 +02:00
Florian Bruhin
21e628a1ba
Add __setitem__ to ValueList
2014-04-10 12:05:32 +02:00
Florian Bruhin
1a20bbe7d0
Fix missing options when setting
2014-04-10 12:03:42 +02:00
Florian Bruhin
c1df7cd1fc
Handle missing sections/options in :set
2014-04-10 12:01:02 +02:00
Florian Bruhin
6175f5c489
Use ConfigParser-like exceptions for config
2014-04-10 09:52:05 +02:00
Florian Bruhin
763276a65f
Make dump_userconfig work
2014-04-10 07:37:13 +02:00
Florian Bruhin
a0a8f5d025
Make :set work correctly
2014-04-10 07:09:12 +02:00
Florian Bruhin
c26430d08d
Remove annoying two-word completions
2014-04-10 06:58:58 +02:00
Florian Bruhin
fb4e013007
Make rawvalue of SettingValue private
2014-04-09 22:44:34 +02:00
Florian Bruhin
4173a47ade
Try to implement set command
2014-04-09 22:44:07 +02:00
Florian Bruhin
72ab405040
Handle statusbar messages centrally
2014-04-09 20:47:24 +02:00
Florian Bruhin
4b0b9d884c
lint fixes
2014-04-09 17:57:00 +02:00
Florian Bruhin
3f7635619a
Complete multi-part values correctly
2014-04-09 17:54:41 +02:00
Florian Bruhin
1258a466dd
Add untested has_option
2014-04-07 17:53:57 +02:00
Florian Bruhin
30c18579f2
Eliminate custom ValueList classes
2014-04-07 17:46:48 +02:00
Florian Bruhin
63eaee50b8
Cache colordict/fontdict
2014-04-07 17:33:12 +02:00
Florian Bruhin
361dc7d037
Fix checks and spellings
2014-04-07 17:20:14 +02:00
Florian Bruhin
50740b2828
ValueList fixes
2014-04-07 17:05:51 +02:00
Florian Bruhin
7312a284a3
More fixes, kinda runs now
2014-04-07 16:51:14 +02:00
Florian Bruhin
45ffa9dece
More config bugfixes
2014-04-02 16:47:21 +02:00
Florian Bruhin
89e21499c8
More configparser adjustments
2014-03-28 07:18:40 +01:00
Florian Bruhin
f4d363082d
Add some configparser-foo
2014-03-27 22:37:34 +01:00
Florian Bruhin
8b0eb8e808
Prepare for getting rid of cp interpolation
2014-03-27 17:35:14 +01:00
Florian Bruhin
1132f7bb6c
Lint fixes
2014-03-24 11:48:56 +01:00
Florian Bruhin
fa6f464e23
Refactor completion model changing
2014-03-21 20:01:13 +01:00
Florian Bruhin
108fd2c43b
Don't wrap option values
2014-03-21 16:50:37 +01:00
Florian Bruhin
43d529876e
Revert "Fix writing values with spaces"
...
This reverts commit c229096916
.
2014-03-21 16:48:00 +01:00
Florian Bruhin
c229096916
Fix writing values with spaces
2014-03-10 01:10:24 +01:00
Florian Bruhin
1ae1b19888
Start reading config file
2014-03-10 00:39:15 +01:00
Florian Bruhin
c64d1029a7
Use exceptions for validation.
2014-03-10 00:39:15 +01:00
Florian Bruhin
e61d7f724f
cleanup
2014-03-10 00:39:15 +01:00
Florian Bruhin
a19571fe21
Add final newline to config
2014-03-10 00:39:15 +01:00
Florian Bruhin
2d33d32ed5
Kill old configparser, implement config writing
2014-03-10 00:39:15 +01:00
Florian Bruhin
f0f8168ed2
Add a (broken) get command.
2014-03-10 00:39:15 +01:00
Florian Bruhin
1c43da163e
Make this run again
2014-03-10 00:39:15 +01:00
Florian Bruhin
4f5b6040ad
Implement ValidValues class
2014-03-10 00:39:15 +01:00
Florian Bruhin
4ea77c7ec2
Cleanups and bugfixes
2014-03-10 00:39:15 +01:00
Florian Bruhin
02b4f2fdda
Remove templates.py
2014-03-10 00:39:15 +01:00
Florian Bruhin
f679a97efc
Use OrderedDict for ValueList
2014-03-10 00:39:15 +01:00
Florian Bruhin
c67f0c6482
Don't inherit AutoSearch from bool
2014-03-10 00:39:15 +01:00
Florian Bruhin
8d726cb49e
Drop whitespace when possible.
2014-03-10 00:39:15 +01:00
Florian Bruhin
3ce1388137
Use default_conf if it's available.
2014-03-10 00:39:15 +01:00
Florian Bruhin
22506fd6f4
More config output improvments
2014-03-10 00:39:15 +01:00
Florian Bruhin
c74bfdef0e
Print type and valid values
2014-03-10 00:39:15 +01:00
Florian Bruhin
7206dd674a
Config cleanup
2014-03-10 00:39:14 +01:00
Florian Bruhin
7d3e8d940c
More string output improvements
2014-03-10 00:39:14 +01:00
Florian Bruhin
301f952ccb
Improve config output
2014-03-10 00:39:14 +01:00
Florian Bruhin
277f4d841d
Add command descriptions to config file generation
2014-03-10 00:39:14 +01:00
Florian Bruhin
e4cd92a293
Make config printing work
2014-03-10 00:39:14 +01:00
Florian Bruhin
6c6a827bab
Move configdata to own file
2014-03-10 00:39:14 +01:00
Florian Bruhin
5564e4365e
Post-refactor bugfixes
2014-03-10 00:39:14 +01:00
Florian Bruhin
40d7fc6f14
Start refactoring new config to use types
2014-03-10 00:39:14 +01:00
Florian Bruhin
641efb5c18
Make NewConfig descriptions const
2014-03-10 00:39:14 +01:00
Florian Bruhin
4e78775d3c
Fix checks
2014-03-10 00:39:14 +01:00
Florian Bruhin
cd29814ef3
Bugfix/improve config output
2014-03-10 00:39:14 +01:00
Florian Bruhin
2a7fca8652
Add more documentation
2014-03-10 00:39:14 +01:00
Florian Bruhin
b2b23e032a
Implement __str__ for Config, delete unneeded __str__'s
2014-03-10 00:39:14 +01:00
Florian Bruhin
98d15de460
Fix style issues
2014-03-10 00:39:14 +01:00
Florian Bruhin
09d94bddfe
Clean unused import
2014-03-10 00:39:14 +01:00
Florian Bruhin
758f75a106
Revert "Log config values."
...
This reverts commit f839b5bd9664a7473c25b5267d56d517e69f19cd.
2014-03-10 00:39:14 +01:00
Florian Bruhin
75481e6b13
Fix default values for fonts
2014-03-10 00:39:14 +01:00
Florian Bruhin
be4492216e
Stop logging stylesheets
2014-03-10 00:39:14 +01:00
Florian Bruhin
de91985761
Log config values.
2014-03-10 00:39:14 +01:00
Florian Bruhin
d2fbbe0f6c
Add logging for generated stylesheets.
2014-03-10 00:39:14 +01:00
Florian Bruhin
a49a486cef
Fix config bugs
2014-03-10 00:39:14 +01:00
Florian Bruhin
ab40f59b2e
Whoops, add sections.py
2014-03-10 00:39:14 +01:00
Florian Bruhin
369ee1f47e
Config bugfixes.
...
Stylesheet still broken, but at least keybindings work.
2014-03-10 00:39:14 +01:00
Florian Bruhin
f079d6bf3b
More config update/adoption
2014-03-10 00:39:14 +01:00
Florian Bruhin
54e2ba4de2
Add some new value types
2014-03-10 00:39:14 +01:00
Florian Bruhin
062e385028
Config update and cleanup
2014-03-10 00:39:14 +01:00
Florian Bruhin
4b3ae3f013
Style fixes
2014-03-10 00:39:14 +01:00
Florian Bruhin
265d8b7580
Avoid circular dependencies
2014-03-10 00:39:14 +01:00
Florian Bruhin
12b6dfc6b7
Fix syntax bugs
2014-03-10 00:39:14 +01:00
Florian Bruhin
5f6cc7b05a
Fix namespace and continue config structure.
2014-03-10 00:39:14 +01:00
Florian Bruhin
395acffdc4
Start new config subsystem
2014-03-10 00:39:14 +01:00
Florian Bruhin
ad29867aa6
Remove unneccessary style globals
2014-02-23 18:20:24 +01:00
Florian Bruhin
76a627bb10
Move style related stuff to config.style
2014-02-23 18:15:08 +01:00
Florian Bruhin
3b648a4c0d
Move config to config subfolder
2014-02-23 18:14:40 +01:00