Alexander Cogneau
387c84beff
Completion model filters are now per-window (via completer.py)
2015-08-21 16:05:33 +02:00
Florian Bruhin
355074f248
Add a . for spatial-navigation docs.
2015-08-20 11:11:31 +02:00
Florian Bruhin
ed70d636d0
argparser: Check for unknown types.
2015-08-20 07:09:09 +02:00
Florian Bruhin
506917882e
argparser: Style fixes.
2015-08-20 07:08:59 +02:00
Florian Bruhin
a79c139aa4
Revert "style: Check for QColor when setting in ColorDict."
...
This reverts commit 9b82fae6fb
.
2015-08-19 20:48:19 +02:00
Florian Bruhin
1d5cae3146
style: Use a collection.UserDict.
2015-08-19 20:46:02 +02:00
Florian Bruhin
b3395a1a9c
style: Fix logging in ColorDict.
2015-08-19 20:39:31 +02:00
Florian Bruhin
9b82fae6fb
style: Check for QColor when setting in ColorDict.
2015-08-19 20:39:16 +02:00
Florian Bruhin
dc0e8b4626
Don't pass config to stylesheets.
2015-08-19 20:38:19 +02:00
Florian Bruhin
685bbaae6d
100% test coverage for misc.editor.
2015-08-19 09:34:44 +02:00
Florian Bruhin
45e7be4940
Increase default hint size a bit.
...
See #871 .
2015-08-19 06:40:43 +02:00
Florian Bruhin
07c6c40548
Set messagebox = None without Tk in checkpyver.
2015-08-19 06:39:22 +02:00
Florian Bruhin
1a61e53daa
100% test coverage for misc.checkpyver.
2015-08-19 05:58:52 +02:00
Florian Bruhin
e4a0f1972f
tests: Improve MessageMock and use it.
2015-08-18 21:38:18 +02:00
Florian Bruhin
d3d999e041
Show a confirmation when adding bookmarks.
2015-08-18 19:03:46 +02:00
Florian Bruhin
127514f719
Document cmdutils.aliases attribute.
2015-08-17 21:13:23 +02:00
Florian Bruhin
7ce78bb560
networkreply: Add is{Running,Finished} methods.
2015-08-17 07:15:55 +02:00
Florian Bruhin
d94c1736db
Use a proper file:// URL for dirbrowser icons.
2015-08-16 19:04:54 +02:00
Florian Bruhin
97a9255400
Don't import function in filescheme.
2015-08-16 18:52:54 +02:00
Florian Bruhin
fb1cffd158
Merge branch 'feature/directory-browser' of git://github.com/antoyo/qutebrowser into dirbrowser
2015-08-16 18:27:05 +02:00
Florian Bruhin
3bfd049a0a
Don't use inspect.getfullargspec().
...
It seems to be deprecated in Python 3.5.
2015-08-16 15:43:28 +02:00
Antoni Boucher
149ca68853
Renamed setReferer to set_referer.
2015-08-14 08:24:13 -04:00
Florian Bruhin
11502b7942
signalfilter: Remove annoying type check.
2015-08-14 06:43:23 +02:00
Antoni Boucher
abeb7e3390
Fixed issues.
2015-08-13 19:54:23 -04:00
Florian Bruhin
7b3de27b44
Add class="parent" in dirbrowser.html.
2015-08-13 21:56:22 +02:00
Antoni Boucher
814841200a
Fixes issues.
2015-08-12 17:24:01 -04:00
Antoni Boucher
77190554cc
Merge branch 'master' into feature/directory-browser
2015-08-12 16:57:45 -04:00
Florian Bruhin
6f4141956b
Merge branch 'dynamic-column-widths' of git://github.com/acogneau/qutebrowser into acogneau-dynamic-column-widths
2015-08-12 18:20:01 +02:00
Florian Bruhin
25b43d528c
Clear textbase text properly.
2015-08-12 07:41:06 +02:00
Florian Bruhin
8609663f40
statusbar.textbase: Fix broken text check.
2015-08-12 07:35:24 +02:00
Florian Bruhin
c55cb5b16b
config.textwrapper: Remove *args.
...
textwrap.TextWrapper only takes kwargs.
2015-08-12 07:01:21 +02:00
Florian Bruhin
44f8cf4b1a
Move :tab-focus documentation.
2015-08-11 22:01:18 +02:00
Florian Bruhin
705544cb05
Merge branch 'gt' of git://github.com/t-wissmann/qutebrowser into t-wissmann-gt
2015-08-11 21:58:53 +02:00
Florian Bruhin
2980bc808e
Remove dead configtypes code.
2015-08-11 20:15:42 +02:00
Florian Bruhin
2d8aaecd65
100% coverage for utils.debug.
2015-08-11 17:11:00 +02:00
Florian Bruhin
64a1cad604
Clean up output for get_all_objects().
2015-08-11 17:10:41 +02:00
Florian Bruhin
a3a7f8936b
Allow to pass a root object to _get_pyqt_objects.
2015-08-11 17:10:02 +02:00
Florian Bruhin
307bbde6e0
Fix utils.debug.get_all_children().
2015-08-11 17:09:20 +02:00
Florian Bruhin
0ca96740c9
Make utils.debug.format_args public.
2015-08-11 17:08:49 +02:00
Florian Bruhin
caedb57e56
Fix staticMetaObject handling in qenum_key.
...
Since we checked on klass instead of base, there never was a staticMetaObject
and the slower path was always taken - this corrects that.
2015-08-11 17:07:47 +02:00
Florian Bruhin
10298e9692
Don't connect destroyed signal in log_signals.
...
This causes weird segfaults and is probably not that important to log.
Fixes #867 .
2015-08-11 14:29:06 +02:00
Thorsten Wißmann
da6d12a657
Make tab-focus (bound to gt) behave as in VIM
...
If no count or index is given, tab-focus switches to the next tab (using
tab-next internally). So the keychain gt behaves as gt in vim:
- gt focuses the next tab
- 1gt focuses the first tab
- <n>gt (e.g. 5gt) focuses the n'th (e.g. fith) tab
2015-08-11 10:50:27 +02:00
Alexander Cogneau
8be433f5f6
Add tests:
...
- sum of column widths equals 100
- column widths tuple has 3 elements
2015-08-11 09:17:46 +02:00
Florian Bruhin
c8679d6544
100% coverage for browser.webelem.
2015-08-10 19:37:16 +02:00
Florian Bruhin
aed915b1ec
Handle invalid URLs when checking for same domain.
...
The old code only checked whether current_url is invalid, but the request URL
can be invalid as well, e.g. on http://www.playstation.com/
/cc @Carpetsmoker
2015-08-09 18:52:11 +02:00
Florian Bruhin
fe3eb30892
Reorganize exceptions in urlutils.
...
- Instead of ValueError, a new InvalidUrlError is raised with invalid URLs.
- FuzzyUrlError got removed as it's basically the same as InvalidUrlError.
2015-08-09 18:48:32 +02:00
Antoni Boucher
052d18147e
Added permission check.
2015-08-09 11:29:18 -04:00
Antoni Boucher
0896d7a8b3
Fixed file scheme handler.
2015-08-08 19:45:00 -04:00
Alexander Cogneau
753f87aa15
Default size of third column is now 0
2015-08-08 23:49:54 +02:00
Antoni Boucher
14ae308279
Added a file:// scheme.
2015-08-08 15:16:48 -04:00
Antoni Boucher
7e20d77bdf
Switch to SVG file and tango theme.
2015-08-08 14:43:55 -04:00
Antoni Boucher
2969599390
Use toLocalFile function instead of slicing.
2015-08-08 14:13:09 -04:00
Antoni Boucher
e6521b047d
Added get_file_list function and tests.
2015-08-08 14:10:27 -04:00
Antoni Boucher
b8809f879d
Added resource_filename function and tests.
2015-08-08 13:47:47 -04:00
Antoni Boucher
ec5049f801
Renamed url to urlstring.
2015-08-08 13:32:04 -04:00
Alexander Cogneau
e29c642bc2
Fix wrong propertyname
2015-08-08 18:12:51 +02:00
Alexander Cogneau
f2c3cc6a3e
Module import of completion.models instead of class.
2015-08-08 17:58:12 +02:00
Alexander Cogneau
0e9f268817
CompletionView:
...
- column_widths -> _column_widths
- removed if-statement to verify if source model has 'column_widths'-property
2015-08-08 17:47:18 +02:00
Alexander Cogneau
36372418ca
Added the default column_widths as a class attribute instead of a config option.
2015-08-08 17:27:21 +02:00
Alexander Cogneau
5c2d3ec96a
Add a column_widths property to the base class for completion models.
2015-08-08 16:46:57 +02:00
Florian Bruhin
f76b741fb6
Merge branch 'master' of git://github.com/Kingdread/qutebrowser into Kingdread-master
2015-08-08 15:14:08 +02:00
Antoni Boucher
2be0743378
Added images.
2015-08-07 23:28:24 -04:00
Antoni Boucher
fedf9d9c72
Replaced tuple by dict.
2015-08-07 22:45:54 -04:00
Antoni Boucher
4c1ed35390
Removed .. when in root folder.
2015-08-07 22:45:42 -04:00
Antoni Boucher
c8d3fc57c2
First version of directory browser.
2015-08-07 21:57:19 -04:00
Daniel
9e98ab181a
Add URL validity check + tests to incdec_number
2015-08-08 00:57:16 +02:00
Daniel
c4c3a83ac0
rename url_incdec_number to incdec_number
2015-08-08 00:57:16 +02:00
Florian Bruhin
3a85afe1f4
Use datetime.ctime().
2015-08-07 22:32:02 +02:00
Alexander Cogneau
43e0ac1844
Fix PEP8: line too long warning
2015-08-07 21:15:40 +02:00
Alexander Cogneau
73c28c12f3
Show launch time in crash logs.
2015-08-07 20:36:38 +02:00
Daniel
276b163e0d
Move logic from _navigate_incdec to urlutils
...
Also add unittests for url_incdec_number
2015-08-07 18:48:07 +02:00
Daniel
0f3aa0bd8c
Ctrl-A only increments number in path segment
...
This prevents a host like "myfoo42.bar" changing to "myfoo43.bar" when
pressing Ctrl-A. It further prevents increasing the port number, e.g.
going from "foo.bar:8080" to "foo.bar:8081".
2015-08-07 17:21:18 +02:00
Florian Bruhin
5f122759db
Fix config migration for tab position values.
2015-08-07 11:59:31 +02:00
Florian Bruhin
2ab7ad59ee
Fix lint.
2015-08-06 21:19:36 +02:00
Florian Bruhin
3f445ba6ca
Draw favicon at correct position/size.
2015-08-06 21:14:05 +02:00
Florian Bruhin
58a9677af8
Use QFontMetrics instead of QFontInfo.
2015-08-06 21:11:06 +02:00
Florian Bruhin
e1c2250690
Merge branch 'favicon-size-2' of git://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-favicon-size-2
2015-08-06 21:10:11 +02:00
Florian Bruhin
61df5fcd7a
Skip confirm-quit checks when crashing.
...
Fixes #853 .
2015-08-06 21:08:20 +02:00
Florian Bruhin
9c6782be1d
downloads: Fix size calculation with unknown size.
...
Fixes #854 .
2015-08-06 21:00:36 +02:00
Florian Bruhin
36adaf0cf3
Simplify argument handling for DownloadManager.
2015-08-06 20:41:57 +02:00
Florian Bruhin
5fca27ad02
Fix :adblock-update.
2015-08-06 20:38:51 +02:00
Florian Bruhin
46f3be2df7
Add rapid hinting for downloads.
2015-08-06 19:09:21 +02:00
Florian Bruhin
a34fa93f62
Wrap long lines.
2015-08-06 18:50:32 +02:00
Alexander Cogneau
8ffe73cc5f
Change 'prompt-download-location' setting to 'prompt-download-directory'
2015-08-06 16:44:58 +02:00
Alexander Cogneau
9a85b66452
Merge remote-tracking branch 'upstream/master'
2015-08-06 16:40:48 +02:00
Florian Bruhin
c6c14e967d
Change Position conftypes to top/bottom/left/right.
2015-08-05 23:37:51 +02:00
Martin Tournoij
58aa1a738d
Favicon sizing is messed up with tabs -> orientation = west #847
...
Here's a patch which seems to work well in my initial testing. We now use the
font size rather than the tabbar size, since the tabbar size is the window
size when it's vertical.
This also works nicer with the new tabs.padding setting (which didn't exist when
I wrote the first patch).
2015-08-05 22:33:24 +02:00
Florian Bruhin
5a25f0b98b
Don't crash on :completion-item-del with no item.
...
If :completion-item-del was invoked with no item selected (e.g. directly after
pressing 'o'), there was a crash because the currentIndex was invalid.
/cc @antoyo (but I believe one of my changes on top of yours caused this)
2015-08-05 06:55:39 +02:00
Florian Bruhin
15e854237e
Fix exception on ":set -p foo bar!".
2015-08-04 23:50:43 +02:00
Alexander Cogneau
3fa99abca8
Merge remote-tracking branch 'upstream/master'
2015-08-04 16:32:31 +02:00
Alexander Cogneau
e43a1e6444
Added config option for prompting the user for a download location.
2015-08-04 16:30:55 +02:00
Florian Bruhin
93d27cbb5f
Escape 0x00 in javascript_escape().
...
This is needed in older PyQt-versions.
2015-08-04 12:42:49 +02:00
Florian Bruhin
7e7fe9b4ce
Simplify utils.qualname, take two.
2015-08-04 10:39:34 +02:00
Florian Bruhin
c67f7b6b21
Simplify utils.qualname.
2015-08-04 10:36:35 +02:00
Florian Bruhin
43266ac08a
webelem: Add more tests.
2015-08-03 23:40:39 +02:00
Florian Bruhin
ed4fc4d1ba
webelem: Escape \r in javascript_escape().
2015-08-03 23:22:23 +02:00
Florian Bruhin
8011cefea6
webelem: Check if elem is writable with roles.
2015-08-03 23:21:45 +02:00
Florian Bruhin
0330adf284
Filter links for :navigate.
2015-08-03 23:21:20 +02:00
Florian Bruhin
21a60f06c0
webelem: Add <link> element to all/prevnext.
2015-08-03 23:17:54 +02:00
Florian Bruhin
c6a5731560
webelem: Check for vanished elem in is_text_input.
2015-08-02 23:49:22 +02:00
Florian Bruhin
3d9e4817f2
webelem: Fix return value for is_editable().
2015-08-02 23:49:12 +02:00
Florian Bruhin
5c58641c81
Fix WebElementWrapper.__delitem__.
2015-08-02 23:47:35 +02:00
Florian Bruhin
b850df090b
Add branch coverage workaround for coverage.py bug.
2015-08-02 23:47:22 +02:00
Florian Bruhin
2c7dd5c60c
rfc6266: Simplify ContentDisposition.
2015-08-02 19:48:31 +02:00
Florian Bruhin
aaf90d0fe3
Simplify RFC6266 error handling.
2015-08-02 18:09:01 +02:00
Florian Bruhin
cd7c3ec3a4
Fix docstring for http module.
2015-08-02 17:20:21 +02:00
Florian Bruhin
b4a695d5b8
Strip trailing slash when getting path from URL.
2015-08-02 17:18:59 +02:00
Florian Bruhin
c13f7e5f78
Remove dead ShellLexer code.
2015-08-02 13:05:19 +02:00
Florian Bruhin
dc4d4e70e4
Make sure state is valid in ShellLexer.
2015-08-02 12:44:54 +02:00
Florian Bruhin
49f017c0dd
Fix mainwindow.statusbar.percentage tests.
2015-08-02 01:53:30 +02:00
Florian Bruhin
d5888fea89
100% coverage for mainwindow.statusbar.progress.
2015-08-02 01:49:33 +02:00
Florian Bruhin
43db9d4526
Fix wrong pyqtSlot type.
2015-08-02 01:42:16 +02:00
Florian Bruhin
7f3070f793
Remove : for configexc.NoOptionError.
2015-08-02 01:29:24 +02:00
Florian Bruhin
d8017a04a8
Mark old tabbar hide settings as removed.
2015-08-01 22:36:59 +02:00
Florian Bruhin
6b98158d64
Fix lint.
2015-08-01 22:21:08 +02:00
Artur Shaik
e58735f1d7
'Tabs show' recommendations applied.
2015-08-01 22:21:08 +02:00
Artur Shaik
b4d5f9e7a6
Tabs->show option.
...
Issue #771
Implemted common option for tab bar show strategy.
Options: always, never, multiple, switching.
2015-08-01 22:21:08 +02:00
Florian Bruhin
2bd36e21f1
Merge branch 'download-cpu-2'
2015-08-01 14:57:47 +02:00
Florian Bruhin
8314f7f93c
Fix referer handling with generic download NAMs.
...
This broke e.g. :adblock-update as tab_id for those is set to None.
2015-08-01 14:54:46 +02:00
Florian Bruhin
d6585202fd
Remember the last used download directory.
...
Thanks to @Carpetsmoker for the original PR.
Closes #745 .
Closes #37 .
2015-08-01 14:19:06 +02:00
Florian Bruhin
52d7a5693f
Fix lint.
2015-08-01 13:47:42 +02:00
Florian Bruhin
81c3c2d15f
Small config rewording.
2015-08-01 13:35:30 +02:00
Florian Bruhin
44d109ca92
Save referer-header setting.
2015-08-01 13:32:11 +02:00
Florian Bruhin
976f758da1
Fix getting of the current URL.
2015-08-01 13:29:25 +02:00
Florian Bruhin
27f65be860
Merge branch 'referer-header' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-referer-header
...
Conflicts:
tests/utils/test_urlutils.py
2015-08-01 12:44:57 +02:00
Florian Bruhin
cc66feac09
Handle invalid history timestamps.
2015-08-01 00:57:34 +02:00
Florian Bruhin
d04848ac19
Remove unused import.
2015-08-01 00:34:09 +02:00
Florian Bruhin
451477593f
Always require 4 values for padding.
2015-08-01 00:34:09 +02:00
Florian Bruhin
22ae0c5bca
Don't call setIconSize if height doesn't change.
2015-08-01 00:26:37 +02:00
Florian Bruhin
2c716dbf6c
Merge branch 'favicon-size' of https://github.com/Carpetsmoker/qutebrowser into tabbar-height
2015-08-01 00:22:17 +02:00
Florian Bruhin
be88ba6f05
Remove indicator-space setting.
2015-07-31 18:55:17 +02:00
Florian Bruhin
fdcb69f5d4
Fix indicator layout and make it configurable.
2015-07-31 18:52:31 +02:00
Florian Bruhin
3083eaa27b
Clean up TabBarStyle._tab_layout.
2015-07-31 18:06:01 +02:00
Florian Bruhin
41eb36148d
Clean up TabBarStyle.drawControl.
2015-07-31 17:59:38 +02:00
Florian Bruhin
f5725ec11e
Use a namedtuple for _tab_layout.
2015-07-31 17:49:18 +02:00
Florian Bruhin
754c31850b
Add configurable tab padding.
2015-07-31 17:24:35 +02:00
Florian Bruhin
041315b65f
Honour right-padding in tabs correctly.
2015-07-31 17:02:42 +02:00
Florian Bruhin
8dcf9fd963
Separate padding/icon padding for tab bar.
2015-07-31 16:55:48 +02:00
Florian Bruhin
776ace2d3f
Clean up comparison.
2015-07-31 16:41:02 +02:00
Florian Bruhin
87d8bfd7a7
Use an enum for custom PixelMetrics.
2015-07-31 16:40:06 +02:00
Florian Bruhin
452c4115d3
Add a Padding config type.
2015-07-31 15:38:41 +02:00
Florian Bruhin
57e79db136
Fix undefined name error.
2015-07-29 15:04:07 +02:00
Florian Bruhin
d9d68db5df
Simplify delete_cur_item for UrlCompletionModel.
2015-07-29 12:44:38 +02:00
Florian Bruhin
08fe1d59e6
Get rid of bookmark_by_title completion.
2015-07-29 12:36:45 +02:00
Florian Bruhin
69ade32cb9
Get rid of quickmark_by_name completion.
2015-07-29 12:35:43 +02:00
Florian Bruhin
c016e8a4cf
Improve error handling for quick-/bookmarks.
2015-07-29 12:34:53 +02:00
Florian Bruhin
093b3cba25
Add a bookmark-del command.
2015-07-26 21:05:32 +02:00
Florian Bruhin
0acd1b8dc8
Use urlutils.fuzzy_url for loading bookmarks.
2015-07-26 18:52:15 +02:00
Florian Bruhin
b962fff7f1
Don't show message when deleting items.
2015-07-26 18:48:00 +02:00
Florian Bruhin
ecf3e166ff
Fix wrong column attribute.
2015-07-26 18:47:02 +02:00