Florian Bruhin
3a5cd8f3ff
Revert "Remove test_ipc workaround again."
...
This reverts commit f4d2e0746e
.
2015-09-03 06:51:15 +02:00
Florian Bruhin
f4d2e0746e
Remove test_ipc workaround again.
2015-09-03 06:36:33 +02:00
Florian Bruhin
efe40fa7e0
Try different workaround for test_ipc issues.
2015-09-03 06:12:36 +02:00
Florian Bruhin
e0c6a322c6
ipc: Pass socket to send_to_running_instance.
2015-09-02 23:32:06 +02:00
Florian Bruhin
82c647a87d
ipc: Mark on_ready_read cornercase as no-cover.
2015-09-02 23:32:06 +02:00
Florian Bruhin
1953bb8458
ipc: Disconnect on invalid data.
2015-09-02 23:32:06 +02:00
Florian Bruhin
6b4b65e585
ipc: Clarify comment.
2015-09-02 23:32:06 +02:00
Florian Bruhin
cbcd6261b1
ipc: Add got_invalid_data signal.
2015-09-02 23:32:06 +02:00
Florian Bruhin
0c3ee46fe0
Merge branch 'autoupdate_tests' of https://github.com/acogneau/qutebrowser into acogneau-autoupdate_tests
2015-09-01 08:48:52 +02:00
Florian Bruhin
16e3bad7af
Hide scroll buttons in vertical tab bar.
2015-08-31 22:00:26 +02:00
Alexander Cogneau
e499d8932f
100% misc.autoupdate coverage
2015-08-31 01:10:04 +02:00
Florian Bruhin
79c1867e6c
Don't save cookies when starting in private mode.
...
Whoops... :(
Fixes #903 .
2015-08-30 23:17:48 +02:00
Florian Bruhin
8913c1883e
ipc: Fix missing import.
2015-08-30 22:57:45 +02:00
Florian Bruhin
6dbd669efe
ipc: Disconnect properly from server.
2015-08-30 20:35:50 +02:00
Florian Bruhin
a1cb47936a
IPC: Fix shutdown when self._socket is None.
2015-08-30 20:35:34 +02:00
Florian Bruhin
39e40a7887
ipc: Pass args to send_to_running_instance.
2015-08-29 23:09:44 +02:00
Florian Bruhin
fe493f8565
ipc: Pass socket name to IPCServer.
2015-08-29 21:26:22 +02:00
Florian Bruhin
d5668dd687
ipc: Don't listen in IPCServer.__init__ already.
2015-08-27 23:09:25 +02:00
Florian Bruhin
a7bf0744e0
Move some IPC code from app.py to ipc.py.
2015-08-27 23:04:27 +02:00
Florian Bruhin
ff6e96347b
ipc: Refactor _get_socketname to take better args.
2015-08-27 22:32:29 +02:00
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