Florian Bruhin
265019650b
Use enum for completions
2014-07-29 00:37:32 +02:00
Florian Bruhin
54246bacbe
Add some type checking for enums
2014-07-29 00:23:20 +02:00
Florian Bruhin
7c8f9bec0f
Use enum for keyboard modes.
2014-07-29 00:19:35 +02:00
Florian Bruhin
860ef75abc
Fix lint
2014-07-28 21:09:49 +02:00
Florian Bruhin
8d80ce2628
Switch to python 3.4 enums.
...
Our home-brewn enum wasn't really liked by pylint (many no-member errors), so
instead of adding some workaround, we just use the python 3.4 enum instead.
This however also means we need to depend on Python 3.4 and not 3.3. Maybe we
should use enum34 on Python < 3.3.
2014-07-28 20:41:42 +02:00
Florian Bruhin
54c7f29f04
Remove weird condition when cmd text ends with ' '.
...
For some reason we checked nargs if split is False. This caused the completion
to not get hidden with ":spawn ". Since this condition makes no sense (and
probably was converted wrong in be467d5e
) we remove it here.
2014-07-28 02:27:12 +02:00
Florian Bruhin
d60ff5ed27
Add a set-cmd-text command.
2014-07-28 02:16:37 +02:00
Florian Bruhin
76ff8aa30a
Add missing imports from current_url move.
2014-07-28 02:16:22 +02:00
Florian Bruhin
e0bd89b762
Add an {url} variable for commands.
...
Note this also means we don't support :spawn running in a shell anymore, as
{url} is evaluated earlier. However this should be fine, as there's no really
important use case for that anyways, and shell escaping on Windows is rather
unmaintainable.
2014-07-28 01:40:36 +02:00
Florian Bruhin
c2a7a67f30
Add some more init checks and use Tk for errors
2014-07-27 22:57:50 +02:00
Florian Bruhin
f86458a3b9
Remove shutdown code
2014-07-27 20:56:42 +02:00
Florian Bruhin
056e1bea76
Fix settabtext fuckup
2014-07-25 13:47:48 +02:00
Florian Bruhin
71a27d42d8
Don't escape & in tab titles anymore.
...
Now that we do the rendering ourselves, & doesn't have any special meaning
anymore, so we don't have to escape it (as &&) anymore.
2014-07-24 22:50:22 +02:00
Florian Bruhin
d4c3a65fe3
Start with manpage generation
2014-07-18 07:48:33 +02:00
Florian Bruhin
8f19da7e54
Fix lint
2014-07-17 21:35:27 +02:00
Florian Bruhin
abf5fbc063
Clean up config color handling
2014-07-17 16:06:14 +02:00
Florian Bruhin
34d1449cd2
Make it easier to disable tab indicator
2014-07-17 14:50:16 +02:00
Florian Bruhin
f7304298ab
Separate docstrings into command/documentation parts.
2014-07-16 20:09:41 +02:00
Florian Bruhin
1d0fa621b6
Formatting fixes
2014-07-16 18:05:17 +02:00
Florian Bruhin
a687388819
Change config descriptions to be asciidoc
2014-07-16 18:05:17 +02:00
Florian Bruhin
86b7ea4dfc
Merge branch 'tabbar'
2014-07-16 17:57:15 +02:00
Florian Bruhin
dd2027bb53
Focus webview when tabs change
2014-07-16 16:34:58 +02:00
Florian Bruhin
e3d9c252ab
Remove unneeded updateGeometry
2014-07-16 14:45:02 +02:00
Florian Bruhin
3b2acf32b5
Remove logging on resize
2014-07-16 14:17:10 +02:00
Florian Bruhin
5e06d420f9
Fix disconnecting tab signals
2014-07-16 14:11:28 +02:00
Florian Bruhin
1a1473a18e
Handle dirty tabbar layout correctly
2014-07-16 14:10:46 +02:00
Florian Bruhin
52c52e0675
Add a tab progress indicator
2014-07-16 13:51:16 +02:00
Florian Bruhin
bcbdf9090f
Make tab close mouse button configurable
2014-07-16 13:04:08 +02:00
Florian Bruhin
2d3575f6d1
Remove tab close buttons
2014-07-16 13:04:08 +02:00
Florian Bruhin
6289ef7981
Adjust vertical tabbar width
2014-07-16 13:04:08 +02:00
Florian Bruhin
7bcd8192a7
Add FIXME
2014-07-16 13:04:08 +02:00
Florian Bruhin
854d6dffcc
Various tab rendering fixes.
2014-07-16 13:04:08 +02:00
Florian Bruhin
81f3abd402
Remove unneeded tabInserted.
2014-07-16 13:04:08 +02:00
Florian Bruhin
81ff622291
Improve highlight_color tests.
2014-07-16 13:04:08 +02:00
Florian Bruhin
93f2e4b24d
Cleanup.
2014-07-16 13:04:08 +02:00
Florian Bruhin
7c8471e64c
Nicer drawing of close cross.
2014-07-16 13:04:08 +02:00
Florian Bruhin
b47d53953b
Add a highlight_color util function.
2014-07-16 13:04:08 +02:00
Florian Bruhin
20e8c464e6
Check for QtValueErrors in interpolate_color tests.
2014-07-16 13:04:08 +02:00
Florian Bruhin
ca74fa28ac
Use a nicer Color() class for tests.
2014-07-16 13:04:08 +02:00
Florian Bruhin
b042b5cbc4
Try drawing our own tab button
2014-07-16 13:04:08 +02:00
Florian Bruhin
9a430b22a3
Calculate close button position correctly
2014-07-16 13:04:08 +02:00
Florian Bruhin
367ecb0e44
Override subElementRect properly.
2014-07-16 13:04:08 +02:00
Florian Bruhin
cd19697a77
Construct a copy of text_rect in tab_layout.
2014-07-16 13:04:08 +02:00
Florian Bruhin
7ad0dc6416
Remove magic constant.
2014-07-16 13:04:08 +02:00
Florian Bruhin
27d3c8d20f
Rename option to opt.
2014-07-16 13:04:08 +02:00
Florian Bruhin
1d31f1eb48
Don't pass useless widget to tab_layout.
2014-07-16 13:04:07 +02:00
Florian Bruhin
465ff7406c
Use self instead of super()
2014-07-16 13:04:07 +02:00
Florian Bruhin
1f9597153e
Cleanup
2014-07-16 13:04:07 +02:00
Florian Bruhin
87e80451c7
Remove wrong validity check
2014-07-16 13:04:07 +02:00
Florian Bruhin
e608ccbe36
Draw tabbar ourselves #2
2014-07-16 13:04:07 +02:00
Florian Bruhin
92d28a66d5
Paint odd/even tabs in different colors
2014-07-16 13:04:07 +02:00
Florian Bruhin
256d7e90b9
Apply tabbar style to bar only
2014-07-16 13:04:07 +02:00
Florian Bruhin
c3428db029
Use self._style for overridden drawItemText
2014-07-16 13:04:07 +02:00
Florian Bruhin
9b21f37659
Try changing tabbar color
2014-07-16 13:04:07 +02:00
Florian Bruhin
b4aba0d0ee
Don't display tab separator if unneeded
2014-07-16 13:04:07 +02:00
Florian Bruhin
ef237bc081
Remove obsolete tabbar options
2014-07-16 13:03:46 +02:00
Florian Bruhin
90adc100a2
Move style to widgets.tabwidget
2014-07-16 13:03:46 +02:00
Florian Bruhin
4acf046ed2
Force tab text to be left-aligned
2014-07-16 13:03:46 +02:00
Florian Bruhin
23baab1fc0
Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser
...
Conflicts:
qutebrowser/utils/webelem.py
2014-07-16 11:09:13 +02:00
Florian Bruhin
98edd45fee
Stop using self.sender() in signalfilter, connect signals to mainframe
2014-07-16 11:07:05 +02:00
Florian Bruhin
8757f016cb
Fix lint
2014-07-16 10:40:11 +02:00
Florian Bruhin
e250d42f0b
Better debugging for editing
2014-07-16 09:28:28 +02:00
Florian Bruhin
1f3b39eb75
Get rid of prevnext_rel selector group
2014-07-16 09:17:59 +02:00
Florian Bruhin
be460afc1c
Make debug text more compact
2014-07-16 09:15:52 +02:00
Florian Bruhin
f8151bc8ed
Fix insert modes where we can't get an element
2014-07-16 09:09:28 +02:00
Florian Bruhin
fed18d31f2
Merge branch 'editable'
2014-07-16 08:47:37 +02:00
Florian Bruhin
69a388a055
Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser
2014-07-16 08:47:32 +02:00
Florian Bruhin
958b114d29
Add stricter focus checking for editor
2014-07-16 08:46:52 +02:00
Florian Bruhin
fdc51cb628
Cleanup
2014-07-16 08:40:40 +02:00
Florian Bruhin
810e507da9
Add a focus_elem function to utils.webelem.
2014-07-16 07:55:30 +02:00
Florian Bruhin
bbd9d24334
Handle elements with contenteditable correctly for editor
2014-07-16 07:42:02 +02:00
Florian Bruhin
92e67b8018
Improve editable field selection.
...
Now it also gets the gmail compose window, but we can't actually edit its
value... It works in dwb though!
2014-07-16 07:15:31 +02:00
Florian Bruhin
d5c8e73b14
Use same focus code for insertmode/editor
2014-07-16 06:58:01 +02:00
Florian Bruhin
c369bde6ad
Don't force minimum tab size.
2014-07-11 16:54:54 +02:00
Florian Bruhin
86edda69c1
Fix close-on-right-click for tabs.
2014-07-11 07:01:08 +02:00
Florian Bruhin
4114308193
Log exception on invalid config
2014-07-10 22:39:24 +02:00
Florian Bruhin
0705d6087c
Don't catch every ValueError to get failed interpolations
2014-07-10 22:38:09 +02:00
Florian Bruhin
f0c67193a9
Implement ConfigManager.items().
...
If this isn't implemented, _interpolate_some will fail when doing a
double-interpolation.
2014-07-10 22:32:41 +02:00
Florian Bruhin
fad22c63d9
Go back to using one NetworkManager per tab
2014-07-10 06:42:52 +02:00
Florian Bruhin
781390828f
Merge branch 'master' of ssh://lupin/qutebrowser
2014-07-09 21:14:32 +02:00
Florian Bruhin
72b854049b
Improvments for hints/page-prev/page-next
2014-07-09 21:14:15 +02:00
Florian Bruhin
5feee871ac
Fix lint
2014-07-07 12:00:51 +02:00
Florian Bruhin
6d44cf1b6e
Fix weird crash in on_tab_changed
2014-07-06 21:33:50 +02:00
Florian Bruhin
cea3cb4712
Only leave insert/hint mode if loading started in current tab
2014-07-04 17:32:17 +02:00
Florian Bruhin
f173583605
Documentation update for Qt 5.3.1
2014-07-04 14:37:31 +02:00
Florian Bruhin
117755863d
Fix lint
2014-07-04 07:41:03 +02:00
Florian Bruhin
37ed9deecf
Add tests for key_to_string and keyevent_to_string.
2014-07-04 07:35:33 +02:00
Florian Bruhin
539325db90
Move fake_keyevent to test.helpers
2014-07-04 07:35:04 +02:00
Florian Bruhin
734ee74e8a
Use OrderedDict for modmask2str
2014-07-04 07:33:58 +02:00
Florian Bruhin
261bb85791
Handle escape key correctly
2014-07-03 07:52:58 +02:00
Florian Bruhin
70afe4d1fd
Don't die on only-modifier keypresses.
2014-07-03 07:52:47 +02:00
Florian Bruhin
ea84ce7acf
Force keybindings to lower case
2014-07-03 07:46:14 +02:00
Florian Bruhin
d45e883f6d
Move NormalizeTests to test.utils.test_misc
2014-07-03 07:41:23 +02:00
Florian Bruhin
9b24ca39ea
Move normalize_keystr to utils.misc
2014-07-03 07:34:09 +02:00
Florian Bruhin
f1ff2738da
Don't normalize keys via QKeySequence.
...
This yields rather strange results with some exotic keys, and this
normalisation doesn't really do much anyways.
2014-07-03 07:16:24 +02:00
Florian Bruhin
1816e8419e
Handle some special corner-case keys correctly
2014-07-03 07:14:30 +02:00
Florian Bruhin
03e83ff8e1
Move key to string converting to utils.misc
2014-07-03 06:51:24 +02:00
Florian Bruhin
058bab2348
Log key IDs in hex
2014-07-03 06:30:50 +02:00
Florian Bruhin
a52796e94d
Handle all key modifiers correctly
2014-07-03 06:29:05 +02:00
Florian Bruhin
ae676323ff
Turn auto-insert-mode off by default
2014-07-02 23:08:49 +02:00