Florian Bruhin
6d419b8346
Avoid starting downloads before we know the filename.
...
Closes #278 .
2014-11-30 18:47:40 +01:00
Florian Bruhin
302fcec3ed
Merge branch 'master' of ssh://tonks/qutebrowser
2014-11-30 17:30:27 +01:00
Florian Bruhin
25a665e601
Abort download question on errors. Fixes #266 .
2014-11-30 15:34:15 +01:00
Florian Bruhin
a00dd7b679
Slowly download while the user is entering a filename.
...
Closes #79 .
Closes #270 .
2014-11-30 15:30:15 +01:00
Florian Bruhin
60ef39b4d0
fixup
2014-11-30 15:30:15 +01:00
Florian Bruhin
ee0cb00428
First download cleanup.
2014-11-30 15:30:14 +01:00
Florian Bruhin
d32096495d
Apply default zoom correctly.
...
Fixes #287 .
2014-11-28 17:01:29 +01:00
Mathias Fussenegger
aeb6ceb942
correct search engine regex to match multiple search terms
2014-11-27 22:59:43 +01:00
Florian Bruhin
f6dffa74b6
Fix lint
2014-11-27 22:27:13 +01:00
Florian Bruhin
9bd8d3f2e5
Merge branch 'search-engine-syntax' of https://github.com/mfussenegger/qutebrowser into mfussenegger-search-engine-syntax
2014-11-27 22:19:07 +01:00
Mathias Fussenegger
68398035ef
change search engine syntax to match that of dwb
...
as pointed out in
https://github.com/The-Compiler/qutebrowser/issues/14 this
commit changes the syntax so that DuckDuckGo bang syntax
works.
2014-11-27 21:57:51 +01:00
Florian Bruhin
68b9aaace4
Add utils.raises. Closes #274 .
2014-11-27 20:44:48 +01:00
Florian Bruhin
c87fa34544
Use a QTime in widgets.statusbar.bar. Fixes #124 .
2014-11-27 20:09:58 +01:00
Florian Bruhin
cb1df68153
Automatic config migration for renamed sections/options.
2014-11-27 07:07:28 +01:00
Florian Bruhin
bdbe284a56
Fix tabbar updating when changing fg colors.
2014-11-26 21:21:02 +01:00
Florian Bruhin
d34aefcfee
Another round of config breakage (sorry!).
...
- Rename colors->tab.* to colors->tabs.*
- Rename permission section to content.
2014-11-26 21:16:27 +01:00
Florian Bruhin
e8966ec7bb
Remove some shlex vdebug.
2014-11-26 21:02:20 +01:00
Florian Bruhin
cbac8bb330
Fix lint
2014-11-25 23:24:52 +01:00
Florian Bruhin
7e879c9312
Don't add javascript-bridge only once.
...
Otherwise, qute:settings will break when reloading it.
2014-11-25 23:21:49 +01:00
Florian Bruhin
e85e11310d
Merge branch 'master' of https://github.com/iggy/qutebrowser into iggy-master
2014-11-25 23:03:09 +01:00
Brian Jackson
9cfb4b3431
Fix problem with qutesettings scope in pages
...
Fix to make sure the js bridge code is only enabled when qute: pages are shown.
Previously it would only be available to the first page (and before that it
was available to all pages).
2014-11-25 14:29:20 -06:00
Florian Bruhin
010efcee93
Don't treat floats as IPs either.
2014-11-25 21:19:24 +01:00
Florian Bruhin
683a306c51
Fix @log_signals with deleted objects.
2014-11-25 19:51:53 +01:00
Brian Jackson
4fd4376c6a
Pass around win_id so we can use it in the error message handler
...
The message class needs a win_id to know where to send error messages. Just
pass it through the jinja->js->qtwebbridge as it's just a simple int.
2014-11-25 11:19:00 -06:00
Brian Jackson
bf37d16896
View/edit browser config in a special browser page
...
Add the ability to view/edit the browser's config settings via a special
browser page.
It's very simplistic for now, but a good starting point.
Future possibilities:
* Matching config types to html input types
* colors = html colorpicker
* options with valid_values = select/multi-select
* plain text fallbacks where appropriate
* multi-line text edits for long options (i.e. host-block-lists)
* Javascript option verification
* switch from submitting changes onblur to onchange if an option passes basic
verification, etc.
2014-11-25 10:34:06 -06:00
Florian Bruhin
6973050ccc
Don't treat any valid int as IP
2014-11-24 21:49:48 +01:00
Florian Bruhin
7be32dd70c
Don't handle hexadecimal numbers as IP addresses.
...
Fixes #269 .
2014-11-24 21:47:22 +01:00
Florian Bruhin
186f292586
Remove unused import
2014-11-24 21:07:03 +01:00
Florian Bruhin
0134646c67
Basic host blocker implementation.
...
Squashed commit of the following:
commit 8d38e9c2f13778fe21cc2c1d61c5d26907b469ef
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 21:04:30 2014 +0100
Fix default adblock lists.
commit a734b87e753daec28fa0c6643af8de088041179a
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 21:04:14 2014 +0100
Fix error output on adblock errors.
commit 15bc10f605ebb86c12523bb81b55d1440fcacdbf
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 07:38:47 2014 +0100
Update adblock docks
commit 475d530ee50f52295c2171208c6a0278750cf4b4
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 07:38:39 2014 +0100
Remove adblock ram calculation
commit 0e52cc3ec93912fd3fa3ecf6de833aef0c540a60
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 07:03:11 2014 +0100
Adjust docs for hosts-file.
commit 941df242d38300d7e42a26f2e67cfd668c6f8590
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 06:55:40 2014 +0100
Add logging for host blocking.
commit 4ca1561ccf32affb8439113f4f1c222d7dee1e14
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 00:11:59 2014 +0100
Don't do adblock updates automatically after changing config.
commit 26d4e86ca393d4a1a5fd8fac7729ce9c2e7cd240
Author: Florian Bruhin <git@the-compiler.org>
Date: Thu Nov 20 19:58:32 2014 +0100
adblock: Don't delete blocked hosts between files.
commit c7af08c68adf3c135d5a2fc746eb6d3c715b0711
Author: Florian Bruhin <git@the-compiler.org>
Date: Thu Nov 20 19:58:22 2014 +0100
adblock: Add comments for rewinding.
commit 9af87313088cd79ab8c022bcee9308511d6328f0
Author: Florian Bruhin <git@the-compiler.org>
Date: Thu Nov 20 19:56:39 2014 +0100
adblock: Rewind files properly.
commit 7f3dadc04ba68c92d6789ecf5822f7b2dfc367a0
Author: Florian Bruhin <git@the-compiler.org>
Date: Thu Nov 20 19:40:18 2014 +0100
Add untested file support.
commit 334c01867d510b599d94c9397097a1d789c0c64c
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 22:33:25 2014 +0100
adblock: Handle download errors correctly
commit 3a9af4cd4a903386dc323640f1d52e03383b3aa7
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 22:23:04 2014 +0100
adblock: Add error handling for invalid input.
commit 5934c3c027ff9205adb512aab396ca913b31e50d
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 22:22:47 2014 +0100
adblock: Handle done_count correctly.
commit 3ba5e83fda9b7d764bfcf1e4b1aa479daae39791
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 21:18:10 2014 +0100
Read adblock files when they finished downloading.
commit 86a5ecf194445e2ebe0cf22b59e24223387880c5
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 20:51:25 2014 +0100
Add hosts-file.net to host-block-lists.
commit 121f0bff953497449c32e45e671b71d954beed4c
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 20:51:13 2014 +0100
Add zip-file support to adblock.py.
commit f1c0e67cb9d890a44a1d1f545ace997f0a453f91
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 17 07:41:14 2014 +0100
print line counts for debugging
commit 75dbb8964fd44862abc378ef26fb47f8cda6061e
Author: Florian Bruhin <git@the-compiler.org>
Date: Fri Nov 14 19:22:20 2014 +0100
Use statusbar messages for adblock
commit 74d9142d831496e02c5baae72c2723e320af1778
Author: Florian Bruhin <git@the-compiler.org>
Date: Fri Nov 14 08:34:46 2014 +0100
Add basic adblock functionality.
2014-11-24 21:05:09 +01:00
Florian Bruhin
f7fbf98667
downloads: Rewind file objects correctly on redirects.
2014-11-24 21:04:48 +01:00
Florian Bruhin
9333e92891
Remove download assertions.
2014-11-24 06:55:54 +01:00
Florian Bruhin
6856c49be9
Handle HTTP redirections in downloads.
2014-11-24 00:12:52 +01:00
Florian Bruhin
0a1bdd79da
Split some functions into smaller ones.
2014-11-23 21:26:59 +01:00
Florian Bruhin
655115858c
Handle OSError when using subprocess.
2014-11-23 18:07:05 +01:00
Florian Bruhin
8ec42908f1
Add a new option tabs->tabs-are-windows.
2014-11-21 06:22:52 +01:00
Florian Bruhin
615be2a4bc
Update docs.
2014-11-20 06:36:08 +01:00
Florian Bruhin
9c180fd91b
Add a dest-parameter to :download.
2014-11-20 06:24:15 +01:00
Florian Bruhin
7b1ea3ff40
Typo: s/similiar/similar/g
2014-11-19 22:46:52 +01:00
Florian Bruhin
2fe72d8087
Simplify utils.log.
...
The overcomplicated parsing with re didn't really give us much benefits, and
lead to exceptions and segfaults[1] (?) already, so it's best to just get rid
of it entirely.
[1] http://paste.the-compiler.org/view/26768694
2014-11-19 22:43:49 +01:00
Florian Bruhin
336bbc370e
Ignore 'content-type missing' Qt warning.
2014-11-19 22:38:56 +01:00
Florian Bruhin
283cedff15
Never get downloads from the cache.
...
This is a workaround for corrupted files because Qt somehow reads them from the
cache wrongly. See https://bugreports.qt-project.org/browse/QTBUG-42757
This might fix a part of #78 - but we'll leave this open for now, since it
might also be another issue.
2014-11-19 19:43:07 +01:00
Florian Bruhin
b8b31fd914
downloads: default autoclose=True. Fixes #265 .
2014-11-18 20:10:57 +01:00
Florian Bruhin
2a95533564
Add some assertions for 'successful'.
2014-11-18 19:56:57 +01:00
Florian Bruhin
b1d6e70c8b
Check URL validity in :download.
2014-11-18 19:49:55 +01:00
Florian Bruhin
75d1f072c2
Add a raise_cmdexc_if_invalid to urlutils.
2014-11-18 19:49:31 +01:00
Florian Bruhin
41c3a59e81
Add a :download command.
2014-11-18 19:38:34 +01:00
Florian Bruhin
8c5bc67dd0
Recalculate geometry if data changed.
2014-11-18 07:47:28 +01:00
Florian Bruhin
40918bfc98
Use _die on QNetworkReply errors.
2014-11-18 07:47:28 +01:00
Florian Bruhin
406f7b3b84
Don't try to set fileobject on errors.
2014-11-18 07:47:28 +01:00
Florian Bruhin
c6deae36b1
Fix setting of successful flag.
2014-11-18 07:47:28 +01:00
Florian Bruhin
829b8df535
downloads: Return the created DownloadItem.
2014-11-18 07:47:28 +01:00
Florian Bruhin
6301c740d1
downloads: Add a generic NetworkManager.
2014-11-18 07:47:28 +01:00
Florian Bruhin
c8a1c979e8
downloads: Whitespace change.
2014-11-18 07:47:28 +01:00
Florian Bruhin
d31e8edffc
downloads: Document _win_id.
2014-11-18 07:47:28 +01:00
Florian Bruhin
da49424836
downloads: Make it possible to set fileobj instead of name.
2014-11-18 07:47:28 +01:00
Florian Bruhin
5ad516a438
DownloadItem: Make fileobj public.
2014-11-18 07:47:28 +01:00
Florian Bruhin
f250cd41ad
DownloadItem: Add an autoclose attribute.
2014-11-18 07:47:28 +01:00
Florian Bruhin
ab0dba3344
DownloadItem: add successful attribute.
2014-11-18 07:47:28 +01:00
Florian Bruhin
b0c8ca9e1a
Escape regex correctly.
2014-11-18 07:34:50 +01:00
Florian Bruhin
cf1728de43
configtypes: Add more tests for List/UrlList.
2014-11-18 07:14:06 +01:00
Florian Bruhin
c29ae9e1d3
configtypes: Add new UrlList type.
2014-11-18 07:14:06 +01:00
Florian Bruhin
142e90cdd3
Move special network replies to their own file.
2014-11-18 07:14:06 +01:00
Florian Bruhin
c4da44e90c
configtypes: Handle none_ok differently for List.
2014-11-18 07:14:06 +01:00
Florian Bruhin
2514e66028
Don't call processEvents in NetworkManager.
...
This caused the segfaults and memory corruption issues mentioned in #256 .
2014-11-18 07:14:06 +01:00
Florian Bruhin
3622f35865
Hide 'load glyph failed' Qt warning.
2014-11-16 16:25:37 +01:00
Florian Bruhin
ecbebba9e9
hints: Ignore TypeError when disconnecting contentsSizeChanged.
...
Fixes #263 .
2014-11-16 00:05:20 +01:00
Florian Bruhin
15ce2746eb
Remove unneeded 'except RuntimeError'
2014-11-14 19:33:26 +01:00
Florian Bruhin
794df11b01
Add spacing to DownloadView.
2014-11-14 19:33:18 +01:00
Florian Bruhin
3f6a40aac9
Update cache size if storage->cache-size is changed.
2014-11-14 19:02:22 +01:00
Florian Bruhin
9bf776aee1
Fix TypeError when closing tabs with older PyQt-versions.
...
Fixes #257 .
It seems disconnecting a signal from a destroyed object gives us a
"TypeError: pyqtSignal must be bound to a QObject, not 'WebView'" instead of a
RuntimeError with older PyQt-versions (5.2.1).
2014-11-14 18:55:48 +01:00
Florian Bruhin
4925a3f36e
Ignore new statusbar questions when we're shutting down.
...
Fixes #95 .
2014-11-12 23:28:03 +01:00
Florian Bruhin
ac7b17be3a
Describe _busy attribute for prompter.
2014-11-12 23:26:43 +01:00
Florian Bruhin
a10801ef21
Don't get prompter widget when restoring None context.
...
This basically did hide #95 .
2014-11-12 20:53:47 +01:00
Florian Bruhin
812b100205
Invert background-tabs setting when Shift is pressed.
...
Closes #175 .
2014-11-12 20:37:44 +01:00
Florian Bruhin
4c8ecbb40d
Fix disconnecting from objreg for deleted objects.
2014-11-12 20:22:49 +01:00
Florian Bruhin
2419071b0f
Disconnect destroyed signal of objects deleted in objreg.
...
Fixes #205 .
2014-11-12 20:19:26 +01:00
Florian Bruhin
69803f5f87
Don't log exception during exception handling twice.
2014-11-12 20:18:36 +01:00
Florian Bruhin
e23360bb88
Don't open a new window if only commands are sent via IPC.
...
Fixes #237 .
2014-11-11 22:42:45 +01:00
Florian Bruhin
d30ec95f72
Open new window if no existing window is found on IPC.
2014-11-11 22:29:44 +01:00
Florian Bruhin
ddb52b1e17
Leave insert mode when tab is changed.
2014-11-11 21:42:53 +01:00
Florian Bruhin
b70c3754e8
downloads: Check if reply is open when doing delayed write.
...
This fixes a "QIODevice::read: device not open" warning when closing the window
while a download is active.
2014-11-11 21:40:25 +01:00
Florian Bruhin
b502280c06
Make download-manager a per-window object.
...
Fixes #228 .
2014-11-11 21:36:47 +01:00
Florian Bruhin
5fa1556588
Fix getting last main window when it was closed.
...
Fixes #242 .
2014-11-10 23:21:31 +01:00
Florian Bruhin
2278d30187
Work around pylint bug in tests.
...
See:
https://bitbucket.org/logilab/astroid/issue/36/attributeerror-starred-object-has-no
2014-11-10 23:02:38 +01:00
Florian Bruhin
6310081ef5
Clean up simple_split.
2014-11-10 23:02:34 +01:00
Florian Bruhin
c70f6f534b
Get rid of dotted_getattr.
2014-11-10 18:59:13 +01:00
Florian Bruhin
eaca891616
Log uncaught exceptions to debug log
2014-11-10 18:34:31 +01:00
Florian Bruhin
57212c8438
Fix "Exception ignored in:" warnings.
...
Fixes #245 .
2014-11-10 18:00:44 +01:00
Florian Bruhin
398da22b54
Fix splitting with split=False and maxsplit=0.
...
Since re.split behaves differently from str.split with maxsplit=0,
4e9b9baeab
broke things like ":open foo bar".
2014-11-10 10:38:19 +01:00
Florian Bruhin
96c72724ce
Handle whitespace correctly when splitting with flags.
...
Fixes #248 .
2014-11-10 08:14:45 +01:00
Florian Bruhin
1b46c96192
Fix completion when deleting command
2014-11-10 07:59:39 +01:00
Florian Bruhin
d71147898b
Move completion logic from statusbar widget to completer.
...
Fixes #247 .
2014-11-10 07:49:22 +01:00
Florian Bruhin
5e7ef5201c
Move statusbar-cmd registering.
2014-11-10 07:05:57 +01:00
Florian Bruhin
10059ce70f
Remove unneeded _get_object call.
2014-11-10 07:05:24 +01:00
Florian Bruhin
404e425a9e
Clean up faulthandler import
2014-11-09 22:59:14 +01:00
Florian Bruhin
5f9c56bcdd
Fix exception when logging Qt warning without function.
2014-11-09 22:57:39 +01:00
Florian Bruhin
bc009ae624
Fix lint in split.py
2014-11-09 22:15:44 +01:00
Florian Bruhin
326ce91eb7
Append hint elements inside body.
...
Fixes #226 .
2014-11-09 22:02:08 +01:00
Florian Bruhin
40be804ee6
Don't handle "foo: bar" as URL.
...
Fixes #227 .
2014-11-09 21:54:15 +01:00
Florian Bruhin
bf752f6ea4
Update pyPEG2 install instructions.
...
Fixes #243 .
2014-11-09 21:48:33 +01:00