Commit Graph

5838 Commits

Author SHA1 Message Date
Florian Bruhin
95f2950335 Add stop command (ctrl-s) 2014-05-09 13:11:47 +02:00
Florian Bruhin
05f38e15a6 Add command home 2014-05-09 13:09:37 +02:00
Florian Bruhin
ee72d682ad Add binding: ctrl-n -> leave_mode 2014-05-09 12:13:12 +02:00
Florian Bruhin
4361220a48 Add bindings for xo/xO (backtabopen(cur)) 2014-05-09 12:10:03 +02:00
Florian Bruhin
96d456fdee New command: tab_focus_last / Ctrl-Tab 2014-05-09 11:58:49 +02:00
Florian Bruhin
4e7eb41cb9 Add command tab_move (gm/gl/gr) 2014-05-09 11:47:25 +02:00
Florian Bruhin
87e94a2c68 Add T command / refactor focus_tab 2014-05-09 11:29:25 +02:00
Florian Bruhin
e6af8bb7ae Add only/co command 2014-05-09 11:24:33 +02:00
Florian Bruhin
8fc12fea5f Refactor tabclose 2014-05-09 11:20:17 +02:00
Florian Bruhin
1570fc8a95 Nice error messages on import errors 2014-05-09 11:06:05 +02:00
Florian Bruhin
01d1b18c8f Fix indent 2014-05-09 09:20:11 +02:00
Florian Bruhin
590ab887cd Remove deprecated FIXME 2014-05-09 09:19:54 +02:00
Florian Bruhin
489a5cd082 Add tests for get_standard_dir under Windows 2014-05-09 09:16:24 +02:00
Florian Bruhin
419d47afd3 Split paths correctly in get_standard_dir 2014-05-09 09:16:09 +02:00
Florian Bruhin
a6f8602276 Don't use self with self.cur_dir. 2014-05-09 09:15:00 +02:00
Florian Bruhin
f411741389 Correct path separator on Windows 2014-05-09 09:13:08 +02:00
Florian Bruhin
7d8883fd11 Use QCoreApplication::applicationName in get_standard_dir 2014-05-09 09:12:32 +02:00
Florian Bruhin
c82e050deb Fix checks 2014-05-09 08:46:14 +02:00
Florian Bruhin
6609fc8503 Add tests for utils.misc.get_standard_dir 2014-05-09 08:43:31 +02:00
Florian Bruhin
ef05175713 Add test helper to set temporary value 2014-05-09 07:44:37 +02:00
Florian Bruhin
3b2ae6bcf1 Add warning for dead_actute warning.
Yo dawg, I herd you like warnings!
2014-05-09 06:57:44 +02:00
Florian Bruhin
6a6807fde9 Reorganize test files 2014-05-09 06:57:35 +02:00
Florian Bruhin
70c8df095e Switch from appdirs to QStandardPaths 2014-05-08 22:33:24 +02:00
Florian Bruhin
ed0d0d8ff7 Handle tab titles via onUrlChanged 2014-05-08 21:04:27 +02:00
Florian Bruhin
bf19cb7536 Add window-open-behaviour setting 2014-05-08 20:43:40 +02:00
Florian Bruhin
4eb6f896b0 Remove unused import in hints.py 2014-05-08 20:36:23 +02:00
Florian Bruhin
e2a2ed8850 Support QWebView::createWindow (opening windows via js) 2014-05-08 20:36:05 +02:00
Florian Bruhin
586455bbad Fix scrollbar click bug 2014-05-08 11:50:46 +02:00
Florian Bruhin
dc01509633 Fix description for webkit maximum-pages-in-cache 2014-05-08 09:05:38 +02:00
Florian Bruhin
214cda91bd Nicer error messages for focus_tab 2014-05-08 09:03:48 +02:00
Florian Bruhin
a76c7b56f1 Fix lingering PyQt exception 2014-05-07 18:00:38 +02:00
Florian Bruhin
45621b0645 Do a hard exit on crash 2014-05-07 17:29:28 +02:00
Florian Bruhin
68b134b4a9 Don't filter events if mainwindow is not focused 2014-05-07 17:20:01 +02:00
Florian Bruhin
09f7e7a3ae Don't crash when opening qute:pyeval without :pyeval. 2014-05-07 09:03:46 +02:00
Florian Bruhin
285a1c86b4 Bind pgup/pgdown/shift+space 2014-05-07 07:40:36 +02:00
Florian Bruhin
625d369c33 Add check for modeman.mode property 2014-05-06 23:17:05 +02:00
Florian Bruhin
14873285e6 Fix enum bugs 2014-05-06 21:09:09 +02:00
Florian Bruhin
164dcfb6bd Always click elements in the center when hinting 2014-05-06 21:07:20 +02:00
Florian Bruhin
077d3be2e0 Detect local files correctly 2014-05-06 20:24:53 +02:00
Florian Bruhin
557805c8b2 Don't pass an empty QPrinter to QPrintDialog.
This was garbage collected on Linux when the dialog was opened, leading
to segfaults when the printer was changed in the dialog.

But actually we don't need it at all, so we just drop it.
2014-05-06 18:31:08 +02:00
Florian Bruhin
db20cf3701 Handle backspace correctly in HintKeyParser 2014-05-06 17:04:34 +02:00
Florian Bruhin
0f8926ca99 Remember last pressed key category 2014-05-06 17:04:06 +02:00
Florian Bruhin
68ff922525 Add logging to basekeyparser 2014-05-06 17:03:16 +02:00
Florian Bruhin
dd3ab0e336 Don't handle backspace as text keypress 2014-05-06 17:03:01 +02:00
Florian Bruhin
e2ded2e0ad Add logging to handle_partial_key 2014-05-06 17:02:44 +02:00
Florian Bruhin
764c37c8d6 Hide elements instead of deleting them 2014-05-06 17:02:32 +02:00
Florian Bruhin
4999a59470 Add pastebin button to crash dialog 2014-05-06 15:36:15 +02:00
Florian Bruhin
7fb0a7745b Don't treat single words as URL 2014-05-06 14:25:11 +02:00
Florian Bruhin
5656921a22 Don't add empty URLs to URL stack 2014-05-06 14:08:40 +02:00
Florian Bruhin
e683d85799 Add quick and dirty fix for hint clicking 2014-05-06 14:03:48 +02:00
Florian Bruhin
9553cb6872 Clean up config type order 2014-05-06 13:10:38 +02:00
Florian Bruhin
cbc363912e Merge None{Int,String} with Int/String conftype 2014-05-06 13:00:49 +02:00
Florian Bruhin
a0e71dc86e Don't transform strings in config to lowercase 2014-05-06 12:55:26 +02:00
Florian Bruhin
f6c3e00d59 Use NoneString config type for settings with Qt defaults.
This fixes wikipedia looking ugly because setUserStylesheet gets called
with an empty string.
2014-05-06 12:20:02 +02:00
Florian Bruhin
1a3ed11070 Quit properly on debugger exit 2014-05-06 12:11:00 +02:00
Florian Bruhin
3c20b78d8b Fix config typo 2014-05-06 12:04:56 +02:00
Florian Bruhin
de7c6a63b4 Fix shutdown of networkmanager 2014-05-06 10:53:38 +02:00
Florian Bruhin
70d6efff96 Elements might be deleted already when hint mode is left 2014-05-06 10:04:40 +02:00
Florian Bruhin
e02b84d7ef Add some debug logging for click targets 2014-05-06 09:09:23 +02:00
Florian Bruhin
42c1ea5788 Rename _tabopen to tabopen and tabopen to tabopen_cmd 2014-05-06 08:53:40 +02:00
Florian Bruhin
f8195dc600 Connect tab.open_tab to correct internal slot. 2014-05-06 08:51:10 +02:00
Florian Bruhin
5ce49553d8 Stop logging config values.
This is just too much noise...
2014-05-06 08:36:32 +02:00
Florian Bruhin
e5000c315d Revert "Use global HintManager"
This reverts commit a76d68f564.

WTF. I thought I reset --hard-ed that one?
2014-05-06 07:11:20 +02:00
Florian Bruhin
3753e87465 Depend on appdirs instead of bundling 2014-05-06 06:22:28 +02:00
Florian Bruhin
317cdada8c Log messages 2014-05-05 22:36:08 +02:00
Florian Bruhin
3eaf1ec6d8 Remove old logging 2014-05-05 22:34:58 +02:00
Florian Bruhin
1bd6a61e5a Add basic proxy support 2014-05-05 22:09:01 +02:00
Florian Bruhin
8f239b4a95 Add proxy settings 2014-05-05 22:07:41 +02:00
Florian Bruhin
a76d68f564 Use global HintManager 2014-05-05 20:28:29 +02:00
Florian Bruhin
c8fd0937b0 Revert "Use global object dict for global objects"
This reverts commit bf2c7831c8.

