Commit Graph

632 Commits

Author SHA1 Message Date
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