Florian Bruhin
8d7249ebc6
Implement statusbar padding.
2015-08-27 22:12:39 +02:00
Florian Bruhin
4891fe9457
Always expand ~ when starting scripts.
2015-08-27 20:30:41 +02:00
meles5
afddf75bae
Fixed license issue
2015-08-27 13:37:31 +02:00
Florian Bruhin
3e8136e353
Revert changes to cmdhistory.py.
2015-08-27 06:25:42 +02:00
Florian Bruhin
4fb3114af8
Merge branch 'cmdhistory_tests' of git://github.com/acogneau/qutebrowser into acogneau-cmdhistory_tests
2015-08-27 06:18:30 +02:00
Florian Bruhin
f78fb0c027
basekeyparser: Remove dead code.
...
We added this in 836a5e04a5
for the old INI-based
config, but this is not needed anymore as the keys.conf syntax does not allow
this.
2015-08-26 20:31:17 +02:00
Florian Bruhin
4f1c27d230
Merge branch 'basekeyparser_tests' of git://github.com/acogneau/qutebrowser into acogneau-basekeyparser_tests
2015-08-26 17:34:10 +02:00
Alexander Cogneau
3a4069667a
Remove test functions out of class
2015-08-26 12:07:47 +02:00
Alexander Cogneau
a1dff7d535
Final cmdhistory tests
2015-08-26 00:16:18 +02:00
Alexander Cogneau
18d42d1f0a
More tests for cmdhistory
2015-08-25 22:17:42 +02:00
Florian Bruhin
124099ac4c
Fix docstrings.
2015-08-25 21:18:45 +02:00
Florian Bruhin
8171a53478
Merge branch 'progressbar' of git://github.com/t-wissmann/qutebrowser into t-wissmann-progressbar
2015-08-25 21:18:02 +02:00
Alexander Cogneau
26058f4e80
A few cmdhistory tests
2015-08-25 18:46:49 +02:00
Alexander Cogneau
09161faca5
Refactor read_config for easier testing
2015-08-25 12:04:22 +02:00
Thorsten Wißmann
183a5910de
Fix progressbar height to statusbar height.
...
Formerly, the statusbar height changed when the progressbar was visible.
This was caused by the default font-size of the progressbar text (though
invisible). Overriding the minimumSizeHint() method ignores the
font-size of the hidden text and the statusbar height does not change
anymore.
This fixes the first issue of #886 .
2015-08-25 11:14:52 +02:00
Thorsten Wißmann
830136540d
Hide the border of the completionwidget
...
Having a light Qt theme but a dark qutebrowser theme, one can see an
ugly white border around the completion widget which is some relict from
the underlying Qt widget QTreeView. As qutebrowser has its own theming
settings for the mainwindow, it should hide the Qt theme as far as
possible.
2015-08-25 11:01:25 +02:00
Florian Bruhin
1a062035eb
Log IPC server name to debug log.
2015-08-24 19:28:09 +02:00
Alexander Cogneau
af9647221a
Add tests for BaseKeyParser
2015-08-24 18:12:12 +02:00
Florian Bruhin
201f2f67d3
sessions: Logging/error message improvements.
2015-08-24 17:12:20 +02:00
Florian Bruhin
4577659342
Fix crash when there's no completion.
2015-08-24 00:08:55 +02:00
Florian Bruhin
b783069f48
SessionManager: Factor out name handling in save.
2015-08-23 21:54:55 +02:00
Florian Bruhin
2556e2e27b
Remove unused import.
2015-08-23 18:29:02 +02:00
Florian Bruhin
17215822bc
sessions: Use try/except to create base-path.
2015-08-23 18:17:10 +02:00
Florian Bruhin
6d8854bc07
Simplify usage of tabhistory.TabHistoryItem.
2015-08-23 18:16:19 +02:00
Alexander Cogneau
193a8d5242
Add unit tests for KeyInput.BaseKeyParser
2015-08-22 23:26:13 +02:00
Florian Bruhin
fc6c49f57c
Cleanup
2015-08-22 22:59:41 +02:00
Florian Bruhin
2a5d352c7b
Merge branch 'separate_completion_filters' of git://github.com/acogneau/qutebrowser into acogneau-separate_completion_filters
2015-08-22 22:53:35 +02:00
Florian Bruhin
3d5599facb
Move session dir handling out of SessionManager.
2015-08-22 22:53:03 +02:00
Alexander Cogneau
7ed4977d64
Change parent of filter models
2015-08-21 16:56:36 +02:00
Alexander Cogneau
729c10e0a9
Fix PEP issue
2015-08-21 16:23:28 +02:00
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