This was a bad idea as we need to access some of the main attributes
from commands via instance=...
2014-05-05 20:12:20 +02:00
Florian Bruhin
bf2c7831c8 Use global object dict for global objects 2014-05-05 19:12:47 +02:00
Florian Bruhin
938fbd5608 Add ImmutableDict 2014-05-05 19:12:41 +02:00
Florian Bruhin
c561931699 Also rename options 2014-05-05 18:37:40 +02:00
Florian Bruhin
5f7759eaed Rename some stuff in config 2014-05-05 18:01:43 +02:00
Florian Bruhin
36e52721da Fix CRLFs in cookies.py 2014-05-05 17:56:35 +02:00
Florian Bruhin
667b255d01 Use QApplication for global singletons 2014-05-05 17:56:14 +02:00
Florian Bruhin
ff272df6e4 Clean up app.py 2014-05-05 16:44:48 +02:00
Florian Bruhin
40720d3451 Whoops 2014-05-05 16:36:59 +02:00
Florian Bruhin
ae95b5ea3b Basic cookie handling 2014-05-05 16:28:43 +02:00
Florian Bruhin
a4d80ddcac Fix checks 2014-05-05 15:24:04 +02:00
Florian Bruhin
ba334a04fc Add tests for utils.webelem 2014-05-05 15:16:27 +02:00
Florian Bruhin
a2a786ddd0 Add test_signalutils 2014-05-05 14:44:36 +02:00
Florian Bruhin
2e744cf96d Use sys.platform.startswith 2014-05-05 14:19:06 +02:00
Florian Bruhin
182303b613 Better checks for shell_escape 2014-05-05 14:17:56 +02:00
Florian Bruhin
db2cabdaf2 Add test_urlutils 2014-05-05 13:41:54 +02:00
Florian Bruhin
c8882cd75e Fix protocol detection in _is_url_naive 2014-05-05 13:36:36 +02:00
Florian Bruhin
8b8a17f535 Small urlutils fixes 2014-05-05 13:08:20 +02:00
Florian Bruhin
f7daa464ba Add tests for utils.misc 2014-05-05 12:16:12 +02:00
Florian Bruhin
8220a99219 Replace quotes properly 2014-05-05 12:15:31 +02:00
Florian Bruhin
ee1961cb42 Fix safe_shlex_split when both conditions are true 2014-05-05 12:06:44 +02:00
Florian Bruhin
c0ed2f52e6 Add tests for enum/fakedict 2014-05-05 11:51:04 +02:00
Florian Bruhin
3b75bbf495 Adjust shell_escape to maybe work on windows 2014-05-05 11:09:10 +02:00
Florian Bruhin
85c4bb823f Fix lint 2014-05-05 10:09:19 +02:00
Florian Bruhin
9cf713cbe4 Use a metaclass for Enums for easier reverse mapping 2014-05-05 10:08:06 +02:00
Florian Bruhin
4ebe643ea6 Use simple enums for constants 2014-05-05 07:45:36 +02:00
Florian Bruhin
970d8fd7ba Shorter completion header texts 2014-05-04 18:06:25 +02:00
Florian Bruhin
677678be81 Refactor websettings.py 2014-05-04 01:50:37 +02:00
Florian Bruhin
4ff5431436 Fix checks 2014-05-04 01:33:01 +02:00
Florian Bruhin
ec6066c7ba Show favicons 2014-05-04 01:28:34 +02:00
Florian Bruhin
c9f7d6771a Enable persistent webkit storage 2014-05-04 01:11:19 +02:00
Florian Bruhin
851f473e0c Add more webkit settings 2014-05-04 01:06:52 +02:00
Florian Bruhin
cece9125ac Add user stylesheet setting 2014-05-03 16:13:32 +02:00
Florian Bruhin
ff37f03725 Explain why we use subprocess/QProcess. 2014-05-03 14:27:44 +02:00
Florian Bruhin
9e609bae8d Add :spawn command 2014-05-03 14:25:22 +02:00
Florian Bruhin
8ada39ff8b Add focus_tab command 2014-05-03 00:32:43 +02:00
Florian Bruhin
f7fa315890 Better URL detection 2014-05-03 00:20:01 +02:00
Florian Bruhin
af68474fc3 Make sure frame is not None in HintManager.start 2014-05-02 18:57:59 +02:00
Florian Bruhin
c33fc62d2f Fix lint 2014-05-02 17:53:59 +02:00
Florian Bruhin
efc613811f Implement numeric hints 2014-05-02 17:53:16 +02:00
Florian Bruhin
54d00938c5 Show config values correctly 2014-05-02 16:53:37 +02:00
Florian Bruhin
0fc789509f Use setData of model instead of item 2014-05-02 16:29:01 +02:00
Florian Bruhin
e54a649337 Add on_config_changed slot for models. 2014-05-02 16:23:51 +02:00
Florian Bruhin
5933585a23 Resize model columns properly by hand 2014-05-02 16:23:35 +02:00
Florian Bruhin
35006bd246 Add a misc column to models. 2014-05-02 16:23:11 +02:00
Florian Bruhin
204cffc4cf Add logging when tabbing 2014-05-02 15:24:36 +02:00
Florian Bruhin
cbb9a2656f Spelling fix 2014-05-02 15:24:26 +02:00
Florian Bruhin
45e1feeb27 Handle arguments after aliases correctly when splitting. 2014-05-02 15:24:10 +02:00
Florian Bruhin
1655ddbfac Restore original command when splitting aliases 2014-05-02 15:23:45 +02:00
Florian Bruhin
b961cb8907 Regenerate CommandCompletionModel if necessary. 2014-05-02 15:23:25 +02:00
Florian Bruhin
f8ab7e5052 Add aliases to CommandCompletionModel 2014-05-02 15:22:45 +02:00
Florian Bruhin
6557b8303a Disallow spaces in aliases. 2014-05-02 15:21:48 +02:00
Florian Bruhin
f4a59b2d71 Support forbidden chars in strings. 2014-05-02 15:21:33 +02:00
Florian Bruhin
b74a97580f Handle completions for ValueList sections correctly 2014-05-02 14:18:40 +02:00
Florian Bruhin
379a6219ec Fix config escape comment 2014-05-02 13:30:51 +02:00
Florian Bruhin
f935d99d52 Don't escape values anymore 2014-05-02 13:28:04 +02:00
Florian Bruhin
b6b9738c25 Revert "Don't escape values in configdata."
This reverts commit cb0d0d1af2.
2014-05-02 13:24:10 +02:00
Florian Bruhin
24939603ea Revert "Escape values in default config comments"
This reverts commit be86ca03e2.
2014-05-02 13:24:07 +02:00
Florian Bruhin
de368aa43d Revert "More escaping fixes"
This reverts commit fcb10e2bff.
2014-05-02 13:24:00 +02:00
Florian Bruhin
0640eacb95 Catch ValueError when catching :set errors 2014-05-02 12:27:06 +02:00
Florian Bruhin
fcb10e2bff More escaping fixes 2014-05-02 12:25:30 +02:00
Florian Bruhin
3b015cd5df Cache ordered values in ValueList section 2014-05-02 11:46:58 +02:00
Florian Bruhin
be86ca03e2 Escape values in default config comments 2014-05-02 11:30:51 +02:00
Florian Bruhin
cb0d0d1af2 Don't escape values in configdata. 2014-05-02 11:28:36 +02:00
Florian Bruhin
554d5d2745 Fix command length (s/args/nargs) 2014-05-02 11:28:11 +02:00
Florian Bruhin
615a2e0bb5 Handle invalid hinting modes/targets 2014-05-02 11:25:24 +02:00
Florian Bruhin
ae0966a384 Fix encoding issues on windows.
locale.getpreferredencoding(False) returns cp1252 on Windows, which is
unable to parse our nice unicode arrows.

Therefore, we always need to specify the encoding when using open().

