Commit Graph

965 Commits

Author SHA1 Message Date
Florian Bruhin
05e3fb8650 Add :backtabopen command 2014-04-21 23:33:19 +02:00
Florian Bruhin
6ce415fc5e Make hint-labels non-clickable. 2014-04-21 23:32:58 +02:00
Florian Bruhin
6bbb5fe598 Add emitted signals to hintmanager docstrings. 2014-04-21 23:32:44 +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
1c5686f5e3 Handle crashes before config is loaded correctly 2014-04-21 21:09:15 +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
a6789095b3 Fix paste when clipboard is empty 2014-04-21 20:29:58 +02:00
Florian Bruhin
4f58d067b4 Clear errors when key is pressed 2014-04-21 20:21:42 +02:00
Florian Bruhin
9caac26873 Handle no found elements to hint gracefully 2014-04-21 19:31:28 +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
67bf654d57 Handle scrolled frame correctly 2014-04-21 18:20:30 +02:00
Florian Bruhin
979685e37a Click topleft of elements 2014-04-21 17:41:51 +02:00
Florian Bruhin
20dd33fb7a Set focus on webview before processing click 2014-04-21 17:23:22 +02:00
Florian Bruhin
ee8ba55676 Support esc to abort hinting 2014-04-21 17:17:34 +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
d7b87e09c9 Implement modes and hint input. 2014-04-21 15:24:19 +02:00
Florian Bruhin
5a3966ca82 Fix lint, add documentation 2014-04-21 11:03:43 +02:00
Florian Bruhin
98ed6c9812 Implement hint strings 2014-04-21 11:03:43 +02:00
Florian Bruhin
809e7e15b8 Document HINT_CSS 2014-04-21 11:03:43 +02:00
Florian Bruhin
6434dac680 Check element visibility before drawing 2014-04-21 11:03:43 +02:00
Florian Bruhin
a2deba68dc Check if hints are inside screen 2014-04-21 11:03:42 +02:00
Florian Bruhin
3b894580a2 Also check x on invalid rects 2014-04-21 11:03:42 +02:00
Florian Bruhin
293b38a92f Return on invalid rects 2014-04-21 11:03:42 +02:00
Florian Bruhin
5dd74d39fd Make hinting configurable 2014-04-21 11:03:42 +02:00
Florian Bruhin
3bd1470b20 Keep a reference to the labels 2014-04-21 11:03:42 +02:00
Florian Bruhin
41b0655ade Add stop() to HintManager 2014-04-21 11:03:42 +02:00
Florian Bruhin
c4731b6e7e Nicer hints CSS 2014-04-21 11:03:42 +02:00
Florian Bruhin
0b5f4d9fb5 Add some labels to hints 2014-04-21 11:03:42 +02:00
Florian Bruhin
e6569f946c Add proof-of-concept hinting 2014-04-21 11:03:41 +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
341481cd99 Allow bindings to be modified 2014-04-21 11:00:58 +02:00
Florian Bruhin
52c7376402 Split command-related stuff off from KeyParser 2014-04-21 10:45:57 +02:00
Florian Bruhin
406e115a07 Stop logging network requests 2014-04-18 11:03:02 +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
975d83b50e Respect inspector height for completion 2014-04-17 15:58:09 +02:00
Florian Bruhin
dea30e3f4d Ensure developer extras are enabled for webinspector 2014-04-17 15:46:29 +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
b323706f5f Use maxsplit (passed to str.split()) instead bool 2014-04-17 12:06:27 +02:00
Florian Bruhin
4421862b3e Don't use shlex for splitting anymore 2014-04-17 11:49:19 +02:00
Florian Bruhin
3ad4b447b4 Remove FIXME 2014-04-17 11:45:06 +02:00
Florian Bruhin
97bde402fb Add docstring 2014-04-17 11:40:19 +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
7c64e8846a Refresh keybinds when config changes 2014-04-17 11:23:01 +02:00
Florian Bruhin
16afba032f Remove warn logging 2014-04-17 11:10:08 +02:00
Florian Bruhin
00dc4d6bc4 Remove set_trace 2014-04-17 11:09:12 +02:00
Florian Bruhin
c0236b8d22 Use a proper separated model for cmd history 2014-04-17 11:08:14 +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
6b72c3dbdf Fix long line 2014-04-17 09:51:05 +02:00
Florian Bruhin
4b1dcbd82a Refactor tab/browser widgets 2014-04-17 09:44:26 +02:00
Florian Bruhin
58ae1f7441 Add comment about CurCommandDispatcher 2014-04-17 08:24:59 +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
2adcde1c89 Implement web inspector 2014-04-16 14:12:04 +02:00
Florian Bruhin
4c751d8081 Add webkit settings to config 2014-04-16 13:32:55 +02:00
Florian Bruhin
91e6f4c37d Better linting with config files 2014-04-16 11:05:58 +02:00
Florian Bruhin
e878fc538d Fix some checks 2014-04-16 10:02:34 +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
dad6451b7e style fixes 2014-04-15 17:21:12 +02:00
Florian Bruhin
88b522fa16 Only clear selection model if it exists 2014-04-15 17:16:28 +02:00
Florian Bruhin
f959c0c137 Add completion for settings values 2014-04-14 17:54:11 +02:00
Florian Bruhin
44ce804bdf Highlight all rows in completion 2014-04-13 23:06:41 +02:00
Florian Bruhin
24cdd88415 Fix weird 'no such command' message 2014-04-13 22:56:43 +02:00
Florian Bruhin
27046b5186 Give completion items a bit more space 2014-04-13 22:35:55 +02:00
Florian Bruhin
f59f8cac6c Clear completion model after an item is selected 2014-04-13 22:11:47 +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
237ff93908 Fix nargs handling 2014-04-10 11:58:05 +02:00
Florian Bruhin
e8f2698877 Improve argument count exception message 2014-04-10 09:56:06 +02:00
Florian Bruhin
6175f5c489 Use ConfigParser-like exceptions for config 2014-04-10 09:52:05 +02:00
Florian Bruhin
2442cf11ab Remove old logging 2014-04-10 09:40:16 +02:00
Florian Bruhin
60cb5ad85d Lint fixes 2014-04-10 07:42:21 +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
e9317f807b Accept single int in register decorator for nargs 2014-04-10 07:04:02 +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
4c6a41dc94 Actually use nargs= from register_command decorator 2014-04-09 22:43:45 +02:00
Florian Bruhin
68413d8676 Better error for invalid argument count 2014-04-09 22:43:25 +02:00
Florian Bruhin
782242de04 Fix marking of items 2014-04-09 21:21:15 +02:00
Florian Bruhin
235d588827 Remove MessageBridge debug 2014-04-09 21:17:56 +02:00
Florian Bruhin
18bcae40c5 Fix completing when text ends with space #2 2014-04-09 21:15:18 +02:00
Florian Bruhin
d485d8cc4e Remove strech from statusbar 2014-04-09 21:11:11 +02:00
Florian Bruhin
7eb27c86ee Fix some completion bugs 2014-04-09 20:57:25 +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
3c343ecff7 Handle prefixes correctly in on_change_completed_part 2014-04-09 16:03:35 +02:00
Florian Bruhin
ad742d51d8 Set text correctly when completing 2014-04-09 07:14:26 +02:00
Florian Bruhin
fd3262e2ba Move split_cmdline to commands.parsers 2014-04-09 07:07:32 +02:00
Florian Bruhin
deb286272c Use command parser for completions 2014-04-09 06:58:17 +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
c865cc1b84 Don't set pattern etc. when model is None 2014-03-26 20:20:09 +01:00
Florian Bruhin
3635a40c56 Always set model when needed. 2014-03-26 20:19:46 +01:00
Florian Bruhin
638fdca573 appdirs.py update 2014-03-25 06:23:55 +01:00
Florian Bruhin
1132f7bb6c Lint fixes 2014-03-24 11:48:56 +01:00
Florian Bruhin
678b4d54af Refactor completion chosing 2014-03-24 11:37:41 +01:00
Florian Bruhin
a5702c781f Actually append cmd text on append_cmd_text 2014-03-23 21:36:01 +01:00
Florian Bruhin
8ebd2929fd Rename model to _model for completionview 2014-03-23 21:34:02 +01:00
Florian Bruhin
d5456fcae1 Fix tabbing with models with children 2014-03-23 21:15:28 +01:00
Florian Bruhin
ea0ef4fb01 Add FIXME for backspacing 2014-03-23 21:15:17 +01:00
Florian Bruhin
cbd368d980 Add FIXME 2014-03-21 20:25:11 +01:00
Florian Bruhin
cea6c0934f Don't set model in init 2014-03-21 20:17:03 +01:00
Florian Bruhin
384e7c1927 Don't append space when completing 2014-03-21 20:12:49 +01:00
Florian Bruhin
b9492d0f1e Revert "Remove ignore_next"
This reverts commit df6c1fd26d.
2014-03-21 20:11:20 +01:00
Florian Bruhin
bd2aa2d723 Only change completion when necessary 2014-03-21 20:11:18 +01:00
Florian Bruhin
df6c1fd26d Remove ignore_next 2014-03-21 20:02:17 +01:00
Florian Bruhin
fa6f464e23 Refactor completion model changing 2014-03-21 20:01:13 +01:00
Florian Bruhin
a643bcd617 Store complete model correctly 2014-03-21 19:19:55 +01:00
Florian Bruhin
ed4f168779 Attempt to use separate QSFPMs 2014-03-21 17:00:20 +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
2ac9ea0f6a Kinda fix get command 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
ce07baa901 Fix mainname bug 2014-03-10 00:39:15 +01:00
Florian Bruhin
ef8723d246 Remove parsers from cmdutils. 2014-03-10 00:39:15 +01:00
Florian Bruhin
df26d4ad91 Completion pattern update 2014-03-10 00:39:15 +01:00
Florian Bruhin
ecf405c7af Set source model properly 2014-03-10 00:39:15 +01:00
Florian Bruhin
e33b87f713 sourcemodel and logging updates 2014-03-10 00:39:15 +01:00
Florian Bruhin
bd4dba1ed3 Broken setting completion 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
d1054406c2 Remove qutebrowser.conf 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
b6a28aba7b Add some documentation for decorators 2014-03-10 00:38:48 +01:00
Florian Bruhin
6f093d33c1 Fix paste command 2014-03-04 16:52:56 +01:00
Florian Bruhin
9ee4e93e0a Split browser.py into smaller files 2014-03-03 21:35:13 +01:00
Florian Bruhin
98fb1a0250 Remove unused imports 2014-03-03 21:24:33 +01:00
Florian Bruhin
eb2097772d Add utils/debug.py 2014-03-03 21:22:20 +01:00
Florian Bruhin
e30774e9d9 Fix variable name 2014-03-03 21:21:07 +01:00
Florian Bruhin
b75fc347dc Fix checks 2014-03-03 21:19:29 +01:00
Florian Bruhin
508d9e347c Swap q/quit for quit command 2014-03-03 21:11:02 +01:00
Florian Bruhin
af0b6901be First kinda working version 2014-03-03 21:06:10 +01:00
Florian Bruhin
97ae3adb4a Working towards using getattr instead 2014-03-03 18:47:42 +01:00
Florian Bruhin
032ccb8b43 Try some broken component register foo 2014-03-03 17:56:53 +01:00
Florian Bruhin
b22b19d881 Start using (broken) decorators 2014-03-03 06:09:23 +01:00
Florian Bruhin
2df9b57981 Continue developing register_command decorator 2014-02-28 17:55:17 +01:00
Florian Bruhin
dcc3993091 Start implementing decorator 2014-02-28 17:00:25 +01:00
Florian Bruhin
d4df78b75f Add settrace command 2014-02-26 22:29:53 +01:00
Florian Bruhin
66852aa736 Add FIXME for CompletionItemDelegate 2014-02-26 21:54:24 +01:00
Florian Bruhin
a9a4b2ac92 Add profile.py 2014-02-26 21:18:53 +01:00
Florian Bruhin
4925d25c36 Remove wrong 'cur.' for BrowserTab 2014-02-24 17:37:48 +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
Florian Bruhin
0bfe134828 Add first tests (for NeighborList) 2014-02-23 17:39:45 +01:00
Florian Bruhin
7da05b3fb9 Raise better error in NeighborList.curitem if no index is set 2014-02-23 17:39:29 +01:00
Florian Bruhin
b59f0e9a34 Rename types.py to usertypes.py 2014-02-23 16:30:07 +01:00
Florian Bruhin
5f78b96cb1 Move cur_* methods for TabbedBrowser to CurCommandDispatcher class 2014-02-21 22:00:41 +01:00
Florian Bruhin
b8b0d81ab3 Add command aliases 2014-02-21 20:19:01 +01:00
Florian Bruhin
42bac07e6b Whitespace adjustments 2014-02-21 20:07:40 +01:00
Florian Bruhin
e47d13d725 Fix initial tab opening 2014-02-21 20:06:42 +01:00
Florian Bruhin
5d32df1d54 Add :version command 2014-02-21 20:00:02 +01:00
Florian Bruhin
257e6cd67d QuteSchemeHandler cleanup 2014-02-21 19:51:04 +01:00
Florian Bruhin
a96261e7b8 Cleanup 2014-02-21 19:44:46 +01:00
Florian Bruhin
d975ec080d Add isFinished method to schemehandler 2014-02-21 19:24:58 +01:00
Florian Bruhin
61060f0796 Use singleShot QTimers for signals (FIXME: good?) 2014-02-21 07:39:21 +01:00
Florian Bruhin
51616937b8 Use python bytes instead of QByteArray methods. 2014-02-21 07:38:37 +01:00
Florian Bruhin
435f1f45e0 Emit finished at the right places. 2014-02-21 07:37:47 +01:00
Florian Bruhin
29c84f4f20 Add logging to custom requests. 2014-02-21 07:35:53 +01:00
Florian Bruhin
daa3808b7f Spelling fix in comment. 2014-02-21 07:34:49 +01:00
Florian Bruhin
aeb7e0c762 Don't default outgoingData to None 2014-02-21 07:34:21 +01:00
Florian Bruhin
bcd5120922 FIXME: Only destroy replies when they're not special.
Why does a normal destroy not work?
2014-02-21 07:33:32 +01:00
Florian Bruhin
bd6d2e6156 Store instances as scheme handlers, not classes. 2014-02-21 07:18:22 +01:00
Florian Bruhin
90e56e6477 Rename about:... to qute:... 2014-02-21 07:18:04 +01:00
Florian Bruhin
38ef8fe8c7 First attempt at proper AboutSchemeHandler 2014-02-20 23:08:27 +01:00
Florian Bruhin
ec1951c56c Move abouthandler to network subpackage 2014-02-20 22:26:25 +01:00
Florian Bruhin
65ae1882f0 Move NetworkManager to own file 2014-02-20 22:26:25 +01:00
Florian Bruhin
88b8b6ea4e Improve config save warning 2014-02-20 20:49:31 +01:00
Florian Bruhin
82f7e46459 Use NeighborList for history in statusbar. 2014-02-20 20:47:26 +01:00
Florian Bruhin
7fc45728a9 NeighborList: add firstitem() and lastitem() 2014-02-20 20:47:06 +01:00
Florian Bruhin
92b0024f25 NeighborList: Remove off-by-one error 2014-02-20 20:46:53 +01:00
Florian Bruhin
7d74e62696 NeighborList; Remove old FIXME 2014-02-20 20:46:43 +01:00
Florian Bruhin
858ff4a4f0 NeighborList: Ensure self.idx is always set 2014-02-20 20:46:29 +01:00
Florian Bruhin
e1fe6111ec NeighborList: Always cast items to list 2014-02-20 20:46:15 +01:00
Florian Bruhin
4f6e149289 Add logging to NeighborList 2014-02-20 20:46:05 +01:00
Florian Bruhin
7d11790d35 Make it possible to use NeighborList without items 2014-02-20 20:45:30 +01:00
Florian Bruhin
7d878fec7b version string cosmetic fixes 2014-02-20 19:59:22 +01:00
Florian Bruhin
7435a37f36 Style fixes in util.version 2014-02-20 19:56:34 +01:00
Florian Bruhin
cf2133bb96 Add zoomin/zoomout commands. 2014-02-20 19:55:35 +01:00
Florian Bruhin
dc179a65bb Add temp_message signal to BrowserTab 2014-02-20 19:55:35 +01:00
Florian Bruhin
ab8fef3cdb Add new NeighborList datatype 2014-02-20 19:55:35 +01:00
Florian Bruhin
2b820ec696 Add zoomlevels to config 2014-02-20 18:00:24 +01:00
Florian Bruhin
b3fa7bba98 Improve version info 2014-02-20 15:32:46 +01:00
Florian Bruhin
b91b6038c6 Emit dataChanged correctly for model 2014-02-20 11:24:24 +01:00
Florian Bruhin
561a7e1cdd Add workaround to keystring so it gets cleared properly. 2014-02-19 23:08:38 +01:00
Florian Bruhin
1c921a77f6 Set scroll percentage to 0 in __init__ 2014-02-19 16:25:15 +01:00
Florian Bruhin
21cf1cc700 Remove unnecessary lambda 2014-02-19 15:57:13 +01:00
Florian Bruhin
3a140b9a1c Split text to normal/error/tmp again, show text.
This splits the text shown in the statusbar into normal/error/temporary
text again, and shows the text when idle instead of the command.
2014-02-19 15:40:43 +01:00
Florian Bruhin
c2e3039702 Only hide temporary error message on non-modifiers 2014-02-19 14:57:31 +01:00
Florian Bruhin
cb47ae1b43 Fix pyqtSlot() decorations. 2014-02-19 14:57:16 +01:00
Florian Bruhin
b03932400f Simplify displaying text a lot.
This now only has one category of text, and displays it in a
QStackedWidget with the Command.
2014-02-19 14:44:40 +01:00
Florian Bruhin
ab87c8e8b9 Clear temporary text on keypress. 2014-02-19 14:44:38 +01:00
Florian Bruhin
c57e78b765 Display temporary messages in statusbar.
For some odd reason, old messages still don't get cleared properly.
2014-02-19 14:44:37 +01:00
Florian Bruhin
4b91915090 Bugfix: initialize _url_stack for Browser properly. 2014-02-19 14:44:00 +01:00
Florian Bruhin
d2b733ea7a Check if Exception is subclass of Exception properly 2014-02-19 13:37:42 +01:00
Florian Bruhin
f70ad71f9c Add error strings to exceptions 2014-02-19 11:11:21 +01:00
Florian Bruhin
93065188a7 All-caps constants 2014-02-19 11:11:19 +01:00
Florian Bruhin
d58ef3ff84 Fix CommandParser.run exit status. 2014-02-19 11:11:18 +01:00
Florian Bruhin
9a990d56d9 Nicer docstrings 2014-02-19 10:58:32 +01:00
Florian Bruhin
581f88fcce Avoid pylint maybe-no-member warnings for ConfigParser. 2014-02-18 19:32:00 +01:00
Florian Bruhin
6d709d9fd8 Allow completion widget height to be configured in % 2014-02-18 19:05:56 +01:00
Florian Bruhin
9318558eb6 Make completion height configurable 2014-02-18 18:42:43 +01:00
Florian Bruhin
9568be3d2a Use default geometry if no geometry was saved. 2014-02-18 18:38:48 +01:00
Florian Bruhin
96747c9d58 Reordering in widget submodules 2014-02-18 18:32:07 +01:00
Florian Bruhin
034f85b1d4 Use property for CompletionFilterModel.srcmodel 2014-02-18 17:57:58 +01:00
Florian Bruhin
5f83228c75 Reorder some methods, widgets not done yet 2014-02-18 17:54:17 +01:00
Florian Bruhin
0425ce7b48 Extend paintEvent instead of using an eventFilter 2014-02-18 17:26:26 +01:00
Florian Bruhin
2fe2ca85c2 Set WA_StyledBackground for statusbar instead of overriding paintEvent 2014-02-18 16:57:10 +01:00
Florian Bruhin
911d5d3b4a Refactor ALL the things 2014-02-18 16:51:01 +01:00
Florian Bruhin
6cd02ca368 utils.config docstring update 2014-02-18 14:37:49 +01:00
Florian Bruhin
2fcda0e67b Refactor Config.get() 2014-02-18 14:34:46 +01:00
Florian Bruhin
3d37b22fb0 Cleanup 2014-02-18 14:21:39 +01:00
Florian Bruhin
234d171483 Use Qt saveGeometry and restoreGeometry 2014-02-18 14:14:27 +01:00
Florian Bruhin
c9e4f2417d Add more shutdown debugging 2014-02-18 13:05:42 +01:00
Florian Bruhin
109906043e Add a trace_lines util function 2014-02-18 12:10:36 +01:00
Florian Bruhin
bbab0e7430 autosearch bugfix and debug output 2014-02-18 12:02:07 +01:00
Florian Bruhin
27d354633c Save/restore window geometry. 2014-02-18 11:57:35 +01:00
Florian Bruhin
96d01f8755 Improve fallback handling for Config. 2014-02-18 11:57:19 +01:00
Florian Bruhin
306371aa31 Better logging when shutdown fails. 2014-02-18 11:56:40 +01:00
Florian Bruhin
8ba4661838 bugfix: Fix command history 2014-02-18 10:50:41 +01:00
Florian Bruhin
df0e534a0b bugfix: Always handle about-URLs as URL. 2014-02-18 10:47:02 +01:00
Florian Bruhin
8fee32e6c4 Support multiple commands 2014-02-18 10:47:01 +01:00
Florian Bruhin
88ea6e62b1 Unify auto_search/addressbar_dns_lookup 2014-02-18 10:46:59 +01:00
Florian Bruhin
99aba6d9c0 Move default config to file 2014-02-18 10:33:57 +01:00
Florian Bruhin
d349a987c7 CrashDialog: add Stretch before buttons. 2014-02-18 08:52:37 +01:00
Florian Bruhin
8c1619236b CrashDialog: fix layout setting issue 2014-02-18 08:52:25 +01:00
Florian Bruhin
8d9280d1d8 Set more parents 2014-02-18 08:37:05 +01:00
Florian Bruhin
2779b2f42e Fix cur_scroll_page regression. 2014-02-17 22:24:17 +01:00
Florian Bruhin
ab89a3baf0 Cleanup 2014-02-17 22:21:11 +01:00
Florian Bruhin
57b2dc84fc More crash handling fixes. 2014-02-17 20:39:15 +01:00
Florian Bruhin
14a090c087 More shutdown/crashing improvments. 2014-02-17 20:30:09 +01:00
Florian Bruhin
1dc382e2b7 Process pending events before opening startpage.
We now call QApplication::processEvents before
QNetworkAccessManager::createRequest (which takes >1s) is run, so all
waiting GUI events get handled and the GUI is drawn for the first time.
2014-02-17 17:47:21 +01:00
Florian Bruhin
9c0f0e8ac5 Add last_close setting. 2014-02-17 16:50:41 +01:00
Florian Bruhin
01096b995c Store more Qt properties as class attributes. 2014-02-17 16:09:27 +01:00
Florian Bruhin
b90d402587 Fix comment typo. 2014-02-17 15:39:21 +01:00
Florian Bruhin
3d882897c0 Use singleShot QTimer to process init arguments.
This processes all init arguments after the startup has completely
finished, so that things like   qutebrowser ':quit'   work correctly.
2014-02-17 14:37:12 +01:00
Florian Bruhin
8c37e1c33a Make closing/crashing much more reliable. 2014-02-17 14:17:56 +01:00
Florian Bruhin
966ceba1e6 Import cleanup 2014-02-17 12:23:52 +01:00
Florian Bruhin
d5807169d1 Decorate slots with pyqtSlot.
This seems to reduce memory usage a bit and make things a bit faster.
2014-02-17 12:00:08 +01:00
Florian Bruhin
0abb5cf738 Try to shut down everything cleanly. 2014-02-17 10:20:57 +01:00
Florian Bruhin
63ee3f4efd Set Qt application name/version. 2014-02-17 08:56:33 +01:00
Florian Bruhin
9257f0c98a Don't keep static references to QPainter.
For some reason, this seems to cause a segfault.
2014-02-17 08:42:12 +01:00
Florian Bruhin
76a459f604 Add more hard references.
This should prevent some segfaults, as pointed out by [1].

 [1]: https://github.com/integricho/path-of-a-pyqter/tree/master/qttut02
2014-02-17 08:19:30 +01:00
Florian Bruhin
933296f47f Move models to qutebrowser.models 2014-02-14 17:41:12 +01:00
Florian Bruhin
302736925b Clean up read_file(). 2014-02-14 16:43:41 +01:00
Florian Bruhin
434a904335 Add icon= to error html format() 2014-02-14 07:50:31 +01:00