Also we exclude configdata.py from pep257 on Windows because it doesn't
detect the encoding correctly... Bug is submitted:
https://github.com/GreenSteam/pep257/issues/70
2014-05-02 11:15:38 +02:00
Florian Bruhin
be467d5e50 Refactor command argument splitting.
This uses split=True/False as cmdutils.register argument again (because
we would never want to set maxsplit ourselves, only not splitting the
*last* argument makes any sense.

Also this uses shlex for splitting again, like earlier.
2014-05-02 10:28:41 +02:00
Florian Bruhin
de5f85982f Add new _tabopen method for tabopen and backtabopen. 2014-05-02 10:11:47 +02:00
Florian Bruhin
836a5e04a5 Allow empty keys in config 2014-05-02 06:59:46 +02:00
Florian Bruhin
678abca244 Make user agent configurable 2014-05-02 06:55:55 +02:00
Florian Bruhin
bb70fa1c5a Make FIRST_COMMENT in configdata a rawstring 2014-05-01 23:28:40 +02:00
Florian Bruhin
14617111a8 Remove old logging 2014-05-01 23:27:49 +02:00
Florian Bruhin
2d8c8fa40f Fix up/down keybindings. Whooops. 2014-05-01 23:27:18 +02:00
Florian Bruhin
4137e5de53 Don't use QShortcut for space scrolling 2014-05-01 23:25:51 +02:00
Florian Bruhin
3babead395 Don't crash if frame is none in mouseDownEvent 2014-05-01 21:35:24 +02:00
Florian Bruhin
427fe0b8fb Make tab seperator 2px broad 2014-05-01 21:30:29 +02:00
Florian Bruhin
8c253ae611 Catch config.NoOptionError when reading config 2014-05-01 21:20:17 +02:00
Florian Bruhin
6a725aa87f Fix escaping in config 2014-05-01 21:09:29 +02:00
Florian Bruhin
0bf918631e Handle maxsplit=-1 correctly for completions 2014-05-01 20:18:29 +02:00
Florian Bruhin
3ed22ffcbe Return transformed value in get 2014-05-01 20:06:34 +02:00
Florian Bruhin
af6f6b99e9 Catch ValueError when reading config 2014-05-01 19:57:14 +02:00
Florian Bruhin
53464dcbab Fix ambigious keybinding detection.
Previously we only checked if the *last* char of the current keychain
matches the last char of a binding, which e.g. matched 'la' when we
pressed 'ka'.

Now we simply check if the binding *starts* with the keychain, which
also is easier to do.
2014-05-01 19:48:52 +02:00
Florian Bruhin
7aef865b0d Lint fixes 2014-05-01 19:42:51 +02:00
Florian Bruhin
8556d06ae7 Add do-not-track and accept-language headers 2014-05-01 17:54:50 +02:00
Florian Bruhin
cb8f824f01 Add basurl 2014-05-01 16:40:14 +02:00
Florian Bruhin
5d80831752 prevpage/nextpage updates 2014-05-01 16:35:26 +02:00
Florian Bruhin
a3126635d4 Revert changes in _click 2014-05-01 15:29:18 +02:00
Florian Bruhin
fd678ff864 Make hints work 2014-05-01 15:27:32 +02:00
Florian Bruhin
12b36de5b5 Start implementing prev/next 2014-05-01 00:26:18 +02:00
Florian Bruhin
b9d7c7e7d9 Lint fixes 2014-05-01 00:24:53 +02:00
Florian Bruhin
533d82417e Refactor completion handling 2014-05-01 00:23:53 +02:00
Florian Bruhin
b04adca059 Scroll to first item when wrapping completion 2014-04-30 13:52:16 +02:00
Florian Bruhin
7ce0bd8bc8 Force textEdited emit on set_cmd_text 2014-04-30 12:06:23 +02:00
Florian Bruhin
f1942b0ce0 Use selectionChanged to select completions 2014-04-30 12:03:24 +02:00
Florian Bruhin
adfc96cdfa completion: Use textEdited instead of textChanged
This gets rid of _ignore_next and some unneeded logic, since textEdited
won't even emit if we edited it programatically.
2014-04-30 11:52:30 +02:00
Florian Bruhin
545e63aa0e Bundle editor functions 2014-04-30 11:27:59 +02:00
Florian Bruhin
903d1876af Handle editor errors 2014-04-30 10:59:43 +02:00
Florian Bruhin
4e2517a94f Run sub-commands correctly 2014-04-30 10:47:46 +02:00
Florian Bruhin
1488e54567 Fix docstrings 2014-04-30 10:46:20 +02:00
Florian Bruhin
995a0d19cc Clean up command exception handling 2014-04-30 10:43:40 +02:00
Florian Bruhin
689723508f Add broken JS checking for commands 2014-04-30 10:05:55 +02:00
Florian Bruhin
1eabbfbfcf Replace QAbstractItemModel by QStandardItemModel.
This is probably the most depressing commit ever.

For some reason I didn't find this while searching for models I could
use and rolled my own one. This uses A LOT less code, and is A LOT
faster...
2014-04-30 07:32:51 +02:00
Florian Bruhin
bc02df0bde Add open_editor command 2014-04-29 22:16:44 +02:00
Florian Bruhin
63d03726ef HTML fixes 2014-04-29 17:23:50 +02:00
Florian Bruhin
9fd7f8b975 Rewrite HintManager.fire to use handler dicts 2014-04-29 09:09:42 +02:00
Florian Bruhin
9ef956ae5e Fix some checks 2014-04-29 08:38:01 +02:00
Florian Bruhin
2a7062c5c8 Modify read_file to use pkg_utils 2014-04-29 06:44:47 +02:00
Florian Bruhin
8ca82b0503 Restructure __main__.py to work with setuptools 2014-04-28 23:20:12 +02:00
Florian Bruhin
0d92e34310 Fix/silence checks 2014-04-28 00:05:14 +02:00
Florian Bruhin
bfecafd686 Report if instance in cmdutils.register is missing 2014-04-28 00:01:21 +02:00
Florian Bruhin
a0f27fed61 Add manual hint following 2014-04-27 21:59:23 +02:00
Florian Bruhin
8474bbdf6a Rename and reorder config options 2014-04-27 21:21:14 +02:00
Florian Bruhin
4692414255 Support file:// as special URLs 2014-04-26 14:47:00 +02:00
Florian Bruhin
9252ef94ca Consistent string chars 2014-04-25 16:53:23 +02:00
Florian Bruhin
35ba97d338 Escape special INI chars in ConfigManager 2014-04-25 15:57:28 +02:00
Florian Bruhin
33f9aad6d8 bugfix: Order ValueList values in config properly 2014-04-25 14:13:31 +02:00
Florian Bruhin
c9a25d6309 Catch configparser exceptions on start 2014-04-25 13:55:26 +02:00
Florian Bruhin
46cf62ab34 Don't crash in exception handler when new option is in ValueList 2014-04-25 13:55:03 +02:00
Florian Bruhin
0187623950 Add navigation by arrow keys 2014-04-25 13:37:54 +02:00
Florian Bruhin
bc077f7503 Check if currentFrame() is None when starting hints 2014-04-25 13:21:14 +02:00
Florian Bruhin
0a710ab18a Herpderp, CRLF 2014-04-25 12:34:17 +02:00
Florian Bruhin
3390a4b8d7 Indent fix 2014-04-25 12:33:41 +02:00
Florian Bruhin
da91907656 Unfiy completions into single file 2014-04-25 12:29:00 +02:00
Florian Bruhin
875666265b s/BrowserTab/WebView/g 2014-04-25 12:24:26 +02:00
Florian Bruhin
6e78f67a81 Rename keyinput stuff 2014-04-25 12:21:01 +02:00
Florian Bruhin
c087efb1fd Rename Config to ConfigManager 2014-04-25 12:07:37 +02:00
Florian Bruhin
d4b35b6734 Rename {Command,Seach}Parser to *Manager 2014-04-25 12:04:11 +02:00
Florian Bruhin
937196e287 Rename package-private modules to _foo.py 2014-04-25 11:50:30 +02:00
Florian Bruhin
47d8777179 Move simplebrowser.py 2014-04-25 11:32:15 +02:00
Florian Bruhin
2474b5a806 Add binding i -> enter_mode insert 2014-04-25 11:22:14 +02:00
Florian Bruhin
f437bc25bf Fix lint/cleanup 2014-04-25 11:21:00 +02:00
Florian Bruhin
b7440b1f79 Small exception handling cleanup in parsers.py 2014-04-25 11:02:41 +02:00
Florian Bruhin
7787a67c45 Add modes=[]/not_modes=[] to cmdutils.register 2014-04-25 10:10:58 +02:00
Florian Bruhin
80d6dc9cf7 Update documentation for keybind.command confsect 2014-04-25 09:51:17 +02:00
Florian Bruhin
43c8a96621 s/command_item/completion_item/ 2014-04-25 09:28:02 +02:00
Florian Bruhin
2d0225a292 Hide command_item_{prev,next} 2014-04-25 09:27:30 +02:00
Florian Bruhin
aeb4980f7e Also handle Return via config 2014-04-25 09:26:52 +02:00
Florian Bruhin
74374df5fd Leave command mode on return press 2014-04-25 09:24:40 +02:00
Florian Bruhin
b4b72f07b7 Remove FIXME which is in TODO 2014-04-25 09:22:27 +02:00
Florian Bruhin
c4be264c44 Improve logging in eventFilter 2014-04-25 09:22:01 +02:00
Florian Bruhin
8cba290dae Update eventFilter to track releases 2014-04-25 09:20:19 +02:00
Florian Bruhin
5ee6b2adfa Revert "Remove setting forward_unbound_keys."
This reverts commit d07e22bd91.
2014-04-25 08:40:46 +02:00
Florian Bruhin
f50fda7f9a Replace Backtab key by Tab 2014-04-25 08:40:07 +02:00
Florian Bruhin
a29a9a9b70 Handle Command widget based on modes, not focus 2014-04-25 08:38:11 +02:00
Florian Bruhin
55a8da7f1b Start using KeyParser for command mode 2014-04-25 07:50:21 +02:00
Florian Bruhin
405194d040 Add passthrough mode 2014-04-25 07:13:57 +02:00
Florian Bruhin
3407f3131d Register enter_mode command 2014-04-25 07:13:36 +02:00
Florian Bruhin
b4033ced8b Add generic PassthroughKeyParser, remove InsertKeyParser 2014-04-25 07:09:12 +02:00
Florian Bruhin
035a6a0847 Don't bind Ctrl-C in insert mode 2014-04-25 07:01:58 +02:00
Florian Bruhin
d07e22bd91 Remove setting forward_unbound_keys.
It introduced a lot of unnecessary complexity (e.g. tracking KeyReleases
to their KeyPresses...) for little benefit.
2014-04-25 06:54:17 +02:00
Florian Bruhin
83f829ed93 Add more logging to eventFilter 2014-04-25 06:54:13 +02:00
Florian Bruhin
8f9d7542a6 Fix eventFilter logic to not handle same event multiple times 2014-04-25 06:22:01 +02:00
Florian Bruhin
84682f90fa Log events in eventHandler 2014-04-25 00:10:07 +02:00
Florian Bruhin
926194849c Use normal commands for hint mode 2014-04-24 23:47:02 +02:00
Florian Bruhin
540c134f06 Add keytypes to KeyParser.execute() 2014-04-24 23:46:37 +02:00
Florian Bruhin
5aaf3b3430 Add abstract execute() to KeyParser 2014-04-24 23:23:28 +02:00
Florian Bruhin
e06583ade2 Use normal command to leave insert mode 2014-04-24 23:09:12 +02:00
Florian Bruhin
a1fd1537bd Remove the possibility to pass bindings to KeyParser init 2014-04-24 22:59:01 +02:00
Florian Bruhin
8cca182734 Split NormalKeyParser from CommandKeyParser 2014-04-24 22:56:55 +02:00
Florian Bruhin
0def82fe8c Fix lint 2014-04-24 22:49:06 +02:00
Florian Bruhin
581b715b42 Add __init__.py for keyinput 2014-04-24 22:41:01 +02:00
Florian Bruhin
7a6a605702 Unify KeyParsers again 2014-04-24 22:40:16 +02:00
Florian Bruhin
9ab8f42e20 s/commandmode/normalmode 2014-04-24 21:37:51 +02:00
Florian Bruhin
ea6a25714a Make eventFilter work when mode is None 2014-04-24 21:29:28 +02:00
Florian Bruhin
9320c813f7 Add set_cmd_text to MessageBridge 2014-04-24 21:28:24 +02:00
Florian Bruhin
0c15517352 s/<normal>/<leave>/ 2014-04-24 21:19:29 +02:00
Florian Bruhin
d2dc0b7ac5 Add KeyParser for normal mode 2014-04-24 21:12:55 +02:00
Florian Bruhin
c674d96cfe Reorganize input modules into keyinput subpackage 2014-04-24 21:03:45 +02:00
Florian Bruhin
ecdd887664 Split KeyParser into KeyParser (non-chain) and KeyChainParser 2014-04-24 19:21:38 +02:00
Florian Bruhin
6311deb6b0 Read unbound-keys setting only once 2014-04-24 19:06:51 +02:00
Florian Bruhin
6f7391d7d1 Leave insert mode in loadStarted 2014-04-24 19:06:51 +02:00
Florian Bruhin
718295eb9f Use <> instead of @@ for special keys 2014-04-24 17:48:38 +02:00
Florian Bruhin
8648d88b51 Handle special keys instead of only modifiers 2014-04-24 17:43:19 +02:00
Florian Bruhin
0e3e588038 Add forward_unbound_keys setting 2014-04-24 16:53:16 +02:00
Florian Bruhin
b372c23b80 Move hint webelem code to utils.webelem 2014-04-24 16:30:59 +02:00
Florian Bruhin
6fb52e610d Leave insert mode when loadFinished with ok=False 2014-04-24 16:27:18 +02:00
Florian Bruhin
1c5ae25b68 Start implementing auto_insert_mode 2014-04-24 16:03:16 +02:00
Florian Bruhin
10d7d887ec Pass keypresses to statusbar correctly 2014-04-24 15:47:38 +02:00
Florian Bruhin
b3418cae5d Improve _is_editable() 2014-04-24 13:13:58 +02:00
Florian Bruhin
ff887c647d Don't append mode to mode stack if it's already 2014-04-24 07:44:54 +02:00
Florian Bruhin
b9d845180e Better logging for ModeManager 2014-04-24 07:44:47 +02:00
Florian Bruhin
a82ab6d707 Go to insert mode when plugin clicked 2014-04-24 07:41:20 +02:00
Florian Bruhin
5b84848ad9 s/leaved/left/g 2014-04-24 07:01:27 +02:00
Florian Bruhin
95691e1e11 Show passthrough modes in statusbar 2014-04-24 06:59:39 +02:00
Florian Bruhin
afa9c47867 Lint cleanups 2014-04-24 06:45:38 +02:00
Florian Bruhin
3d292fbc27 Use a stack for current modes 2014-04-24 06:44:58 +02:00
Florian Bruhin
f3db29c010 Enter normal mode when clicking non-editable elem 2014-04-23 23:26:02 +02:00
Florian Bruhin
b4b9b6c69d Enter/leave command mode for Command widget 2014-04-23 23:25:06 +02:00
Florian Bruhin
cd5f2562aa Adjust eventFilter to use new features 2014-04-23 23:24:46 +02:00
Florian Bruhin
e56d33badc Check if handler is available for new mode 2014-04-23 23:23:30 +02:00
Florian Bruhin
5385307582 Register modes explicitely with modemanager. 2014-04-23 23:23:04 +02:00
Florian Bruhin
fc11021c08 Add a passthrough argument to modemanager register() 2014-04-23 23:22:34 +02:00
Florian Bruhin
522a703863 Remove module-level modemanager register() 2014-04-23 23:21:29 +02:00
Florian Bruhin
8f44b56923 Start implementing eventFilter in ModeManager 2014-04-23 23:20:39 +02:00
Florian Bruhin
a33c9827d6 Check for editable fields in mousePressEvent 2014-04-23 21:18:05 +02:00
Florian Bruhin
ce48ed9b8e Add entered/leaved signals to modemanager 2014-04-23 21:15:47 +02:00
Florian Bruhin
8b5daad367 Add ModeManager 2014-04-23 21:15:47 +02:00
Florian Bruhin
387d0e3be6 Document hint lastChild() hack 2014-04-23 14:34:00 +02:00
Florian Bruhin
a67ed4d054 Override mousePressEvent instead of event 2014-04-23 07:34:23 +02:00
Florian Bruhin
2c5bb6a413 cmdutils.register: Support functions with no docstring 2014-04-23 07:32:00 +02:00
Florian Bruhin
7acd32a5d7 Display error when there's nothing to undo 2014-04-23 06:17:36 +02:00
Florian Bruhin
61802725a6 Actually use message.error for errors 2014-04-23 06:17:29 +02:00
Florian Bruhin
46f1a2a0d0 Add log_events decorator 2014-04-22 23:50:56 +02:00
Florian Bruhin
21bb9840d9 Simplify padding in Qt-CSS 2014-04-22 23:02:51 +02:00
Florian Bruhin
06ff2e00e9 Always draw categories correctly in completion 2014-04-22 21:38:06 +02:00
Florian Bruhin
fb9ac1bc4c Restyle tabbar 2014-04-22 20:49:16 +02:00
Florian Bruhin
55e3aca702 linting cleanup 2014-04-22 17:53:27 +02:00
Florian Bruhin
2bef265a89 Remove fixed FIXME 2014-04-22 17:24:21 +02:00
Florian Bruhin
dea80b3b54 Fix complete() of BaseType 2014-04-22 17:23:35 +02:00
Florian Bruhin
0f29526f91 Refactor keyparser 2014-04-22 17:21:29 +02:00
Florian Bruhin
aedf1889dd Support ambiguous keybindings 2014-04-22 16:50:37 +02:00
Florian Bruhin
f38871c9c9 Remove FIXME 2014-04-22 16:12:53 +02:00
Florian Bruhin
97578df7a5 Use QHostInfo instead of socket to resolve 2014-04-22 16:09:41 +02:00
Florian Bruhin
8dfc44da59 Remove another FIXME 2014-04-22 15:58:44 +02:00
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
87dda6dca6 Return no data on invalid qute:* handlers 2014-04-22 15:46:46 +02:00
Florian Bruhin
786404add4 HTML-escape qutescheme texts 2014-04-22 15:28:48 +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
7758289f8b Register :nextsearch command. 2014-04-22 15:05:12 +02:00
Florian Bruhin
963066b4bd Remove some old FIXMEs 2014-04-22 14:45:24 +02:00
Florian Bruhin
a1650579e9 Reword FIXME comments 2014-04-22 14:35:56 +02:00
Florian Bruhin
70e1a0300c Add explicit types for editable hinting 2014-04-22 14:33:40 +02:00
Florian Bruhin
b167f1f8d8 Clarify QTBUG comment 2014-04-22 14:26:07 +02:00
Florian Bruhin
0de249e904 Support frames correctly in HintManager 2014-04-22 14:23:55 +02:00
Florian Bruhin
ebd3ab778f Make scrolling work with multiple frames 2014-04-22 14:17:17 +02:00
Florian Bruhin
26124920cd Display warnings if at beginning/end of history 2014-04-22 14:06:32 +02:00
Florian Bruhin
10acc854c4 Don't reopen opened URLs after crash 2014-04-22 14:02:29 +02:00
Florian Bruhin
b794739d94 Remove unneeded assignment 2014-04-22 13:56:25 +02:00
Florian Bruhin
5d95c7e19c Remove unused import 2014-04-22 12:10:27 +02:00
Florian Bruhin
9b5cf6ee7d Update appdirs.py 2014-04-22 12:07:57 +02:00
Florian Bruhin
ce274aa9c8 Fix printing 2014-04-22 11:16:45 +02:00
Florian Bruhin
af1ba0edf6 Re-sort some functions 2014-04-22 10:45:07 +02:00
Florian Bruhin
1a68bdb9a9 Clean up signal connections 2014-04-22 10:40:33 +02:00
Florian Bruhin
78060fc879 Get rid of temp_message signal 2014-04-22 10:08:56 +02:00
Florian Bruhin
e1b7305e40 Get rid of unneeded text slots in statusbar 2014-04-22 10:00:43 +02:00
Florian Bruhin
1e27f5537d Filter javascript-links from hinting 2014-04-22 09:53:21 +02:00
Florian Bruhin
fec353809b Nicer statusbar texts when hinting 2014-04-22 09:41:43 +02:00
Florian Bruhin
233289228b Reposition hints if contents size changed 2014-04-22 09:35:59 +02:00
Florian Bruhin
8d891bf168 Hints style fixes 2014-04-22 09:35:49 +02:00
Florian Bruhin
ee5e066d86 Display message when hinting. 2014-04-22 09:06:38 +02:00
Florian Bruhin
d700d962af Add the ability to display persistent messages. 2014-04-22 09:06:17 +02:00
Florian Bruhin
1740d4c60f Ignore empty js statusbar messages. 2014-04-22 09:05:53 +02:00
Florian Bruhin
7e2b590da1 Spelling fix 2014-04-22 08:46:21 +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
03c1e1d896 cleanups 2014-04-21 23:53:13 +02:00
Florian Bruhin
65f2409d03 hints: Handle relative/javascript links correctly 2014-04-21 23:44:45 +02:00
Florian Bruhin
ba7f56f5e9 Add different hinting modes (yank, backtab, rapid) 2014-04-21 23:33:36 +02:00
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
Florian Bruhin
e56ed54102 Add broken error pages 2014-02-14 07:17:36 +01:00
Florian Bruhin
203fa3eb34 Docstring grammar fixes 2014-02-13 18:57:19 +01:00
Florian Bruhin
62f140cf88 Remove unneeded self.show()s 2014-02-13 18:47:39 +01:00
Florian Bruhin
176c1aa7d6 Use float() where applicable, not int() 2014-02-13 11:48:25 +01:00
Florian Bruhin
a7d52feb99 Add ga binding 2014-02-13 10:30:52 +01:00
Florian Bruhin
029813c8eb Implement page-wise scrolling. 2014-02-13 10:28:09 +01:00
Florian Bruhin
7deab20820 Cleanup, more checks 2014-02-13 09:10:53 +01:00
Florian Bruhin
963b90ae74 Disable pylint maybe-no-member in TabWidget._init_config 2014-02-13 09:00:07 +01:00
Florian Bruhin
5b0e24b799 Make tabbar configurable. 2014-02-13 08:56:01 +01:00
Florian Bruhin
d7f58015bb Set sizePolicy of Command to minimumExpanding. 2014-02-13 07:16:47 +01:00
Florian Bruhin
4271200846 Emit urlChanged immediately when opening a new tab. 2014-02-13 07:11:18 +01:00
Florian Bruhin
ca97a50820 Call tab.openurl _after_ connecting signals. 2014-02-13 07:10:41 +01:00
Florian Bruhin
0326a66758 Don't color progress bar anymore. 2014-02-13 07:06:34 +01:00
Florian Bruhin
6538dbbdf1 Colorize URLs in statusbar, fix hovering.
Before, when hovering from an URL to another URL, the old hover-URL was
saved as old-url. This is now fixed.
2014-02-13 06:58:17 +01:00
Florian Bruhin
76ba7921d4 Elide statusbar text/URLs correctly. 2014-02-12 23:56:23 +01:00
Florian Bruhin
7bfc1eb791 Add FIXME for color validation 2014-02-12 23:28:03 +01:00
Florian Bruhin
626b9fc3b8 Ignore StatusBar sizehint 2014-02-12 23:04:46 +01:00
Florian Bruhin
d343ea26af Don't use QMainWindow 2014-02-12 23:04:46 +01:00
Florian Bruhin
f893b11f1b Fix progress bar being red hopefully. 2014-02-12 17:13:31 +01:00
Florian Bruhin
5342b88519 linting update 2014-02-12 17:00:50 +01:00
Florian Bruhin
c0dc9f8622 Use Qt properties for condition coloring. 2014-02-12 17:00:39 +01:00
Florian Bruhin
002118953c Use separate QHBoxLayout elements for statusbar. 2014-02-12 08:48:54 +01:00
Florian Bruhin
c77589a821 Make SignalCache an own class. 2014-02-11 14:04:36 +01:00
Florian Bruhin
d4e69c955e Show hovered link in statusbar. 2014-02-11 13:33:33 +01:00
Florian Bruhin
1134461953 Make it possible to ignore signals for cache. 2014-02-11 13:27:26 +01:00
Florian Bruhin
0676508687 Add signal_name in utils.misc 2014-02-11 13:26:41 +01:00
Florian Bruhin
d37318b851 Immediately emit cur_url_changed when opening new tab. 2014-02-11 13:08:15 +01:00
Florian Bruhin
9aa49b7fe8 Pad scroll percentage. 2014-02-11 13:06:02 +01:00
Florian Bruhin
d89098582f Show URL in statusbar. 2014-02-11 11:50:37 +01:00
Florian Bruhin
7486cb628a Revert "Delete QWebViews when tabs are closed."
This reverts commit 83276b9576.

This causes lots of segfaults and other strange stuff when a tab is
closed.
2014-02-11 11:31:20 +01:00
Florian Bruhin
83276b9576 Delete QWebViews when tabs are closed. 2014-02-11 11:17:53 +01:00
Florian Bruhin
26787b0d30 Add custom set_trace for debugging. 2014-02-11 10:30:17 +01:00
Florian Bruhin
796cb0c7b6 Clean up style proxy to be much more concise. 2014-02-11 07:45:28 +01:00
Florian Bruhin
78c89981ab Implement custom style for Ubuntu madness. 2014-02-11 07:01:59 +01:00
Florian Bruhin
fca70a0c6f Only import faulthandler if available 2014-02-10 22:40:21 +01:00
Florian Bruhin
903d9e7557 Don't use git -c 2014-02-10 19:21:52 +01:00
Florian Bruhin
6cf85ff52e Replace QUrl::url by QUrl::toString. 2014-02-10 19:12:12 +01:00
Florian Bruhin
094640b39b Fix signal_cache init, more debugging. 2014-02-10 17:54:24 +01:00
Florian Bruhin
fecfc86bc0 Make _git_str() more reliable 2014-02-10 16:36:58 +01:00
Florian Bruhin
39ed73c3cf python package cleanup 2014-02-10 15:06:46 +01:00
Florian Bruhin
e49a0aa0ed Use generator expressions where possible. 2014-02-10 08:21:09 +01:00
Florian Bruhin
e7a3754ce1 Add fontdict default 2014-02-10 07:08:52 +01:00
Florian Bruhin
95b295745b Rename __default__ searchengine to DEFAULT 2014-02-10 07:07:32 +01:00
Florian Bruhin
1af78272bb Make fonts configurable. 2014-02-10 07:03:51 +01:00
Florian Bruhin
9636432bd5 Move completion widget when statusbar moves. 2014-02-09 21:43:24 +01:00
Florian Bruhin
1a74cbee74 Completion widget design microtuning. 2014-02-09 21:27:56 +01:00
Florian Bruhin
6fbfcab3e2 Don't hardcode heights of tabbar/statusbar 2014-02-09 21:18:44 +01:00
Florian Bruhin
5980f2cc33 Make auto_search configurable. 2014-02-09 20:57:23 +01:00
Florian Bruhin
3555e20642 Fix default_config indent. 2014-02-07 20:23:00 +01:00
Florian Bruhin
01633007e0 Be PEP257 compliant. 2014-02-07 20:21:50 +01:00
Florian Bruhin
dadfc952d1 dos2unix for url.py, argh 2014-02-07 19:21:41 +01:00
Florian Bruhin
b50eba38d3 Refactor utils.url. 2014-02-07 19:20:57 +01:00
Florian Bruhin
a4a2832f8e Move url utils to url.py 2014-02-07 17:20:55 +01:00
Florian Bruhin
ccddf3f7e7 Improve url/searchterm checking. 2014-02-07 17:14:13 +01:00
Florian Bruhin
31fd8282da Implement search engines. 2014-02-07 14:02:14 +01:00
Florian Bruhin
acd7a0a070 Load unknown about:... pages with QWebView. 2014-02-07 14:01:35 +01:00
Florian Bruhin
8a81a61c2d Use ExtendedInterpolation for config 2014-02-07 14:01:17 +01:00
Florian Bruhin
bcb24e3ebf Do not call qurl() from is_about_url() 2014-02-07 14:00:54 +01:00
Florian Bruhin
2ed3f722f5 Catch AttributeError when opening unknown about: pages 2014-02-07 12:54:39 +01:00
Florian Bruhin
940b2d0860 Fix checks 2014-02-07 11:01:58 +01:00
Florian Bruhin
920683b804 Refactor about:... handling 2014-02-07 10:34:37 +01:00
Florian Bruhin
210380e4b0 Use QUrl::fromUserInput for utils.qurl 2014-02-07 10:03:58 +01:00
Florian Bruhin
0648dce295 Add GNU GPL 2014-02-06 14:01:23 +01:00
Florian Bruhin
04ffbc3e53 Fixes for checks. 2014-02-06 13:40:18 +01:00
Florian Bruhin
4c36665601 Bind loadStarted correctly, whoops. 2014-02-06 13:37:05 +01:00
Florian Bruhin
e2589a35b3 Add opencur and tabopencur 2014-02-06 13:34:49 +01:00
Florian Bruhin
bb7df14c08 Fix completion widget size handling 2014-02-06 10:36:00 +01:00
Florian Bruhin
9a0451c984 Crash more reliably #2 2014-02-06 10:25:22 +01:00
Florian Bruhin
ae81427293 Cleanup/Checks 2014-02-06 06:54:57 +01:00
Florian Bruhin
bc6c97a672 First implementation of sizeHint for completion.
This implements the sizeHint method of CompletionItemDelegate, however
this doesn't seem to work correctly yet. Only a few size hints get
called when using resizeColumnToContents...
2014-02-06 06:42:12 +01:00
Florian Bruhin
748a28be1c completion resizeHint: adjust for scrollbar 2014-02-05 18:05:08 +01:00
Florian Bruhin
444b813cf5 Clear signal cache on loadStarted 2014-02-05 17:27:57 +01:00
Florian Bruhin
8e35fb5656 Fix signal cache 2014-02-05 17:19:52 +01:00
Florian Bruhin
0477df72b7 Don't output debug strings for cur_progress signals 2014-02-05 16:03:32 +01:00
Florian Bruhin
0005c1d0a7 Fix browser eventFilter/scroll hack 2014-02-05 15:59:54 +01:00
Florian Bruhin
ac33da82a2 Add more debug info to _filter_signals warning 2014-02-05 15:31:09 +01:00
Florian Bruhin
96cfdfc96c Remove statusBarMessage FIXME 2014-02-05 15:21:24 +01:00
Florian Bruhin
81c65dbe97 Handle title changes correctly 2014-02-05 15:17:58 +01:00
Florian Bruhin
43edb7bb9b Debug logging for qurl handling, handle about: correctly 2014-02-05 15:17:29 +01:00
Florian Bruhin
14288977d1 Use functools instead of lambda for _filter_signals 2014-02-05 14:21:55 +01:00
Florian Bruhin
81da8b6aaa Introduce the concept of a signal cache in browser.
The latest cur_* signal emitted by each tab will be re-emitted now when
this tab gets the focus. This should fix the problem with stale data in
the statusbar.
2014-02-05 14:01:16 +01:00
Florian Bruhin
31707a7dd4 Add --debug argument 2014-02-05 12:46:35 +01:00
Florian Bruhin
fc7caee370 Crash more reliably (lol'd) 2014-02-05 11:40:30 +01:00
Florian Bruhin
888c1690de Add FIXME in _handle_single_key 2014-02-05 11:20:33 +01:00
Florian Bruhin
43c2e21daa Avoid code duplication in KeyParser 2014-02-05 11:08:11 +01:00
Florian Bruhin
9c19fd21d6 Implement handling keys with modifiers 2014-02-05 10:54:56 +01:00
Florian Bruhin
630ff1cbf6 Remove obsolete desc from docstring 2014-02-05 08:35:00 +01:00
Florian Bruhin
1f6ae3e0ed Add possible workaround for model invalidate(). 2014-02-04 20:59:39 +01:00
Florian Bruhin
a0bcfe1960 Add FIXME for self.invalidate() 2014-02-04 18:46:33 +01:00
Florian Bruhin
49a3b57544 Fix checks 2014-02-04 18:44:32 +01:00
Florian Bruhin
89bd255be1 Set _pattern (not pattern) in filter model __init__ 2014-02-04 18:37:54 +01:00
Florian Bruhin
109522e43f Save sourceModel(). 2014-02-04 18:37:35 +01:00
Florian Bruhin
c32ba2f2c8 Only invalidate filter after filtering.
This might avoid some odd segfaults, but it also means sorting won't
work properly.
2014-02-04 13:32:22 +01:00
Florian Bruhin
1f59a00808 Change how resorting is done.
This avoids the pattern_changed signal and does the resorting in the
model directly (where it belongs) instead.
2014-02-04 13:19:55 +01:00
Florian Bruhin
3a3a63c000 Avoid using internalPointer in CompletionModel.
This maybe fixes these weird segfaults.

Based on:
http://python.6.x6.nabble.com/segfault-when-using-a-proxy-and-SIGNAL-quot-clicked-QModelIndex-quot-td1921384.html
2014-02-04 11:05:34 +01:00
Florian Bruhin
bf6290cfc8 Merge branch 'master' of ssh://the-compiler.org:2323/qutebrowser 2014-02-04 07:52:04 +01:00
Florian Bruhin
0adf8d6b53 Call resizeEvent before resizing column for completion 2014-02-01 22:03:06 +01:00
Florian Bruhin
b6126a49a9 Maybe fix completion resize, add debugging. 2014-02-01 21:03:06 +01:00
Florian Bruhin
ef5d034278 Support -c '' again 2014-02-01 20:55:37 +01:00
Florian Bruhin
c4edc6f5da Make sure to save config on crash 2014-01-31 15:58:14 +01:00
Florian Bruhin
85646af2d0 Show webkit version in version info 2014-01-31 15:54:12 +01:00
Florian Bruhin
0cbb574ced Refactor crashdialog setText 2014-01-31 10:30:18 +01:00
Florian Bruhin
89738bce7d Improve crash dialog 2014-01-31 10:24:00 +01:00
Florian Bruhin
7cde8f00cb Set MainWindow size on start 2014-01-31 10:11:59 +01:00
Florian Bruhin
053ce35032 Hopefully sane default config handling.
This now reads the values from the config, and from a default config if
it's not overridden.
2014-01-30 23:05:39 +01:00
Florian Bruhin
a6db387ef7 Make tabs movable 2014-01-30 22:29:26 +01:00
Florian Bruhin
725106e8ff Add FIXME for settings to tabbar.py 2014-01-30 22:29:13 +01:00
Florian Bruhin
06c8f2d03a Set sensible sizePolicies everywhere 2014-01-30 22:29:01 +01:00
Florian Bruhin
5366186dd1 Small CrashDialog improvements 2014-01-30 21:32:31 +01:00
Florian Bruhin
2c276b98a4 Handle exceptions with a crash dialog. 2014-01-30 21:22:56 +01:00
Florian Bruhin
a71684ea0f Add version() to utils to get version/about infos 2014-01-30 21:11:30 +01:00
Florian Bruhin
c3ce167926 Allow commands/URLs to be passed as arguments. 2014-01-30 21:11:30 +01:00
Florian Bruhin
c6b21b27b5 Fix statusbar sizing 2014-01-30 21:08:01 +01:00
Florian Bruhin
49803b051e Add :crash command 2014-01-30 14:58:32 +01:00
Florian Bruhin
ee9d8e74be Implement ignorecase/wrapsearch settings. 2014-01-30 12:03:34 +01:00
Florian Bruhin
7a2a7ab709 Reset search on new search 2014-01-30 11:53:58 +01:00
Florian Bruhin
53861306ff Don't choke on empty command string 2014-01-30 11:51:56 +01:00
Florian Bruhin
330332da6d Use string for default config 2014-01-30 08:25:49 +01:00
Florian Bruhin
143dba4461 Fix harfbuzz issues by setting QT_HARFBUZZ=old 2014-01-30 04:56:16 +01:00
Florian Bruhin
b158cd78b5 Allow non-None default for count 2014-01-30 07:08:45 +01:00
Florian Bruhin
85c44ed78c Implement count everywhere 2014-01-30 07:05:17 +01:00
Florian Bruhin
58103fa7e4 Implement yank/paste 2014-01-30 00:29:46 +01:00
Florian Bruhin
18c68ce74e Implement searching 2014-01-29 21:06:56 +01:00
Florian Bruhin
c0f01d9219 Allow other chars than : to be used for commandline 2014-01-29 20:25:41 +01:00
Florian Bruhin
6445410c2a Set progress bar color to normal if loading okay 2014-01-29 15:50:15 +01:00
Florian Bruhin
293ebc8d46 Add some asserts 2014-01-29 15:45:10 +01:00
Florian Bruhin
e56099e0ec Docstringify ALL the things 2014-01-29 15:30:19 +01:00
Florian Bruhin
46660b11ef Refactor CompletionView 2014-01-29 09:14:37 +01:00
Florian Bruhin
a8f9137fc8 Simple cleanups in widgets.completion 2014-01-29 09:07:04 +01:00
Florian Bruhin
7d4c02d301 Add docstrings to widgets.completion 2014-01-29 09:06:38 +01:00
Florian Bruhin
d83b98ecc0 More pylint fixes 2014-01-29 08:36:44 +01:00
Florian Bruhin
8870882edd Shut up, pylint 2014-01-29 04:25:46 +01:00
Florian Bruhin
59a19db9a2 Add __init__.py 2014-01-29 04:24:37 +01:00
Florian Bruhin
696362a0f6 Use docstrings instead of desc for command classes 2014-01-29 04:20:54 +01:00
Florian Bruhin
201e8f7c46 docstrings++ 2014-01-29 04:07:27 +01:00
Florian Bruhin
06ad500964 Refactor CompletionItemDelegate a bit 2014-01-29 06:36:13 +01:00
Florian Bruhin
8dcdae00b9 Refactor command handling file layout 2014-01-29 06:30:00 +01:00
Florian Bruhin
f5af700f1c Refactor CommandParser 2014-01-29 06:18:01 +01:00
Florian Bruhin
6f3a2448ba pep8 fixes 2014-01-28 23:12:44 +01:00
Florian Bruhin
a69e6d01fd CRLF hell for simplebrowser.py 2014-01-28 22:39:52 +01:00
Florian Bruhin
f059bf0b3d some pylint fixes 2014-01-28 19:52:09 +01:00
Florian Bruhin
80feee323f Fix long lines 2014-01-28 17:33:48 +01:00
Florian Bruhin
eeb33a3e10 Remove semicolon 2014-01-28 17:30:37 +01:00
Florian Bruhin
9f25f049b8 Remove stylesheet debug output 2014-01-28 16:25:46 +01:00
Florian Bruhin
3c016de687 Scroll on space press 2014-01-28 16:13:26 +01:00
Florian Bruhin
7d8fdec1fd Fix exception hook 2014-01-28 16:13:13 +01:00
Florian Bruhin
299b887531 Add simplebrowser.py 2014-01-28 15:58:37 +01:00
Florian Bruhin
a907e913dd More monospace fonts 2014-01-28 15:20:58 +01:00
Florian Bruhin
1bede88b62 Better exception handling 2014-01-28 14:44:12 +01:00
Florian Bruhin
9e24731d9a Don't tabcomplete if it's impossible 2014-01-28 13:23:08 +01:00
Florian Bruhin
fb84bdb55c Fix color configuration bugs 2014-01-28 13:03:15 +01:00
Florian Bruhin
9c209c0cdd Allow completion to be disabled 2014-01-28 12:59:38 +01:00
Florian Bruhin
9bf7dd2bbb Make colors configurable 2014-01-28 12:24:08 +01:00
Florian Bruhin
429d4a6814 Open new tab on Ctrl+click 2014-01-28 08:22:49 +01:00
Florian Bruhin
16645768e6 completion: clean up tab handler 2014-01-28 08:16:31 +01:00
Florian Bruhin
64a1aa5edf Move TODO out of module 2014-01-28 07:54:25 +01:00
Florian Bruhin
2480f13106 completion: Mark in red, not blue 2014-01-28 07:53:52 +01:00
Florian Bruhin
9d42bfa7cb Remove old FIXME 2014-01-28 07:53:21 +01:00
Florian Bruhin
69e972e275 completion: Only mark in first column 2014-01-28 07:53:05 +01:00
Florian Bruhin
5027930018 Add FIXME for statusBarMessage 2014-01-28 07:18:09 +01:00
Florian Bruhin
b351fdf477 Handle statusBarMessage from WebView 2014-01-28 07:16:33 +01:00
Florian Bruhin
5df27e36a0 Set statusbar to 0% on loadStarted 2014-01-28 07:07:53 +01:00
Florian Bruhin
9ac3f51db2 Color statusbar red on failed load 2014-01-28 06:59:35 +01:00
Florian Bruhin
b83bf4e238 Rename scrollpercent{x,y} 2014-01-28 06:52:59 +01:00
Florian Bruhin
981aab8e7d Update command docstring 2014-01-28 06:45:38 +01:00
Florian Bruhin
c2ee83cb48 Add descriptions to commands 2014-01-28 06:37:56 +01:00
Florian Bruhin
480cf787b2 Hide internal commands 2014-01-28 06:22:09 +01:00
Florian Bruhin
4d2a8a7102 Fix config location 2014-01-28 06:10:41 +01:00
Florian Bruhin
1e636eaba2 Add missing utils module 2014-01-27 23:19:03 +01:00
Florian Bruhin
801bfcaab5 Tabbar style improvement 2014-01-27 23:12:43 +01:00
Florian Bruhin
adb0644674 Use QUrls everywhere in browser.py 2014-01-27 23:07:00 +01:00
Florian Bruhin
b4cfb7dbf2 Try to handle middle clicks 2014-01-27 22:55:58 +01:00
Florian Bruhin
90180509a2 Fix invalid argument count error 2014-01-27 22:32:22 +01:00
Florian Bruhin
3e47c89bac Sort items correctly 2014-01-27 22:18:12 +01:00
Florian Bruhin
7a549b38a4 Aaaargh, CRLFs 2014-01-27 21:42:00 +01:00
Florian Bruhin
f2223064b3 Merge completion branch
Squashed commit of the following:

commit 8bbf7242e7ae3168a0e8652ad643c7c1fe8670d3
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 21:34:35 2014 +0100

    foo

commit cc9a4eed6e7ca9599bcc40b40f43614040711714
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 21:33:09 2014 +0100

    fixes

commit b84c9207f8596dac0f47bf72cd178f8e3ee9ebb7
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 21:27:48 2014 +0100

    Make titles bold

commit d2ef899f90036b05856deb178e61de5d961e1342
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 21:18:01 2014 +0100

    Make tab work properly

commit ccc407093e39f1964c8e3ff2900c66b28dc7fe56
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:19:57 2014 +0100

    Add FIXME, remove showhide

commit cbe6d0a2b0614df839c75f1815f939c11e4ae3ba
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:12:55 2014 +0100

    Use stylesheet for highlight

commit 7eeb6e79f17bc8e7ccc1ec90f474d1c2b1c01c1e
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:01:50 2014 +0100

    Make highlighting work

commit 4fed5b9f7291109fd1c669c61501861223364b7d
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 17:49:30 2014 +0100

    First attempt at marking

commit 27a3bda214b7fc7741b4c12d723ccdf4073c0d5e
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 17:14:48 2014 +0100

    Funny broken marking

commit 2798cf75dd295ace2a33295e9a64dd373b7fd669
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:25:36 2014 +0100

    Make completion and filtering work

commit b213d9724bc9f4bb36204bd1b2c4aaf62a454e11
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:07:14 2014 +0100

    Implement dynamic source models

commit c7951e6b4346a1702509bea6d3694cc50550c9ed
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 14:44:31 2014 +0100

    Add custom filtering

commit 37b100f3a1a1f5a90592e34b268c08df684b0df9
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 14:43:57 2014 +0100

    Add default roles in model

commit 1610423c1dd36c0adc35743a38e2c3a81f3641ef
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 14:43:36 2014 +0100

    Remove dataChanged

commit 467712630b00a9ca2407903bdba977b5e66dd2bc
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 13:57:18 2014 +0100

    Fix stuff

commit 00bb46e0ef46b9ae61652bde3ae10d3252263e46
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 11:51:34 2014 +0100

    First attempt at a real CommandCompletionModel

commit a8be022f80d7d35049d1ae3d8431702e7a407698
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 10:25:48 2014 +0100

    Adapt completion view to size

commit ad6bf69a4257880ce14b0590bcb5381c718bb744
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 09:17:48 2014 +0100

    Fix stuff

commit 41c1fbfa942bab0a1a0db35f6b745b691c774b22
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 09:16:09 2014 +0100

    Hide CompletionView by default

commit 2ac8596dada6c7e079807bfd698377a9d3ffd0af
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 09:13:11 2014 +0100

    File shuffling

commit f0c85d5bee30095324be354934f3379c1c6a5291
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 09:04:29 2014 +0100

    Cleanup, don't show completionview

commit 177ac97acb2d611992869f122669d95a8dadcdbb
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 07:16:37 2014 +0100

    Add FIXME for eliding

commit 6b234c58928e9a231ec35e5080a27d7a8affebc4
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 07:12:55 2014 +0100

    Add TextOption to TextDocument

commit 195e95459b54bbdb0545cb0e4db417ab641cea28
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 07:01:41 2014 +0100

    Resize QTreeView contents based on window size

commit 05b854bc812f0aabf5c6dcbdfa1dfd74ea495170
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sun Jan 26 01:19:28 2014 +0100

    Split files

commit ff433b561179a562494c7d3558336a917edc497f
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sun Jan 26 00:57:18 2014 +0100

    cleanup

commit bdb17de2fee65411b4dd1d0ad449329f0586f1e0
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sun Jan 26 00:15:17 2014 +0100

    Make text drawing work properly

commit d844152074738df88ed79c2e1efc4eec4b6e5734
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sat Jan 25 14:03:16 2014 +0100

    Split painting into functions

commit 585a9f6931a407117c4232ac14844d33233922f8
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sat Jan 25 13:50:52 2014 +0100

    Use QTextDocument, things are getting better

commit 96fef2114e68766590ed33fa92c6f2bbac8adb11
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sat Jan 25 13:08:58 2014 +0100

    Failed try to reimplement painting

commit d967285f24a7966674c8685e9e276e560e9cc066
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sat Jan 25 11:15:07 2014 +0100

    Try drawing over text

commit 2687d891cc2f1ecd00cace78492cbffc745d9e5b
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 23:06:44 2014 +0100

    First try at implementing delegate

commit c8bada0c7607df936df04b9c7796a03cc2e1a71a
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 19:59:14 2014 +0100

    Don't allow categories to be selected

commit 6b56df5a0e2588d89d757f583070dd2ca78a6e15
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 19:53:36 2014 +0100

    Add outline:0 to TreeView

commit 534ba6e191e711cc7abeea78c3bf470e9eaf0bfd
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 17:57:57 2014 +0100

    More styling

commit 065d40c24d2746f49660485700e3e6327b28810d
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 17:47:40 2014 +0100

    Add more commands, more styling for TreeView

commit 2362d01db40bbc923a51a8bc53ffbabfd18ebea0
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 16:50:31 2014 +0100

    Adjust super()

commit 43ebedff6724af0f217acc14a325febd12c4ed0b
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 16:50:20 2014 +0100

    Style CompletionView

commit 79c1010cf54bd8a3c3f4b2b4a9f97d8ae7d603fb
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 13:06:12 2014 +0100

    Completion refactoring

    Clean up imports
    Whitespace
    Make items non-editable
    Rename nodeToIndex()
    Return QVariant() instead of None
    Remove comments
    Don't inherit TreeItem from object
    Get rid of getValue
    Get rid of child()
    Get rid of childCount
    Remove appendChild
    Get rid of columnCount
    Get rid of parent()
    Renames
    Refactor if
    Simplify columnCount
    Minor fixups

commit a7a6b95f56a87ef03359ec5f9e5d45a906112845
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 13:04:28 2014 +0100

    Split completion out of command.py

commit cd1c6419ff4034a29a1b48c4ed6ca292944f5674
Author: Florian Bruhin <git@the-compiler.org>
Date:   Thu Jan 23 17:53:37 2014 +0100

    Fix

commit 7073edea92ff8384535f5db80c01168bb8462e75
Author: Florian Bruhin <git@the-compiler.org>
Date:   Thu Jan 23 17:28:03 2014 +0100

    More attempts

commit 7dc522667ba52e9b7f20b3b66e977d23258a3ff4
Author: Florian Bruhin <git@the-compiler.org>
Date:   Thu Jan 23 16:56:01 2014 +0100

    Get rid of parent in setupModelData

commit 5df4874e14818399494f3a47f7feea8b9f86cf69
Author: Florian Bruhin <git@the-compiler.org>
Date:   Thu Jan 23 16:51:52 2014 +0100

    First model/view experiments
2014-01-27 21:35:12 +01:00
Florian Bruhin
7284b21be7 Add FIXME 2014-01-24 12:57:02 +01:00
Florian Bruhin
226adac899 Rename parse_check_run to run in CommandParser 2014-01-22 17:31:15 +01:00
Florian Bruhin
8e71f0cb8c Use commandparser.parse_check_run() for keys.py 2014-01-22 17:25:47 +01:00
Florian Bruhin
7c33bffdb2 Act correctly when -c is used with empty argument 2014-01-22 17:25:19 +01:00
Florian Bruhin
0d6f76b256 Remove TODO item for config parsing 2014-01-22 17:04:45 +01:00
Florian Bruhin
97588db71b Add -c argument, don't init config if -c '' 2014-01-22 17:04:10 +01:00
Florian Bruhin
47c3866f51 Change default config handling.
Now the default config only gets applied (and written to disk) when no
config file doesn't exist yet.
2014-01-22 16:52:35 +01:00
Florian Bruhin
97c6d9f1c9 Don't freak out if no keybind section exists 2014-01-22 16:43:24 +01:00
Florian Bruhin
bdd42a5413 Merge branch 'master' of ssh://lupin/qutebrowser 2014-01-22 08:55:15 +01:00
Florian Bruhin
dca4f8de68 Remove implemented stuff from dwb in TODO 2014-01-22 08:53:42 +01:00
Florian Bruhin
2f65d99d73 TODO update 2014-01-22 08:51:02 +01:00
Florian Bruhin
bf33836dcf Remove QCompleter from statusbar.text 2014-01-21 18:02:07 +01:00
Florian Bruhin
bcd4273672 Split statusbar into multiple files 2014-01-21 17:54:21 +01:00
Florian Bruhin
f87e9c3546 Move CmdValidator out of StatusCommand, add CmdCompleter example 2014-01-21 17:44:50 +01:00
Florian Bruhin
d56344f46a Move some things from x.foo.foo to x.foo (__init__.py) 2014-01-21 15:46:41 +01:00
Florian Bruhin
d18162d902 History fixes 2014-01-21 12:06:23 +01:00
Florian Bruhin
06b1683033 Add colon in set_cmd 2014-01-21 12:01:28 +01:00
Florian Bruhin
133e4c4b61 Improve history
Also adds partial history completion, like zsh
2014-01-21 11:59:01 +01:00
Florian Bruhin
485c7a6316 Implement command history 2014-01-21 11:32:56 +01:00
Florian Bruhin
ca86eea4ae Handle up/down/tab keypresses in StatusCommand 2014-01-21 11:00:52 +01:00
Florian Bruhin
7e3144964e Simplify/cleanup stylesheets and statusbar 2014-01-21 10:48:03 +01:00
Florian Bruhin
b14070845c Use scroll bars and their values for percentage.
For both gg/G and the statusbar indicator, we now use scrollBarValue()
instead of scrollPosition(). This makes a lot of things easier, but
unfortunately this also means we need to have visible scrollbars.
2014-01-21 10:15:25 +01:00
Florian Bruhin
d03f23979d Fix typo 2014-01-21 09:39:30 +01:00
Florian Bruhin
690ff68a99 Add FIXME 2014-01-21 09:07:12 +01:00
Florian Bruhin
8da88f67d0 Set window title 2014-01-21 09:05:31 +01:00
Florian Bruhin
621839dc17 First attempt at a scrolling indicator 2014-01-21 08:37:21 +01:00
Florian Bruhin
373b22690d Add missing config.py 2014-01-21 07:33:54 +01:00
Florian Bruhin
fdf765b267 Implement ScrollPercent{X,Y}, gg and G with count 2014-01-20 17:59:27 +01:00
Florian Bruhin
ac570be7aa Catch ValueError when parsing commands from keybindings 2014-01-20 17:52:39 +01:00
Florian Bruhin
5644eb94a4 Update TODO 2014-01-20 17:36:15 +01:00
Florian Bruhin
5c8043a275 Add aliases for commands 2014-01-20 17:32:04 +01:00
Florian Bruhin
1373b4dab2 Use multiple CommandParser instances 2014-01-20 17:20:17 +01:00
Florian Bruhin
46e846afb9 Add FIXME 2014-01-20 17:05:56 +01:00
Florian Bruhin
5fce707bb2 Replace scroll{up,down,left,right} by scroll cmd 2014-01-20 17:05:47 +01:00
Florian Bruhin
1a6907b4b0 Refactor command/key handling again 2014-01-20 17:01:15 +01:00
Florian Bruhin
1095e24f98 Refactor ALL the things
- Remove super() where unneeded
 - Add docstrings where applicable
 - Remove setObjectName calls
 - Lots and lots of smaller changes
2014-01-20 15:58:49 +01:00
Florian Bruhin
dfe7d6c7ef Add some hacks for python features (exception, signals, ctrl+c) to work correctly 2014-01-20 14:04:29 +01:00
Florian Bruhin
e73d06c252 Fix quitting 2014-01-20 13:50:33 +01:00
Florian Bruhin
7ed257467b Start implementing config storage 2014-01-20 12:26:02 +01:00
Florian Bruhin
da7a95d6ec Remove usersettings.py again
it's approach is too unflexible for my taste, e.g. I want to be able to
use config sections.
2014-01-20 11:44:43 +01:00
Florian Bruhin
930f84906e Adopt appdirs/usersettings for py3 and qutebrowser 2014-01-20 11:33:47 +01:00
Florian Bruhin
97c2e7aae9 Add usersettings.py
source: https://github.com/glvnst/usersettings
2014-01-20 11:23:48 +01:00
Florian Bruhin
a59535c79c Add appdirs.py
source: https://github.com/ActiveState/appdirs
2014-01-20 11:23:18 +01:00
Florian Bruhin
646ad5efd4 Refactor partial matching in KeyParser._handle() 2014-01-20 09:09:57 +01:00
Florian Bruhin
8d8cc25344 Add FIXME for cmd parsing IndexError 2014-01-20 08:58:56 +01:00
Florian Bruhin
a18f3f5aa5 Fix tab title when webpage has no title 2014-01-20 08:58:49 +01:00
Florian Bruhin
7341193cf0 More FIXME 2014-01-20 08:42:08 +01:00
Florian Bruhin
b5527c834b Add a FIXME for ambigious keys 2014-01-20 08:38:15 +01:00
Florian Bruhin
35dffad869 Fix parsing of single args 2014-01-20 08:36:36 +01:00
Florian Bruhin
044d24903c Add TODO 2014-01-20 07:15:05 +01:00
Florian Bruhin
6acac5cb71 Display keystring in statusbar 2014-01-20 07:01:39 +01:00
Florian Bruhin
289f08f7a7 Start statusbar text widget system 2014-01-20 06:52:41 +01:00
Florian Bruhin
d635cbd3fd Fix shlex parsing 2014-01-20 06:51:59 +01:00
Florian Bruhin
fd9ab82e8b Add :pyeval 2014-01-19 23:54:22 +01:00
Florian Bruhin
bd28c00cf1 Use shlex to split command args, add split_args property 2014-01-19 23:33:13 +01:00
Florian Bruhin
2d8fd4499d Simplify command handler 2014-01-19 23:03:06 +01:00
Florian Bruhin
1e8cb42c00 Rewrite whole command system.
Every command signal now returns a tuple (count, args) and gets handled
in app.py by cmd_handler. This makes things easier in a lot of places.
2014-01-19 22:55:00 +01:00
Florian Bruhin
114c2c01d3 First broken attempt at implementing count 2014-01-19 22:25:54 +01:00
Florian Bruhin
bf99519046 More key refactoring 2014-01-19 20:45:01 +01:00
Florian Bruhin
a6aa95cba8 Clean up esc pressing in statusbar 2014-01-19 20:20:35 +01:00
Florian Bruhin
90cbf5362f Don't always clear status cmd text on focusOut 2014-01-19 20:17:51 +01:00
Florian Bruhin
014f73a2dd Remove esc FIXME
We can't do anything about this, see
https://bugreports.qt-project.org/browse/QTBUG-31527
2014-01-19 20:14:33 +01:00
Florian Bruhin
fb54eb58c1 Start reworking key parsing 2014-01-19 19:41:34 +01:00
Florian Bruhin
3fa18c5599 Remove all the pyqtSlot decorators 2014-01-19 18:45:14 +01:00
Florian Bruhin
bba3696630 commands: Implement scrollstart and scrollend 2014-01-19 18:43:47 +01:00
Florian Bruhin
8ca98da6c4 commands: Add debug output when command is called 2014-01-19 18:43:34 +01:00
Florian Bruhin
9f9f5c41f7 Refactor app.py 2014-01-19 18:20:57 +01:00
Florian Bruhin
0dd204b182 Implement scroll{left,right} 2014-01-19 17:45:03 +01:00
Florian Bruhin
4a95745b71 webview: Turn off scrollbars 2014-01-19 17:39:06 +01:00
Florian Bruhin
26a22d498a Hide progress bar at prog=100% 2014-01-19 17:34:07 +01:00
Florian Bruhin
f816e27c77 Refactor error display/clearing 2014-01-19 17:30:31 +01:00
Florian Bruhin
50b5f84f1d Add TODO 2014-01-19 17:18:46 +01:00
Florian Bruhin
5bab3aa79d tab bar: make font smaller 2014-01-19 17:08:45 +01:00
Florian Bruhin
457c422f5d tabbar: elide text 2014-01-19 16:56:33 +01:00
Florian Bruhin
ee3eedbfb5 status: Hide progress bar when finished loading 2014-01-19 16:56:19 +01:00
Florian Bruhin
0100dcf119 Style progress bar 2014-01-19 16:25:33 +01:00
Florian Bruhin
e1934929b1 Fix progress bar 2014-01-19 15:35:48 +01:00
Florian Bruhin
f96d420619 Add broken progress bar 2014-01-18 00:02:53 +01:00
Florian Bruhin
d500c8b9dd Get rid of tabs list 2014-01-17 23:22:49 +01:00
Florian Bruhin
ff938fc0d5 Add undo command 2014-01-17 23:17:24 +01:00
Florian Bruhin
321c00bbfb Set title correctly 2014-01-17 22:57:00 +01:00
Florian Bruhin
022fc7aa4e Add scrolling commands 2014-01-17 22:02:11 +01:00
Florian Bruhin
ff855d6ded Add commands reload/stop/back/forward/print 2014-01-17 21:51:38 +01:00
Florian Bruhin
1b08b88b2b Move signal filtering to generic function 2014-01-17 21:31:14 +01:00
Florian Bruhin
09467abe7e Log progress changes 2014-01-17 20:29:20 +01:00
Florian Bruhin
dfcba88179 Emit progress_changed in tab init 2014-01-17 20:29:07 +01:00
Florian Bruhin
7cdad8e30d Fix esc key 2014-01-17 20:22:50 +01:00
Florian Bruhin
5efa56c5bb Add logging 2014-01-17 20:03:21 +01:00
Florian Bruhin
2b84768902 Remove debug output 2014-01-17 19:42:33 +01:00
Florian Bruhin
294c5fa138 Update cur_progress on tab switch 2014-01-17 13:16:13 +01:00
Florian Bruhin
688b22eaac Move progress handling to TabbedBrowser 2014-01-17 13:08:44 +01:00
Florian Bruhin
c0320a911b First implementation of a progress bar 2014-01-17 12:24:38 +01:00
Florian Bruhin
3a76d52ffb Move keys.py to commands 2014-01-17 12:01:21 +01:00
Florian Bruhin
b14f3f63c5 Fix empty command handling 2014-01-17 12:00:13 +01:00
Florian Bruhin
4e9527fb4c More fixups 2014-01-17 11:55:16 +01:00
Florian Bruhin
df48208524 tolower() -> lower() 2014-01-17 11:29:06 +01:00
Florian Bruhin
6e700ba4ad Fix inspect namespacing 2014-01-17 11:28:46 +01:00
Florian Bruhin
f61debd2f4 Fix circular import 2014-01-17 11:28:35 +01:00
Florian Bruhin
04140d9777 Remove explicit command name 2014-01-17 11:14:19 +01:00
Florian Bruhin
61c90f293c Split commands to commands/utils 2014-01-17 10:57:27 +01:00
Florian Bruhin
bcc2fa9653 Move browser to widgets 2014-01-17 10:43:50 +01:00
Florian Bruhin
9a20d60c13 Add tab{prev,next} command 2014-01-17 08:39:14 +01:00
Florian Bruhin
c392993c79 Don't close last tab 2014-01-17 08:28:04 +01:00
Florian Bruhin
26df5a8076 Add monospace font for Windows 2014-01-17 08:26:45 +01:00
Florian Bruhin
517fcb02ab Add defaults for signal emitting 2014-01-17 08:12:28 +01:00
Florian Bruhin
19d8202b01 Default to argv=None for commands 2014-01-17 08:11:29 +01:00
Florian Bruhin
928bdbe160 Add tabclose command 2014-01-17 08:03:42 +01:00
Florian Bruhin
ad52436875 Immediately run cmds without args in keyhandler 2014-01-17 07:56:30 +01:00
Florian Bruhin
08207d6f9d Handle focus loss for cmd bar 2014-01-17 07:18:48 +01:00
Florian Bruhin
7d285fa5a3 Add keys to MainWindow, not to tabs 2014-01-17 07:08:56 +01:00
Florian Bruhin
020d079b85 Add error for invalid arg count 2014-01-17 07:06:49 +01:00
Florian Bruhin
cb0c2604f3 Display error on unknown command 2014-01-17 07:04:24 +01:00
Florian Bruhin
837f53edea Add empty command 2014-01-17 06:56:18 +01:00
Florian Bruhin
746e7a90ad Add keybindings 2014-01-17 06:51:21 +01:00
Florian Bruhin
6eaf719298 Set keyboard focus after command 2014-01-16 21:59:50 +01:00
Florian Bruhin
a691cc10af Enforce : in status bar command 2014-01-16 21:42:46 +01:00
Florian Bruhin
1736eb20c8 Fix command argument handling 2014-01-16 16:05:31 +01:00
Florian Bruhin
8f9bfb02c3 Fix typo 2014-01-16 16:00:25 +01:00
Florian Bruhin
7c9b6bdbde Use objects in cmd_dict 2014-01-16 15:59:57 +01:00
Florian Bruhin
1d88bb7c9c Connect signals properly 2014-01-16 15:55:52 +01:00
Florian Bruhin
0250f61b8a Import pyqtsignal in statusbar.py 2014-01-16 15:55:44 +01:00
Florian Bruhin
857228e4f2 Refactor commandline parsing 2014-01-16 17:49:57 +01:00
Florian Bruhin
7c866f5014 Add quit command 2014-01-16 17:45:12 +01:00
Florian Bruhin
ef9a5d569e Check argument count 2014-01-16 17:34:45 +01:00
Florian Bruhin
bc6d7fee25 Rewrite command parsing 2014-01-16 17:12:55 +01:00
Florian Bruhin
64568de851 Add commands.py 2013-12-16 22:07:22 +01:00
Florian Bruhin
ea31eb35c8 Add tabopen 2013-12-16 22:07:11 +01:00
Florian Bruhin
e31e15b34a Add open command 2013-12-16 22:01:06 +01:00
Florian Bruhin
1b759512bb Remove test tabs 2013-12-15 22:24:47 +01:00
Florian Bruhin
f0c9977fa4 Add actual browser 2013-12-15 21:40:15 +01:00
Florian Bruhin
fbe968af73 Move main window logic to mainwindow.py 2013-12-15 20:33:43 +01:00
Florian Bruhin
ae516f3f73 Split widgets to different files 2013-12-15 20:29:39 +01:00
Florian Bruhin
7bd7c4d84d Use monospace font for tab bar 2013-12-15 20:20:29 +01:00
Florian Bruhin
768622d294 Set document mode to true for tabbar 2013-12-15 20:18:40 +01:00
Florian Bruhin
bc59d7697e Own TabWidget object 2013-12-15 00:39:28 +01:00
Florian Bruhin
06506e5e48 Statusbar styling 2013-12-15 00:01:05 +01:00
Florian Bruhin
2461d74647 Layout changes 2013-12-14 23:25:59 +01:00
Florian Bruhin
ae08f0e33a First real layout 2013-12-14 22:53:37 +01:00
Florian Bruhin
11a94957dc Initial commit 2013-12-14 22:15:16 +01:00