Liam BEGUIN
531a5071f6
updated inputs-group
2016-05-17 00:38:23 -04:00
Liam BEGUIN
3b0354518b
Added basic inputs-group to :hint
2016-05-15 22:46:12 -04:00
Florian Bruhin
b704c911ae
Fix running qute:log and qute:plainlog
...
This failed because dict.get('level') returned None with no level
parameter, and the subsequent [0] raised:
Traceback (most recent call last):
File ".../qutebrowser/utils/utils.py", line 624, in wrapper
return func(*args, **kwargs)
File ".../qutebrowser/browser/network/networkmanager.py", line 445, in createRequest
op, req, outgoing_data)
File ".../qutebrowser/browser/network/qutescheme.py", line 107, in createRequest
data = handler(self._win_id, request)
File ".../qutebrowser/browser/network/qutescheme.py", line 189, in qute_log
level = urllib.parse.parse_qs(request.url().query()).get('level')[0]
TypeError: 'NoneType' object is not subscriptable
2016-05-15 11:33:30 +02:00
Ryan Roden-Corrent
fcd233a675
Clean up :messages implementation.
...
- Add log.LOG_LEVELS to map names to levels (instead of using
logging._levelToName)
- Test that log pages do not contain messages below the requested level
- Use pythons urllib.parse.parse_qs instead of Qt's UrlQuery
- Document tab, bg, window args for :messages
- Clean up style
2016-05-14 12:45:22 -04:00
Ryan Roden-Corrent
800c1c3cf8
Add :messages command to show past messages.
...
This adds a 'level' query parameter to qute://log and qute://plainlog.
For example, qute://log?level=warning will show an html page containing
log entries with severity warning or greater.
If the query is omitted, the original behavior of qute://log is
preserved.
:messages [level] is a command that opens qute://log?level=<level>.
By default, level defaults to 'error' as an easy way to see missed
error messages.
2016-05-14 07:10:58 -04:00
Florian Bruhin
5eff35ba30
cmdutils.register: annotation -> arg for flags
...
Instead of using a 'flag' key in the annotation dict, we now use a flags
argument to @cmdutils.register which is a {argument: flag} dict.
See #637 .
2016-05-10 07:35:41 +02:00
Florian Bruhin
73fbfb9731
Replace 'nargs' annotation by star_args_optional
...
Before we used a {'nargs': '*'} annotation for the respective argument
to tell qutebrowser it's optional for the commandline. Now we instead
use a star_args_optional argument for @cmdutils.register as a first step
towards freeing up argument annotations for PEP 484.
See #637 .
2016-05-09 22:49:24 +02:00
Daniel Schadt
1fa50021c1
downloads: use right index for beginInsertRows
...
len(self.downloads) is already the index of the item in the download
list, this should be used for beginInsertRows(). The +1 is only for the
human readable part.
2016-05-08 23:36:31 +02:00
Daniel Schadt
99182e3e79
downloads: change len() to sum()
2016-05-08 23:36:31 +02:00
Daniel Schadt
643d2cc6dd
fix confirm-quit=downloads with finished downloads
...
Issue #846
.rowCount() returns all downloads, even the finished ones that have not
yet been removed from the list. For confirming the quit event, we should
only consider downloads that are still running.
2016-05-08 23:36:31 +02:00
Florian Bruhin
89c7b0e7f8
Simplify if-statement
2016-05-08 22:18:14 +02:00
Florian Bruhin
59ec5fa947
Show debug instead of warning for #670
...
The user can't do much about this anyways, and I have no idea what
triggers it, so let's not annoy them about it.
2016-05-08 22:08:08 +02:00
Florian Bruhin
b9b6f357da
Add utils.supports_selection()
2016-05-08 22:06:59 +02:00
Florian Bruhin
3e6ac28c66
Fix ;Y on systems not supporting primary selection
...
Instead we paste clipboard like we already do with some other commands
when primary selection is not supported.
Fixes #1336
2016-05-08 21:59:25 +02:00
Florian Bruhin
4d9a98a11d
Paste clipboard with :paste-primary on Windows
2016-05-08 21:18:57 +02:00
Florian Bruhin
4403f02ac5
Fix HostBlocker.on_config_changed with no datadir
2016-05-07 23:35:30 +02:00
Florian Bruhin
6d1764e732
Clear blocked hosts on start correctly
2016-05-07 23:31:35 +02:00
Florian Bruhin
b6add69705
Improve exception handling in HostBlocker
...
In on_config_changed, we now ignore FileNotFoundError as that's a common
occurence and not something worth logging.
In case of other OSError's we now also log the exact error message.
2016-05-07 23:30:32 +02:00
Florian Bruhin
2ea76c282e
Merge branch 'feature-#1349' of https://github.com/haitaka/qutebrowser into haitaka-feature-#1349
2016-05-07 21:32:05 +02:00
Daniel Schadt
2918c5cd57
downloads: close fileobject in DownloadItem._die
...
Otherwise we will get a unclosed resource warning.
2016-05-06 18:01:45 +02:00
Daniel Schadt
dcac832f5e
netmanager: fix crash when asking with no tab_id
...
Issue 1413
This happens when the networkmanager is used by something that has no
tab_id, like the generic DownloadManager. In this case, we should just
skip the webview connection (as it makes no sense) instead of crashing
(which is the last thing we want to do).
2016-05-05 00:34:16 +02:00
Florian Bruhin
c76746ca32
Refine Logjam cipher blacklisting
...
- The OS check was wrong
- EDH ciphers are (hopefully) not affected and break e.g. gnupg.org
2016-05-01 22:19:11 +02:00
Florian Bruhin
73d5d24cb4
Fix lint
2016-05-01 17:48:35 +02:00
Florian Bruhin
6bd2591681
Disable all Diffie-Hellman ciphers on Windows
2016-05-01 17:42:20 +02:00
Florian Bruhin
0124354b91
Disable more bad SSL ciphers with old Qt/OpenSSL
...
See #594
2016-05-01 17:31:00 +02:00
Florian Bruhin
b5aad7d1b9
Merge branch 'issue-1393' of https://github.com/NoctuaNivalis/qutebrowser into NoctuaNivalis-issue-1393
2016-04-30 14:06:54 +02:00
Florian Bruhin
076b486368
Merge branch 'issue-1412' of https://github.com/Kingdread/qutebrowser into Kingdread-issue-1412
2016-04-27 21:19:04 +02:00
Florian Bruhin
2a343cb3a1
Various code style improvements
2016-04-27 20:25:27 +02:00
Daniel Schadt
dcad81a78f
cache: fix crash when cache_dir is None
...
Issue #1412
When passing --cachedir="" on the command line, standarddir.cache()
returns None, which stands for "deactivate cache" and has to be
properly handled in DiskCache.__init__() (i.e. don't pass it to
os.path.join)
2016-04-26 23:14:55 +02:00
Florian Bruhin
7c3361d8da
Stabilize :download-delete test
2016-04-26 22:56:06 +02:00
Felix Van der Jeugt
b7ba3cd53e
fix flake and pep remarks
2016-04-26 22:52:29 +02:00
Felix Van der Jeugt
2d71c541c6
allow swapping dict at runtime
2016-04-26 22:52:29 +02:00
Felix Van der Jeugt
fdb630555d
make robust against short dicts
2016-04-26 22:52:29 +02:00
Felix Van der Jeugt
fe4800b68f
prevent words from the dictionary prefixing smart hints
2016-04-26 22:52:29 +02:00
Florian Bruhin
37b5f49c85
Fix types in @pyqtSlot decorations
...
PyQt 5.5 enforces correct type signatures, and there were a lot of
places where we were simply wrong, causing qutebrowser to not start at
all...
2016-04-26 20:34:38 +02:00
Florian Bruhin
341dae0b3f
Simplify deleting fragment
2016-04-25 19:05:20 +02:00
Florian Bruhin
d6c72c5821
Merge branch 'develop' of https://github.com/kanikaa1234/qutebrowser into kanikaa1234-develop
2016-04-25 19:03:20 +02:00
Florian Bruhin
6349c00c72
Fix crash with :tab-{prev,next,focus} with 0 tabs
...
When using :tab-prev/:tab-next (or :tab-focus which uses :tab-next
internally) immediately after the last tab, those functions could be
called with 0 tabs open, which caused a ZeroDivisionError when trying to
do % 0.
Fixes #1448 .
2016-04-25 18:55:15 +02:00
kanikaa1234
22ad416f35
Addressing test
2016-04-24 19:33:31 +05:30
Florian Bruhin
ef91fa3821
Merge branch 'marks' of https://github.com/rcorre/qutebrowser into rcorre-marks
2016-04-21 20:05:41 +02:00
Florian Bruhin
e18b056877
Merge branch 'pretty_url' of https://github.com/forkbong/qutebrowser into forkbong-pretty_url
2016-04-20 22:15:54 +02:00
Panagiotis Ktistakis
1ef2f042cf
Mention {url:pretty} in the docs
2016-04-20 19:39:18 +03:00
Panagiotis Ktistakis
6c3b0219e7
Style fix
2016-04-20 17:25:26 +03:00
Ryan Roden-Corrent
0755e163bb
Only set the ' mark on normal/current hinting.
...
Don't set ' for downloading, hovering, or opening a link in a tab.
2016-04-19 21:18:20 -04:00
kanikaa1234
fae005ab7f
:navigate: command and test feature
2016-04-19 20:30:20 +05:30
Florian Bruhin
e860d8cfea
Add a custom-headers setting
...
Supersedes #1132
Closes #1020 .
2016-04-19 06:35:32 +02:00
Panagiotis Ktistakis
bd6783c7e6
Add --pretty flag to :yank
...
With --pretty, the URL is yanked in a "pretty form", with most
percent-encoded characters decoded. Partially fixes #1372 .
2016-04-18 23:10:53 +03:00
Ryan Roden-Corrent
a924144d9a
Set ' mark after searching.
...
Allow jumping back to the previous position after a search jumps you around.
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
49b2f6e967
Move jump_mark logic to TabbedBrowser.
...
This simplifies the MarkKeyParser by removing its dependency on the
commandrunner. It also removes the need for a new exception type.
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
e684cfa03f
Trivial fixes for marks based on code review.
...
- Fix a docstring copy-paste
- Add own name/copyright date to new file
- Simplify a bdd expression (no need for regex)
- Scroll to a pixel position in a single operation
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
540f4af225
Set the ' mark after following a link.
...
This moves mark storage from CommandDispatcher to TabbedBrowser, so it can also
be accessed by the HintManager.
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
c7b830d69d
Fix up mistakes caught by pylint.
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
84eb30bc9a
Marks are local to urls, not tabs.
...
Rather than binding each set of local marks to a tab, bind them to a
url. Strip the fragment from the url, as two pages that differ only in
fragment are likely the same page.
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
9062f5925e
Set the ' mark on a jump.
...
Automatically set the special "'" mark when jumping.
jump-mark "'" will jump to the last position before the previous jump.
A jump could be navigating via a link, jumping to another mark, or
scrolling by percentage (e.g. gg or G).
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
ddcae14ba4
Implement set-mark and jump-mark.
...
set-mark <key> saves your current scroll position as mark <key>.
jump-mark <key> jumps to the position previously set for mark <key>.
If <key> is lowercase, it is local to the current tab. Each tab has its
own set of lowercase marks.
If <key> is uppercase, it is global across tabs, and stores a url and a
scroll position. Jumping to an uppercase mark navigates to that url,
then scrolls to the saved position.
Resolves #310 .
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
f5bb75a186
Fix docstring in scroll_px.
2016-04-17 21:04:08 -04:00
Jakub Klinkovský
3265601eab
Merge remote-tracking branch 'upstream/master' into hints_clicking
...
* upstream/master: (327 commits)
Remove unused import
tox: Update Werkzeug to 0.11.8
Regenerate authors
Use __file__ instead of sys.argv[0]
Regenerate authors
Make update_3rdparty.py install correctly when run from any directory
Open command line urls explicitly.
tox: Update Werkzeug to 0.11.6
Move qutebrowser.rcc to misc/
Regenerate resources
Fix CHANGELOG/link in README
New qutebrowser logo!
www: Add releases link
Release v0.6.1
release checklist: Clarify how to build on Windows
Make sure the cheatsheet PNG is included in sdist
Fix cheatsheet link URL in quickstart
Mark segfault on exit in test_smoke as xfail
Add a xfail test for #797
Add missing file
...
Conflicts:
tests/integration/features/hints.feature
2016-04-15 22:37:47 +02:00
haitaka
d61ee2681f
set back to the qutebrowser logo in on_load_started
2016-04-14 20:26:00 +06:00
Florian Bruhin
6989d4d210
Fix downloading of non-ascii files with LC_ALL=C
...
Fixes #908 .
2016-04-10 20:16:40 +02:00
Florian Bruhin
e6334e196c
Fix #1414 with a weird workaround
2016-04-10 15:26:02 +02:00
Johannes Martinsson
570d8b4abe
Make tab-focus count from end with negative index
...
This makes it possible to jump to the very last tab, as opposed to the
last focused tab, by using -1 as the index. Generally negative indexes
are counted from the end.
Solves issue #1166
2016-04-09 03:40:36 +02:00
kanikaa1234
a2bcf80aae
Fixed the tests
2016-04-08 20:51:07 +05:30
kanikaa1234
5c976d724b
Fixes #1318
2016-04-08 19:40:45 +05:30
Florian Bruhin
642dc46ba9
flake8: Add hacking
2016-04-08 07:35:53 +02:00
Florian Bruhin
f0b66130d6
Merge branch 'rcorre-edit-url'
2016-04-06 06:52:43 +02:00
Florian Bruhin
c4878bb7ed
Don't raise cmdexc.CommandError in :open
...
:open can be called via :edit-url async, so we need to use message.error
by hand there.
2016-04-06 06:46:42 +02:00
Florian Bruhin
776c4c4400
Ensure -t/-b/-w are exclusive in :edit-url
...
Otherwise those would be passed as-is to :open and an unhandled
cmdexc.CommandError would be raised there.
2016-04-06 06:44:50 +02:00
Florian Bruhin
9db697452d
Remove self._editor in CommandDispatcher
...
This was needed before there was editor.ExternalEditor as there were
various commands which needed to access the editor object.
Since this is encapsulated in ExternalEditor now, no need to keep a
reference to the object around.
2016-04-05 18:48:58 +02:00
Florian Bruhin
6b3ee53064
Fix lint
2016-04-05 18:37:50 +02:00
Florian Bruhin
fc92137706
Handle count correctly for :edit-url
2016-04-05 18:37:03 +02:00
Ryan Roden-Corrent
e0d1e527d0
Fix up edit-url implementation.
...
Remove spaces around '=' for kwargs, don't set the _editor member.
2016-04-05 07:49:01 -04:00
Florian Bruhin
b5c177526c
tests: Add some "# pragma: no cover" for downloads
2016-04-05 11:43:35 +02:00
Ryan Roden-Corrent
c8848a2641
Implement edit-url to craft a url with an editor.
...
The edit-url command opens a url (by default, the current url) in the
user's external editor and navigates to the result when the editor is
closed. This makes it easy to tweak the current url to navigate within
a site.
`edit-url` accepts the same flags as `open` (e.g. -t will open in a new
tab.
One may provide a url as an argument to create a shortcut to
pre-populate part of a url and allow filling in the rest.
There is no default keybinding.
Resolves #1261 .
2016-04-04 20:47:42 -04:00
Florian Bruhin
4b9cd1c544
Add qute:verizon
2016-04-01 10:30:30 +02:00
Florian Bruhin
4daf4a8e64
Fix lint
2016-04-01 08:16:28 +02:00
Florian Bruhin
e3a8d00f27
Include cheatsheet images in offline help
...
Fixes #329 .
Note the png's are kind of outdated right now.
2016-04-01 07:42:40 +02:00
Florian Bruhin
aad2407de1
Merge branch 'force-current-tab' of https://github.com/paretje/qutebrowser into paretje-force-current-tab
2016-04-01 06:13:08 +02:00
Florian Bruhin
451ea05393
Ignore "Frame load interrupted by policy change"
...
Searching for that error doesn't turn up many helpful results, but it
seems to be harmless and shown when downloading a file - it's also new
in Qt 5.6 it seems, so let's just ignore it.
2016-03-31 22:41:25 +02:00
Florian Bruhin
27b31b7ded
Avoid DownloadView being focused when pressing tab
...
The previous fix didn't work in situations where the web view was
actually focused, but had no focused element (like about:blank).
The new fix always works, and even is a lot simpler!
Fixes #504 .
2016-03-31 19:45:36 +02:00
Florian Bruhin
123fd18af5
Fix crash when removing download in closed window
...
When a download is finished with `removed-finished-download` set to a
delay, it's removed via a singleshot QTimer.
However, when the window was closed in the meantime, the slot still was
executed by Qt, even though the DownloadManager was already deleted.
Fixes #1242
2016-03-31 19:09:43 +02:00
Kevin Velghe
f4f98c54fa
Keep pylint happy
2016-03-31 11:25:35 +02:00
Kevin Velghe
e90ad3d9c0
Complete coverage for webelem
2016-03-31 10:25:44 +02:00
Jimmy
1c10a1aecf
Adds new buffer command with completion.
...
`buffer` takes either a tab index or a string and focuses the specified
tab. The index can be of the form [0-9]+ which will switch to the
relevant tab in the current window or [0-9]+/[0-9]+ (that is
win_id/index) which will focus the specified window before switching
tabs. If a string is passed the list of open tabs across all windows is
sorted based on title and url (just like in the completion widget) and
the top result is selected.
2016-03-31 14:00:36 +13:00
Kevin Velghe
0fe0f84546
Fix loop and support area tag
...
It appears the output of qtwebkit has a cycle, so we end in an endless
loop. This limits the loop to 5 steps.
2016-03-31 00:58:19 +02:00
Kevin Velghe
a242ba28d9
Support multiple levels when checking link target
2016-03-30 23:44:05 +02:00
Kevin Velghe
571d6519e9
Handle frames
2016-03-30 19:08:10 +02:00
Kevin Velghe
201739a7e6
Add current hint target
2016-03-30 16:27:34 +02:00
Florian Bruhin
6c7e2492e9
Merge branch 'dirbrowser-issue-1334' of https://github.com/Kingdread/qutebrowser into Kingdread-dirbrowser-issue-1334
2016-03-29 22:38:04 +02:00
Florian Bruhin
86ab33c558
Pass HTTPClient to PastebinClient as argument
2016-03-29 19:21:15 +02:00
Florian Bruhin
32c9f2ac94
Fix starting with -c ""
2016-03-29 07:43:11 +02:00
Florian Bruhin
3eb782b204
pylint: Remove now useless no-member suppression
...
This is now useless since introducing the jinja.render wrapper.
2016-03-29 07:06:32 +02:00
Florian Bruhin
2aaf22df76
Also read blocked hosts from ~/.config
2016-03-29 06:59:23 +02:00
Daniel Schadt
5e73a2ea37
dirbrowser: move parent dir logic to own function
2016-03-28 23:10:20 +02:00
Daniel Schadt
7fe4c7e06d
fix lint
2016-03-28 23:10:20 +02:00
Daniel Schadt
375e60627a
dirbrowser: ditch .lstrip, add file_url function
2016-03-28 23:10:20 +02:00
Daniel Schadt
a77e085952
dirbrowser: fix navigation on windows
...
Issue #1334
The problem was that there were too few slashes. On Linux, absolute
paths start with /, so
file:// + /home
gives file:///home, which is a valid path. On windows however, absolute
paths start with a drive letter, so
file:// + C:/Users
gives file://C:/Users, which is parsed as "host C, path Users", which is
why it could be written as file://c/Users (strip out the empty "port"),
giving us an invalid path.
The solution is to add the third slash in the template, and strip the
redundant slash on unix systems.
Additionally, this fixes a bug where navigating from '/home/' to the
parent directory would give '/home' instead of '/'
2016-03-28 23:08:54 +02:00
Kevin Velghe
76935291c0
Open links in current tab
...
Fix for #676
It removes the target of the link, as to prevent the website to overrule
the user. I guess the following things should be done:
- add setting to enable/disable this behaviour
- and/or add "hint all current"
Only the first one would be easiest. The second one requires us to keep track
of the original target. I should open a pull request for discussion.
2016-03-28 13:29:44 +02:00
Florian Bruhin
4cd49d42cc
Fix pdfjs error page after jinja.render changes
2016-03-27 12:53:53 +02:00
Florian Bruhin
86b12a302e
Add a jinja.render helper
...
This simplifies some code and will make #1362 possible.
2016-03-25 14:29:30 +01:00
Florian Bruhin
f2f0f429fb
Update docs
2016-03-25 11:10:38 +01:00
Florian Bruhin
99fadacda6
Merge branch 'multi_url_heuristic' of https://github.com/hcraT/qutebrowser into hcraT-multi_url_heuristic
2016-03-17 21:28:40 +01:00
Florian Bruhin
60c293846f
Un-deprecate :download-remove --all
2016-03-14 19:11:41 +01:00
Florian Bruhin
35731feeb5
Fix docs for :download-* commands
2016-03-14 19:05:36 +01:00
Florian Bruhin
25ee48d28b
Add an --all flag to :download-cancel
2016-03-14 19:05:15 +01:00
Florian Bruhin
18b6d7ea50
Merge branch 'xdg-download-dir-fix' of https://github.com/Kingdread/qutebrowser into Kingdread-xdg-download-dir-fix
2016-03-08 07:13:03 +01:00
Tarcisio Fedrizzi
8f593d948c
Fixing flake8 error
2016-02-28 23:56:23 +01:00
Tarcisio Fedrizzi
25bc2dc1db
Changes formatters to print multiline text on one line
2016-02-28 23:45:02 +01:00
Tarcisio Fedrizzi
0ab44c4f4a
Reformats code as requested
2016-02-28 23:41:20 +01:00
Tarcisio Fedrizzi
702b235981
Fixes formatting to make pylint happy.
2016-02-27 11:54:23 +01:00
Tarcisio Fedrizzi
006d8760c4
Adds path checking to the multiline url heuristic
2016-02-27 11:54:23 +01:00
Tarcisio Fedrizzi
4aa7649c0a
Implemented heurisitc on multiline paste
2016-02-27 11:54:23 +01:00
Florian Bruhin
c156f53eba
Merge branch 'data-link-fix' of https://github.com/Kingdread/qutebrowser into Kingdread-data-link-fix
2016-02-27 03:01:19 +01:00
Jakub Klinkovský
b1207650b0
hints: translate client rectangles into parent frames
2016-02-24 22:56:06 +01:00
Jakub Klinkovský
d630f966e7
hints: ignore too small rectangles returned by getClientRects()
...
Apparently we can have a '1px x 1px' rectangle at some zoom levels
and '0px x 0px' at others. We can't reliably click these, so let's
ignore them.
2016-02-23 20:23:11 +01:00
Jakub Klinkovský
58d2d92d67
Merge remote-tracking branch 'upstream/master' into hints_clicking
...
* upstream/master: (22 commits)
Regenerate authors.
Only run geolocation tests on CI
Switch to flake8-docstrings with pydocstyle
Fix lint
Move pylint plugins to an installed package.
Include pytest-xvfb properly in frozen tests
tests: Handle trailing / in wait_for_load_finished.
Fix lint.
tox: Upgrade hypothesis to 3.0.2.
tests: Add first end-to-end test for hints.
hints: Log the used hint chars
bdd: use quteproc.wait_for_load_finished.
Remove xvfbwrapper from freeze_tests.py.
Regenerate authors.
Combine launch/crash time into one section.
Split long lines.
Switch to pytest-xvfb. Fixes #1309 .
no ellipsis is inserted in big windows
Regenerate authors.
fixes #1308
...
2016-02-23 17:40:02 +01:00
Daniel Schadt
20daf1f86e
fix lint
2016-02-23 14:33:10 +01:00
Daniel Schadt
e5dc10a29e
downloads: handle relative XDG_DOWNLOAD_DIR
...
Issues #1269 , #866
qutebrowser would crash when XDG_DOWNLOAD_DIR was set to some
non-absolute value (which should not happen, but it can) and
"storage -> download-dir" was empty, since when the user didn't give an
absolute filename, even the joined path of download_dir() (i.e.
XDG_DOWNLOAD_DIR in this case) and the filename was not absolute either.
Since the path was not absolute, create_full_filename returned None,
which meant that os.path.basename(self._filename) raised an exception.
Now we display an error message and fall back to $HOME.
2016-02-22 23:43:09 +01:00
Jakub Klinkovský
1cff16b3b4
hints: fix bug in the correction of coordinates based on zoom level
2016-02-19 21:15:56 +01:00
Florian Bruhin
9b1db7ec0b
hints: Log the used hint chars
...
Useful for debugging and for end2end tests.
2016-02-18 20:46:15 +01:00
Daniel Schadt
007425cf16
downloads: fix filename for data: links
...
Issue #1214
Now uses a sensible filename for data: links instead of the whole base64
content. For PDF.js, it even uses the correct pdf filename.
TODO: Produces "QPainter:🔚 Painter ended with 2 saved states" while
running the tests here (Arch Linux):
CPython: 3.5.1
Qt: 5.5.1, runtime: 5.5.1
PyQt: 5.5.1
2016-02-18 16:17:35 +01:00
Jakub Klinkovský
9799c30c2b
hints: add precision tests for different zoom levels
2016-02-15 23:31:49 +01:00
Jakub Klinkovský
dd594b0eca
hints: split getClientRects() into separate method
...
this will be useful for positioning the hint label
2016-02-15 23:28:52 +01:00
Jakub Klinkovský
a546933516
hints: use getClientRects() JS method to get the correct click position
2016-02-15 18:17:53 +01:00
Daniel Schadt
ec4ba31b52
pdfjs: fix misplaced comma
2016-02-08 06:12:24 +01:00
Daniel Schadt
9676eab592
qutescheme: call base __init__ in QuteSchemeError
2016-02-05 15:18:27 +01:00
Daniel Schadt
59c782f383
qutescheme: handle pdfjs failures more gracefully
...
Now the browser does not crash anymore if an invalid pdfjs resource is
requested, instead it will reply with a 404 error.
2016-02-05 01:43:56 +01:00
Daniel Schadt
804b4750ab
pdfjs: use list of tuples instead of dictionary
...
Even though the dict seemed to be fine, this gives us a predictable
replacement order and helps with debugging in the future.
2016-02-04 21:18:15 +01:00
Daniel Schadt
da4f69cf72
pdfjs: throw PDFJSNotFound from None
...
Otherwise the stacktrace might be confusing since it will show the
FileNotFoundException as the causing error, which is not true (it just
happens to be the last checked place).
The .path attribute was added so that we still have the requested path
in the error log.
See #1280 .
2016-02-04 21:11:20 +01:00
Florian Bruhin
79f83a033d
Add a fake clipboard for tests
...
There are a lot of problems and flakiness with using a real clipboard.
Instead we now have a :debug-set-fake-clipboard command to set a text, and use
logging when getting the contents.
Fixes #1285 .
2016-02-03 20:27:11 +01:00
Florian Bruhin
7fe818f9c8
Revert "Delay :yank notification until message was yanked."
...
This reverts commit b79049261e
.
2016-02-03 19:19:13 +01:00
Florian Bruhin
65a4c71488
Merge branch 'master' of https://github.com/NoctuaNivalis/qutebrowser into NoctuaNivalis-master
2016-02-02 18:58:16 +01:00
Florian Bruhin
14042403f6
Fix pasting of empty URLs.
2016-02-02 06:37:49 +01:00
Daniel Schadt
449a54c7d0
pdfjs: add file path to version information
...
Shows "bundled" if the bundled version is used.
2016-02-01 17:28:18 +01:00
Daniel Schadt
6342febb44
pdfjs: Update documentation
...
The-Compiler made an AUR package for pdfjs so we should mention it in
the SYSTEM_PDFJS_PATHS, even though it uses the same path as the Debian
package.
2016-02-01 16:43:20 +01:00
Florian Bruhin
44625b254c
Merge branch 'shift_ins' of https://github.com/lahwaacz/qutebrowser into lahwaacz-shift_ins
2016-01-31 19:46:41 +01:00
Jakub Klinkovský
cc8e7007b4
Fixed docstring formatting error
2016-01-30 14:13:41 +01:00
Jakub Klinkovský
db6a0d53ca
Addressed code-quality remarks
2016-01-27 10:04:24 +01:00
Florian Bruhin
85adf7593d
Fix crash when downloading URL without path infos.
...
Fixes #1243 .
2016-01-26 22:39:10 +01:00
Florian Bruhin
ea1627c1e6
Cancel permission prompt when tab is closed.
...
Fixes #1250 .
2016-01-26 19:47:31 +01:00
Tomasz Kramkowski
399aaa2b70
history: Add clear() method and history-clear command
...
WebHistory now has a clear() method which is also a command
(history-clear) which clears the qutebrowser history using the new
lineparser clear() method and emits a cleared signal.
The completion model urlmodel connects to the WebHistory.cleared signal
and clears its history category completion list.
I am adding this as a temporary fix before #58 or #1051 get implemented.
2016-01-23 22:36:24 +00:00
Florian Bruhin
7fa0dc68bf
flake8: Add flake8-pep3101 plugin.
...
Checks for old string formatting.
https://pypi.python.org/pypi/flake8-pep3101/
2016-01-22 19:40:10 +01:00
Jakub Klinkovský
35e16a8e6e
paste-primary: fix undo/redo not working
...
It seems that unlike Gecko, WebKit does not support undo/redo operations
when the textarea's `value` attribute is changed directly. Fortunately
there is a WebKit-specific workaround using textInput event.
References:
* http://stackoverflow.com/a/7554295
* http://help.dottoro.com/ljuecqgv.php
2016-01-22 18:18:17 +01:00
Florian Bruhin
58fb2826ee
flake8: Add flake8-putty plugin.
...
Apply a bit of putty to flake8.
https://pypi.python.org/pypi/flake8-putty/
2016-01-22 17:33:58 +01:00
Florian Bruhin
fccde768ed
flake8: Add pep8-naming plugin.
...
Check PEP-8 naming conventions, plugin for flake8
https://pypi.python.org/pypi/pep8-naming/
2016-01-22 17:33:58 +01:00
Jakub Klinkovský
4d7e39470e
Added paste-primary command
...
The Shift+Ins key should arguably insert primary selection, not the
clipboard selection as every Qt program does. This commit makes it
possible via the hidden paste-primary command (enabled by default).
Unfortunately QtWebKit does not provide any straightforward way to
insert text at cursor position into editable fields, so we work around
this by executing a JavaScript snippet - inspired by this SO answer:
http://stackoverflow.com/a/11077016
2016-01-21 22:30:43 +01:00
Felix Van der Jeugt
6d33e7843e
should use the same keyword in config and code
...
hey this config check on startup is actually useful
2016-01-19 11:44:28 +01:00
Felix Van der Jeugt
7ad871fab1
Merge remote-tracking branch 'source/master'
2016-01-18 21:45:47 +01:00
Felix Van der Jeugt
cbb6e73b1f
cleaner condition, less force
2016-01-17 21:06:36 +01:00
Felix Van der Jeugt
beba5a3d6c
limit smart hint length
2016-01-17 20:44:14 +01:00
Florian Bruhin
f1c31233c8
Merge branch 'master' of https://github.com/Evidlo/qutebrowser into Evidlo-master
2016-01-15 07:42:47 +01:00
Florian Bruhin
9d520b7312
Avoid trying to load .netrc if $HOME isn't set.
...
This logged an error on Windows:
ERROR misc networkmanager:on_authentication_required:269 Unable to read the netrc file
Traceback (most recent call last):
File "c:\python34\Lib\netrc.py", line 27, in __init__
file = os.path.join(os.environ['HOME'], ".netrc")
File "C:\Users\florian\buildbot\slave\win8\build\.tox\py34\lib\os.py", line 633, in __getitem__
raise KeyError(key) from None
KeyError: 'HOME'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\florian\buildbot\slave\win8\build\qutebrowser\browser\network\networkmanager.py", line 262, in on_authentication_required
net = netrc.netrc()
File "c:\python34\Lib\netrc.py", line 29, in __init__
raise OSError("Could not find .netrc: $HOME is not set")
Since this case is pretty common, we don't want to log it - and checking the
variable beforehand is easier than parsing the exception message.
This should fix the failing tests on Windows.
2016-01-15 06:57:43 +01:00
evan
982ac5150d
issue 1213: Display yanked link in statusbar
...
copied string format from `yank()` in `commands.py`
2016-01-14 19:17:12 -05:00
Florian Bruhin
0203bb3ed5
Add a :debug-clear-ssl-errors command.
2016-01-13 21:05:48 +01:00
Florian Bruhin
f61b9fd42c
Update docs.
2016-01-13 18:20:44 +01:00
Florian Bruhin
6c916d166d
Merge branch 'master' of https://github.com/hcraT/qutebrowser into hcraT-master
2016-01-13 18:12:37 +01:00
Florian Bruhin
6b7f9fad9e
Fix ssl-strict = ask.
...
This was introduced in b13f2aa6f0
.
2016-01-13 15:54:25 +01:00
Florian Bruhin
b13f2aa6f0
Also deduplicate SSL errors with ssl-strict false.
...
Otherwise, on OS X we got the same SSL error logged twice as on_ssl_errors is
called twice. This means the tests only marked one as expected, and it failed
because of the other one.
2016-01-13 07:52:12 +01:00
Florian Bruhin
00f5b3cf74
Log debug information on SSL errors.
2016-01-13 07:52:12 +01:00
Tarcisio Fedrizzi
4bbc1e2d8a
Changes line as suggested in review
2016-01-12 09:58:08 +01:00
Tarcisio Fedrizzi
1b31a3fee4
Allows to paste multiple URLs
...
- The paste command will now open one tab/window per url if multiple
URLs (separated by newline) are present in the clipboard
- Adds the tests for the new multitab functionality
- Changes test/integration/conftest.py to be able to insert newlines in
the clipboard for the test
2016-01-09 11:32:12 +01:00
Florian Bruhin
3f15186a64
Add some coverage pragmas for caret workarounds.
2016-01-06 17:52:44 +01:00
Felix Van der Jeugt
362db3d986
fix remarks
2016-01-05 22:45:52 +01:00
Felix Van der Jeugt
8873aba09f
rename strng to more sensible names
2016-01-05 21:44:29 +01:00
Felix Van der Jeugt
e28c1bf9b8
allow config files to be optional
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
32de5b76a9
urgh be awake
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
12cc96a94b
fix most of the-compiler's remarks
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
b89e0f8803
refactor all the things
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
9f81a9c3c6
lines also hey, a useful suggestion
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
cb8b16ecc5
yes, this looks less complex
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
aa9e58b520
take this, pep8
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
fc06283d91
fix more pep8/pylint complaints
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
d0979b9fac
fix pep8 and pylint errors
...
Though I quite disagree on some remarks, as usual.
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
4814abe286
refactor tag extraction and fix string shadowing
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
38803375f5
add dictionary config value and fix wrong variable
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
351420310d
fix some of the style warnings and errors
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
766a94a539
fixed when new hints are prefixes of existing
...
good thing I used this some days before any merging
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
1dfcf99d22
more extensive smart hinting
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
2f9051c6e1
shorten unique word hints
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
50b7f260c7
use link text as hints
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
86828930a2
use object state in stead of class state to store hint words
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
aaad8588b6
include dictionary parsing in first hinting
...
I though this would be to slow, but it's actually OK
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
3be81ba62a
word hints should be generated on first call
2016-01-05 20:43:29 +01:00
Felix Van der Jeugt
49e6b656f6
add word hints
2016-01-05 20:43:29 +01:00
Florian Bruhin
a97ba9aa09
Merge branch 'pdfjs' of https://github.com/Kingdread/qutebrowser into Kingdread-pdfjs
2016-01-05 07:21:26 +01:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Daniel Schadt
6d02ef68ec
Add BDD tests for pdfjs integration
2015-12-20 20:00:56 +01:00
Daniel Schadt
4fdf318fda
pdfjs: Use "info" verbosity for pdf.js logging
2015-12-20 19:24:41 +01:00
Daniel Schadt
1279e418ee
pdfjs: Replace inline-removal with own function
...
Easier to unit-test and easier to understand for other programmers.
2015-12-20 19:24:41 +01:00
Daniel Schadt
c0b3160676
qutescheme: guess mimetype instead of 'text/html'
...
Since we're now using qute:// to serve files other than html
(see: pdfjs), it's a good idea to change the mimetype accordingly. This
also prevents warnings in the console, as QWebKit will complain e.g.
when stylesheets are served with 'text/html'.
2015-12-20 19:24:41 +01:00
Daniel Schadt
cab1d3c666
fully encode URL before passing it to pdfjs
2015-12-20 19:24:41 +01:00
Daniel Schadt
2f34bdf9b9
Add link to pylint bug
2015-12-20 19:24:41 +01:00
Daniel Schadt
8e4ca1fc23
pdfjs: use PDFView.open instead of PDFView.load
...
Now we get a nice loading bar at the top of the page.
2015-12-20 19:24:41 +01:00
Daniel Schadt
d7d577b1fa
Fix pep8/pylint
2015-12-20 19:24:41 +01:00
Daniel Schadt
1c13a3cd68
pdfjs: search in ~/.local/share/qutebrowser
2015-12-20 19:24:41 +01:00
Daniel Schadt
623b6fba7e
pdfjs: open system file in binary read
2015-12-20 19:24:41 +01:00
Daniel Schadt
b243acf172
Add a nice error page when pdfjs is not found
2015-12-20 19:24:41 +01:00
Daniel Schadt
9eb72bf08a
pdfjs: use system-wide installation if available
2015-12-20 19:24:41 +01:00
Daniel Schadt
ef85d1af4c
Move pdfjs and use original files
...
* No modified pdfjs installation needed
-> Groundwork for using a system-wide installation
* Script update_3rdparty.py to download and upack the latest pdfjs
release
2015-12-20 19:24:41 +01:00
Daniel Schadt
60b9d7e6c3
Fix lints
2015-12-20 19:24:41 +01:00
Daniel Schadt
0811418746
pdfjs: don't embed data in html
...
We don't need more than one copy of the pdf.
2015-12-20 19:24:41 +01:00
Daniel Schadt
e6548dd9e7
reorder pdfjs generation code
2015-12-20 19:24:41 +01:00
Daniel Schadt
3dfaab6194
pdfjs: actually wait until the file is loaded
...
Otherwise we get incomplete replies and thus no pdf to view.
2015-12-20 19:24:41 +01:00
Daniel Schadt
8b141037ef
Add setting value to enable/disable pdf.js
2015-12-20 19:24:41 +01:00
Daniel Schadt
fcfc09f541
Revoke "LocalContentCanAccess*Urls"
...
Since we embed the content of the PDF directly, we no longer need the
permissions for pdf.js.
2015-12-20 19:24:41 +01:00
Daniel Schadt
ea4d9e884e
pdfjs: Remove debug output file
2015-12-20 19:24:41 +01:00
Daniel Schadt
5e0090d5b8
pdfjs: Use abosolute URLs
...
That allows us to use the "original" page URL when displaying with
pdf.js, which means yanking the URL etc works as intended.
2015-12-20 19:24:41 +01:00
Daniel Schadt
0ee13392e1
Basic pdfjs support
...
Working, but not very well.
Todo:
- remove pdf_file.html debug file
- set URL correctly
2015-12-20 19:24:41 +01:00
Florian Bruhin
fcf94fd527
Remove various deprecated commands/arguments.
2015-12-20 18:38:29 +01:00
Daniel Schadt
5acc982b44
Clean up mhtml doc and use email.message.Message
...
MIMEMultipart is not needed for the attachements, a simple Message is
enough.
Also fix the README markup and the _start_download docstring.
2015-12-03 22:51:46 +01:00
Florian Bruhin
d418f7f9fa
Merge branch 'caret_mode_windows_osx' of https://github.com/artur-shaik/qutebrowser into artur-shaik-caret_mode_windows_osx
2015-12-02 06:22:27 +01:00
Florian Bruhin
eeadeb400c
Style fix.
2015-12-02 06:20:41 +01:00
Panagiotis Ktistakis
de3460da3e
Wrap tabs on :tab-move +/- if tabs->wrap is true.
2015-12-02 03:17:54 +02:00
Florian Bruhin
eff0e4c7cc
pylint: Enable useless-suppression globally.
...
We deactivate it locally where needed, i.e. where we are sure it's some
platform-specific thing.
2015-12-01 23:01:09 +01:00
Florian Bruhin
150a83d8f4
pylint: Remove unneeded supressions.
2015-12-01 22:03:58 +01:00
Florian Bruhin
31265b80b6
pylint: Add WORKAROUND to some comments.
2015-12-01 21:56:38 +01:00
Artur Shaik
c9d47ae92a
More win32
workarounds
2015-12-01 16:53:07 +06:00
Artur Shaik
25545617a0
Try workaround for win32
platform.
2015-12-01 16:19:13 +06:00
Artur Shaik
3a5ce22eac
Remove unnecessary actions in block jumps.
2015-12-01 13:17:28 +06:00
Florian Bruhin
8be04e4f6c
pylint: Disable non-callable in SslError.
...
This wasn't hashable (and thus __hash__ wasn't callable) with Qt < 5.4.
2015-12-01 07:50:08 +01:00
Artur Shaik
d00f999dcf
move_to_end_of_prev_block
without unnecessary command.
2015-11-30 22:27:24 +06:00
Patric Schmitz
98a454a428
log-javascript-console -> [none, debug, info]
2015-11-29 18:37:11 +01:00
Florian Bruhin
736fd7d45e
Use os.path.join for bookmarks/urls path.
...
This should fix the tests on Windows which failed because they matched against
a message containing \.
2015-11-29 00:59:18 +01:00
Florian Bruhin
b79049261e
Delay :yank notification until message was yanked.
...
This should make yankpaste tests more reliable.
2015-11-27 18:32:17 +01:00
Florian Bruhin
23068e9679
Don't log yanked test with :yank-selected.
...
It makes our tests fail (invalid log line) and is probably not needed.
2015-11-26 21:23:11 +01:00
Florian Bruhin
8e7a76280b
Use cmdutils.check_exclusive for :tab-clone.
2015-11-26 20:11:53 +01:00
Florian Bruhin
7f5e07d7cc
bdd: Add some tests for :tab-move.
2015-11-26 18:37:47 +01:00
Florian Bruhin
f56e7b1220
Simplify :tab-move code.
2015-11-26 17:44:34 +01:00
Florian Bruhin
987ee59f58
:tab-move: Fix tab index shown in error message.
2015-11-26 16:37:54 +01:00
Florian Bruhin
5a95cfdc7a
Change CommandError to ValueError for :tab-move.
...
This should never happen.
2015-11-26 16:37:29 +01:00
Daniel Schadt
d082c248a8
Disallow empty values in url-incdec-segments
2015-11-25 19:35:37 +01:00
Florian Bruhin
a6045ab551
Handle invalid select-on-remove case.
2015-11-25 18:47:36 +01:00
Florian Bruhin
73e9fd1118
Handle BOM (\ufeff) for webelem.javascript_escape.
2015-11-25 18:14:52 +01:00
Florian Bruhin
24a71e5c2e
Fix webelem.javascript_escape with U+2028/U+2029.
2015-11-25 10:32:22 +01:00
Florian Bruhin
027a10c04b
bdd: Add some tests for :navigate.
2015-11-24 21:32:45 +01:00
Florian Bruhin
35de87f973
Expand ~ with :dump-page.
2015-11-24 18:04:10 +01:00
Florian Bruhin
b37dac7bfa
Handle errors in :dump-page.
2015-11-24 18:03:39 +01:00
Florian Bruhin
922fdc0526
Fix :fake-key with no focused webview.
2015-11-24 16:28:56 +01:00
Florian Bruhin
607ca0f478
tests: Wait until page is dumped for header check.
...
If we don't do this, it's possible for the test process to delete the temporary
directory before qutebrowser actually writes the file.
2015-11-23 20:12:52 +01:00
Florian Bruhin
31892b437e
Add :debug-dump-page command.
...
This can probably be merged into :download later, when the mess is cleaned up.
2015-11-23 14:35:46 +01:00
Florian Bruhin
16e1a65448
Merge branch 'download-page' of https://github.com/Kingdread/qutebrowser into Kingdread-download-page
2015-11-23 13:16:16 +01:00
Daniel Schadt
89c9b5959e
Don't ask the user twice for a filename
...
Fixes a bug where the user would be asked twice for a filename when
using :download without a dest-argument.
The problem was that we unconditionally overwrote filename, even if one
was given, thus discarding any "filename-finding-process" that we had
and asking the user again.
2015-11-23 12:32:58 +01:00
Florian Bruhin
efa745b53f
Fix indent.
2015-11-23 11:26:01 +01:00
Florian Bruhin
f4cccdf13f
Merge branch 'patch-1' of https://github.com/larryhynes/qutebrowser into larryhynes-patch-1
2015-11-23 11:23:10 +01:00
Florian Bruhin
ea06c64ed4
Fix typos.
2015-11-23 11:17:26 +01:00
larryhynes
706a4e3d39
Change error to warning for text not found on page
2015-11-21 23:47:00 +00:00
Daniel Schadt
c12011c84d
Style fixes
2015-11-21 00:10:49 +01:00
Daniel Schadt
b776aeac84
Use same representation in webview and quteprocess
...
Otherwise the "page loaded" message will not be recognized.
Also use percent-encoding to avoid unicode-related bugs on different
systems.
2015-11-20 19:11:20 +01:00
Florian Bruhin
af875f4b8f
Add a :fake-key command.
...
Closes #556 .
See #551 .
2015-11-20 19:06:06 +01:00
Daniel Schadt
d5bc962046
mhtml: Current index != Current tab_id
2015-11-20 18:15:03 +01:00
Daniel Schadt
b38a3caa4c
Hide dest-old in the documentation of download
2015-11-20 16:34:27 +01:00
Daniel Schadt
3438a45b19
Merge branch 'master' into download-page
2015-11-18 19:27:26 +01:00
Samuel Loury
0298fcc841
Use credentials from netrc when available
2015-11-18 16:44:45 +01:00
Florian Bruhin
726525b26a
bdd: Add some more tests for scrolling with floats.
2015-11-17 06:57:33 +01:00
Florian Bruhin
40e2258ef3
Don't accept floats for :scroll-px.
2015-11-17 06:57:13 +01:00
Florian Bruhin
b68adf1245
Merge _scroll_percent into scroll_perc.
2015-11-16 19:05:05 +01:00
Florian Bruhin
a4d15b550e
Abort :back/:forward at beginning/end of history.
2015-11-16 19:03:07 +01:00
Florian Bruhin
7de206e350
Fix :scroll-perc 0/100 0.
2015-11-15 16:38:56 +01:00
Daniel Schadt
aef26e7779
mhtml: Recognize more files as css
2015-11-12 20:11:36 +01:00
Daniel Schadt
30e2afb59d
mhtml: reduce test flakiness
...
Waiting for "All assets downloaded" may lead to race conditions when
the output file is read before qute wrote it, so the test fails.
2015-11-12 13:17:10 +01:00
Daniel Schadt
c759bf7a2f
Move common filename-ask-code to a function
...
This should reduce code/logic-duplication regarding asking for download
filenames.
2015-11-12 00:12:51 +01:00
Daniel Schadt
18da73227b
Don't shadow built-in "dir"
2015-11-11 21:20:04 +01:00
Daniel Schadt
62b0c4d178
Merge branch 'download-page-tests' of https://github.com/The-Compiler/qutebrowser into download-page
2015-11-11 21:03:36 +01:00
Daniel Schadt
4e3cd8b9e8
Don't prompt if not storage->prompt-download-dir
2015-11-11 20:39:35 +01:00
Daniel Schadt
0f8ec73c55
mhtml: also check dir before starting the download
...
Otherwise the downloads will be useless anyway.
2015-11-11 20:05:42 +01:00
Daniel Schadt
43c3a38938
mhtml: Don't crash if output dir doesn't exist
2015-11-11 20:00:20 +01:00
Florian Bruhin
7cddd52b2d
Merge branch 'download-page' of https://github.com/Kingdread/qutebrowser into Kingdread-download-page
2015-11-10 22:39:07 +01:00
Florian Bruhin
250f0e7410
Merge branch 'test-browser-cache-more' of https://github.com/lamarpavel/qutebrowser into lamarpavel-test-browser-cache-more
2015-11-10 18:57:28 +01:00
Daniel
a5ee39c35e
Fix PEP 8
2015-11-10 09:45:01 +01:00
Daniel
c0535727ef
Only download elements with rel={stylesheet,icon}
...
Websites may set the rel attribute to whatever they want, so we just
care about stylesheets and icons and not the other stuff like wss
links (looking at you, GitHub), RSS-feeds, ...
2015-11-09 22:57:31 +01:00
Florian Bruhin
2fc1612bd4
Fix removing of automatic downloads w/ -1 timeout.
...
With ui -> remove-finished-downloads set to -1, when a download was started
with auto_remove=True (like with :adblock-update), there was a QTimer set up
with timeout -1, which causes this instead of doing something sane:
WARNING: QTimer::singleShot: Timers cannot have negative timeouts
2015-11-09 22:45:51 +01:00
Florian Bruhin
566f94111c
Don't warn if element vanished on mouse release.
...
This happens somewhat reliably on Ubuntu Trusty with the hint test, and more
reliably on Travis.
2015-11-09 22:12:24 +01:00
Florian Bruhin
65648da1ad
Fix #889 during a webpage shutdown.
...
If we're in the middle of closing a WebPage, the webview will still be
registered, but already deleted by Qt - so we get a RuntimeError/TypeError
there.
2015-11-09 18:22:35 +01:00
Florian Bruhin
f3d76b5af6
Fix :follow-hint with an invalid keystring.
2015-11-09 18:20:23 +01:00
Florian Bruhin
35c36725f2
Disallow :follow-hint outside of hint mode.
...
Fixes #1105 .
2015-11-09 18:20:23 +01:00
Daniel
f79722975f
Fix _download_dir reference
2015-11-09 17:14:04 +01:00
Daniel
a1bc020fec
mhtml: Sanitize default filename suggestion
2015-11-09 17:01:08 +01:00
Daniel
4f01382c64
mhtml: Ignore non-http(s) assets
2015-11-09 17:01:08 +01:00
Daniel
71533b3456
mhtml: Add comments describing the hostblock check
2015-11-09 17:01:08 +01:00
Daniel
9694b3b548
downloads: Remove safety check in on_reply_error
...
Probably not needed after the last commit.
2015-11-09 17:01:08 +01:00
Daniel
252dc9a8bd
mhtml: Don't attempt to download hostblocked urls
2015-11-09 17:01:08 +01:00
Daniel
f34161423c
Fix "line too long"
2015-11-09 17:01:08 +01:00
Daniel
a780325a3a
Allow directories to be entered as destination
...
The filename will then default to 'page title.mht'
2015-11-09 17:01:08 +01:00
Daniel
ae8a9b8798
Handle non-ASCII in headers/url better
2015-11-09 17:01:08 +01:00
Daniel
8bb887ddab
Specify window and tab instead of 'current'
2015-11-09 17:01:08 +01:00
Daniel
a1e0ccb787
Fix spelling/style.
2015-11-09 17:01:08 +01:00
Daniel
12a9deb9bc
Fix lints
2015-11-09 17:01:08 +01:00
Daniel
d1f8d29c20
Add --mhtml flag to :download
...
And remove :download-whole command.
2015-11-09 17:01:08 +01:00
Daniel
8cf0af004f
Deprecate :download [url] [dest], add --dest param
...
:download --dest [dest] [url] is the new syntax.
2015-11-09 17:00:46 +01:00
Daniel
b17d74452f
Expand $HOME before checking if file exists
...
Otherwise we might accidentally overwrite a file.
2015-11-09 16:59:16 +01:00
Daniel
919365dfa1
Remove dead code mhtml.py:MHTMLWriter:remove_file
2015-11-09 16:59:16 +01:00
Daniel
1902e4858f
Also catch re.error on cssutils import
...
cssutils 1.0 and earlier are broken on Python 3.5 due to a bad regex
escape.
2015-11-09 16:59:16 +01:00
Daniel
957d68c477
Revert "Remove cssutils from mhtml.py"
...
This reverts commit 22a0f0952704d284846ab2572790d99a85515c57.
2015-11-09 16:59:16 +01:00
Daniel
ce1a99cc7c
Remove cssutils from mhtml.py
2015-11-09 16:59:16 +01:00
Daniel
706b8c6600
Shorten line
2015-11-09 16:59:16 +01:00
Daniel
6601df14a3
mhtml: ask before overwriting dest
2015-11-09 16:59:16 +01:00
Daniel
420c087373
use cssutils
2015-11-09 16:59:16 +01:00
Daniel
749b1c02cc
Style changes for mhtml and test_mhtml
2015-11-09 16:59:16 +01:00
Daniel
b05a0d191d
Fix module path in test_mhtml
...
Also fix docstring for _get_css_imports
2015-11-09 16:59:16 +01:00
Daniel
2eeace1c2c
Move misc.mhtml to browser.mhtml
2015-11-09 16:59:16 +01:00
Daniel
83aee4fad5
Rename on_meta_data_change to on_meta_data_changed
2015-11-09 16:59:16 +01:00
Daniel
8593144fa7
Make _path_suggestion public
2015-11-09 16:59:16 +01:00
Daniel
6b086d159d
Ask for filename when none is given
2015-11-09 16:59:16 +01:00
Daniel
49a32f0041
First round of lint fixes
2015-11-09 16:59:16 +01:00
Daniel
fbe5386e56
Initial version of website downloader
...
Saving websites as MHTML via :download-whole
Still needs some cleanup and a "ask for save path".
2015-11-09 16:59:16 +01:00
Florian Bruhin
b59a56921e
Fix crashes with downloads in a closed tab.
...
When a download was redirected or failed after a tab was closed, there was a
KeyError in the object registry.
Fixes #889 . This is a regression introduced in
976f758da1
/ #731 .
2015-11-09 07:46:22 +01:00
Florian Bruhin
9dfe84c197
Accept longer URL in WebView repr before eliding.
...
This broke bdd tests because … was inserted in the log.
2015-11-09 07:36:10 +01:00
Florian Bruhin
9cfd96fcef
Make :follow-hint take a keystring.
2015-11-09 07:35:56 +01:00
Florian Bruhin
c1c5b0f2b4
Fix prompt for download directory when turned off.
2015-11-09 07:35:03 +01:00
Florian Bruhin
95483f73d8
Add some assertions to DownloadItem.retry.
2015-11-09 07:34:49 +01:00
Florian Bruhin
612174ada0
Add a :download-retry command.
...
Closes #1097 .
2015-11-09 07:17:54 +01:00
Florian Bruhin
da88908815
Fix deprecation warning when clearing downloads.
2015-11-06 07:02:17 +01:00
Florian Bruhin
939e95b344
Add missing decorator for qute:version.
2015-11-04 17:45:12 +01:00
Florian Bruhin
3525659b90
Fix pep8 issues.
2015-11-04 17:41:33 +01:00
Florian Bruhin
4e8cf70c10
Merge branch 'master' of https://github.com/NoctuaNivalis/qutebrowser into NoctuaNivalis-master
2015-11-04 17:19:00 +01:00
Felix Van der Jeugt
8354894838
rename the add_handler function everywhere
2015-11-04 09:49:46 +01:00
Florian Bruhin
6c20190473
Merge branch 'master' of https://github.com/forkbong/qutebrowser into forkbong-master
2015-11-04 07:12:32 +01:00
Panagiotis Ktistakis
782f09488a
Deprecate :download-remove --all.
...
:download-clear should be used instead.
2015-11-04 01:06:39 +02:00
Felix Van der Jeugt
896ac0a7e9
fix the comments on style/typos
2015-11-03 23:15:07 +01:00
Felix Van der Jeugt
84c498b638
use global variable in place of class variable
2015-11-03 23:12:38 +01:00
Felix Van der Jeugt
0233423d9a
using a class method is cleaner
2015-11-03 22:54:59 +01:00
Felix Van der Jeugt
a923572341
replace global constant with class variable and decorators
2015-11-03 22:54:59 +01:00
Florian Bruhin
85608a8b8d
Make :scroll error message deterministic.
2015-11-03 22:36:08 +01:00
Panagiotis Ktistakis
7dadd97f01
Implement :download-clear command.
...
Fixes #1013 .
2015-11-03 20:27:02 +02:00
Florian Bruhin
0fb2778e4b
Merge branch 'master' of https://github.com/skinnay/qutebrowser into skinnay-master
2015-11-02 17:55:40 +01:00
Lamar Pavel
baa3bd18a0
Fix indentation
2015-11-01 20:12:57 +01:00
Lamar Pavel
37d37148b7
Add pragma comment
2015-11-01 19:49:20 +01:00
Florian Bruhin
468b2c4ade
Merge branch 'test-browser-cache' of https://github.com/lamarpavel/qutebrowser into lamarpavel-test-browser-cache
2015-10-30 18:54:24 +01:00
skinnay
6125e51de3
removed whitespace
2015-10-29 14:54:54 -04:00
skinnay
5a34fdfd0c
Changed the functionality of "remove-finished-downloads" setting.
...
Instead of being a boolean value indicating whether or not to instantly remove
downloads when they finish, it's now an integer value representing the
number of milliseconds to wait before removing downloads when they
finish. The default value, -1, means that the downloads will not be
removed when they finished. This is the same behavior as the previous
default value of false.
2015-10-29 13:44:28 -04:00
Florian Bruhin
381d857f2c
Revert "Add workarounds for issues with pylint tip."
...
This reverts commit 1d2683993e
.
This causes a bad-option-value issue with the current pylint.
2015-10-26 22:05:21 +01:00
Florian Bruhin
1d2683993e
Add workarounds for issues with pylint tip.
2015-10-26 21:20:11 +01:00
Jean-Christophe Petkovich
589e8e9d05
Flexible Link Hint Filtering
...
I think it makes more sense to filter for any text within a link rather
than just the text at the beginning. I've been playing around with this
a little and I like it a lot better.
When using numbers as link hints, It would be awesome if the link hint
strings themselves could also be updated based on how many links are
left, but I'm still figuring out how to do this.
What do you think?
2015-10-25 21:17:48 -04:00
Lamar Pavel
da800e3fa7
Don't setMaximumCacheSize if there is no cache
2015-10-21 22:31:46 +02:00
Florian Bruhin
4dd3483aca
Remove unused import.
2015-10-20 22:49:00 +02:00
Florian Bruhin
764914a8b2
Clean up cache.DiskCache.
2015-10-20 22:40:43 +02:00
Florian Bruhin
82dfec6a18
Merge branch 'templatemagic' of https://github.com/neeasade/qutebrowser into neeasade-templatemagic
2015-10-18 18:20:41 +02:00
Florian Bruhin
c8346a11fc
Merge branch 'jinja' of https://github.com/meles5/qutebrowser into meles5-jinja
2015-10-17 19:04:36 +02:00
meles5
ff4c002096
A few changes
2015-10-17 17:33:05 +02:00
Nathan Isom
6391da4f6f
Forgot font changes.
2015-10-16 12:02:57 -05:00
Nathan Isom
2a11adc8ac
initial replace pass.
2015-10-16 10:52:02 -05:00
Florian Bruhin
91ce3ed672
Merge branch 'url-color' of https://github.com/neeasade/qutebrowser into neeasade-url-color
2015-10-15 18:32:47 +02:00
Nathan Isom
4876bdf7ce
style.
2015-10-14 13:34:41 -05:00
Nathan Isom
e78b00cce2
Fix configdata.py typos, use scheme from url.
2015-10-14 13:22:28 -05:00
Nathan Isom
d7d4c232d0
Initial shot at issue #691
2015-10-14 13:10:24 -05:00
Florian Bruhin
4f2dbb3a72
Don't show icons when cloning tabs if turned off.
...
Fixes #1007 .
2015-10-10 12:48:45 +02:00
Florian Bruhin
749d7bfc3c
Add backticks to docs.
2015-10-08 10:47:36 +02:00
Peter Michely
bfccb91e42
Changed code and docs according to comments
2015-10-08 10:13:47 +02:00
Florian Bruhin
b6f3b1951e
Remove more dead code.
2015-10-04 22:21:49 +02:00
Florian Bruhin
005753e83e
Remove some dead code.
...
See #973 .
2015-10-04 20:43:29 +02:00
Florian Bruhin
7ff881c3e3
Merge branch 'incdec-setting' of https://github.com/Kingdread/qutebrowser into Kingdread-incdec-setting
2015-10-04 17:04:40 +02:00
Florian Bruhin
d229e90724
Fix some splelling mistakes.
2015-10-04 15:41:42 +02:00
Daniel
4881d81444
Add new configtype: FlagList
...
This class contains validation code shared by ConfirmQuit and
URLSegmentList, that is it checks for duplicate values and compares
each value to valid_values.
2015-10-01 00:40:21 +02:00
Daniel
1bdb012b2c
Add a config option for navigate_incdec
...
Also known as Ctrl-A/Ctrl-X. You can now specify which parts of the URL
should be searched for numbers.
The setting is general->url-incdec-segments and it's a set with valid
values of 'host', 'path', 'query' and 'anchor'.
2015-09-30 19:18:00 +02:00
Florian Bruhin
11961db72c
Add maxlen argument to ErrorNetworkReply.readData.
...
This was missing before, causing a (hidden) exception with Python < 3.5, and
this with 3.5:
TypeError: readData() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
SystemError: PyEval_EvalFrameEx returned a result with an error set
Fixes #969 .
2015-09-29 08:41:20 +02:00
meles5
8bcc0e4b92
filescheme.py & dirbrowser.html updated
2015-09-25 14:49:03 +02:00
Florian Bruhin
841e8fbbd1
Save search parameters in tabbed_browser.
2015-09-18 07:01:51 +02:00
Florian Bruhin
f62bf099a0
Also re-highlight text when restarting search.
2015-09-18 06:58:05 +02:00
Florian Bruhin
72cddb290b
Cleanups
2015-09-18 06:55:17 +02:00
Martin Tournoij
a80c61e78a
Use a single search term per-window
...
Previously, every tab had its own search term. This sets single search term per
window. using `/hello`, `gt`, and `n` will search for `hello` in the 2nd tab.
This fixes issue #940
2015-09-18 02:18:54 +02:00
Florian Bruhin
ee2b9adce4
Move checking if an URL is blocked to adblock.py.
2015-09-17 06:46:27 +02:00
Florian Bruhin
a589ddab4a
Merge branch 'whitelist-hosts' of https://github.com/Kingdread/qutebrowser into Kingdread-whitelist-hosts
2015-09-17 06:37:44 +02:00
Florian Bruhin
d5baed5e83
Merge branch 'cookies_tests' of https://github.com/acogneau/qutebrowser into acogneau-cookies_tests
2015-09-16 22:58:28 +02:00
Florian Bruhin
7eca4acb6a
Ignore first QWheelEvent for webview.
...
Hopefully fixes #395 .
2015-09-16 20:07:18 +02:00
Daniel
dd679c6c14
Fix is_whitelisted_domain docstring
2015-09-16 17:16:35 +02:00
Daniel
fc806525a2
Move whitelist host code to networkmanager
...
This means no :adblock-update after modifying the whitelist.
2015-09-16 17:10:03 +02:00
Daniel
523e071a97
Stylistic changes to is_whitelisted_domain
2015-09-16 17:04:19 +02:00
Daniel
ccdb59cce1
Add adblock host whitelisting
...
The config option "content host-blocking-whitelist" may contain comma
separated domains that are exempt from host blocking.
The listed domains may contain the wildcards "*" and "?" to match many
and one character, respectively.
You need to run :adblock-update after modifying the list.
2015-09-16 16:31:17 +02:00
Alexander Cogneau
d36c701b07
Fixed comments
2015-09-04 11:44:59 +02:00
Alexander Cogneau
96e3a0b1f1
first cookie tests
2015-09-03 17:24:01 +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
4891fe9457
Always expand ~ when starting scripts.
2015-08-27 20:30:41 +02:00
Florian Bruhin
6d8854bc07
Simplify usage of tabhistory.TabHistoryItem.
2015-08-23 18:16:19 +02:00
Florian Bruhin
d3d999e041
Show a confirmation when adding bookmarks.
2015-08-18 19:03:46 +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
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
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
44f8cf4b1a
Move :tab-focus documentation.
2015-08-11 22:01:18 +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
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
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
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
c4c3a83ac0
rename url_incdec_number to incdec_number
2015-08-08 00:57:16 +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
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
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
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
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
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
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
2f11b41ae6
Merge bookmarks and quickmarks into urlmarks.
2015-07-26 16:37:10 +02:00
Florian Bruhin
b52a41ac6f
Merge branch 'master' of https://github.com/antoyo/qutebrowser into antoyo-master
...
Conflicts:
.gitignore
2015-07-26 15:08:58 +02:00
Florian Bruhin
b670c45381
Fix typo.
2015-07-20 11:23:43 +02:00
Florian Bruhin
0972087e34
Add a note about #730 to :inspect docs.
...
Fixes #730 .
2015-07-16 20:54:10 +02:00
Florian Bruhin
704c5ff919
Make :yank-selected work in all modes.
2015-07-16 13:57:53 +02:00
Florian Bruhin
63ff39ad65
Don't use 0 as window ID for early messages.
...
The issue here was that only message calls with 'current' as window get cached
if the window is unavailable. We used 0 instead.
Fixes #815 .
See #812 .
2015-07-14 18:36:12 +02:00
Antoni Boucher
5dbaea7a83
Fixed empty title.
2015-07-11 20:28:31 -04:00
Antoni Boucher
1e354a797e
Removed useless checks.
2015-07-11 19:56:51 -04:00
Antoni Boucher
5e8129788a
Removed try/except.
2015-07-11 19:48:46 -04:00
Antoni Boucher
96a2178a25
Renamed bookmark_del to delete in bookmark manager.
2015-07-11 19:23:21 -04:00
Antoni Boucher
4bc2f63608
Renamed bookmark_add to add in bookmark manager.
2015-07-11 19:18:45 -04:00
Antoni Boucher
fe829699be
Merge remote-tracking branch 'upstream/master'
2015-07-11 17:40:43 -04:00
Florian Bruhin
47d5262cd9
Abort scrolling wen reaching min/max position.
...
Fixes #801 .
2015-07-06 15:13:18 +02:00
Florian Bruhin
4cef4012e5
Catch OSError when loading qute:help.
...
Fixes #763 .
2015-07-02 22:08:41 +02:00
Florian Bruhin
4bddcd4c1a
Remove (y/N) suffix from download questions.
2015-07-02 20:57:23 +02:00
Florian Bruhin
dc29ad430e
Change how lines are split.
2015-07-02 20:51:51 +02:00
Florian Bruhin
d44f14063a
Merge branch 'save-fifo' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-save-fifo
2015-07-02 19:16:04 +02:00
Martin Tournoij
2c5898b9f7
Rename variable to fix pylint warning:
...
https://travis-ci.org/The-Compiler/qutebrowser/jobs/68949925
************* Module qutebrowser.browser.downloads
W:299,36: Redefining name 'message' from outer scope (line 39) (redefined-outer-name)
2015-06-30 13:22:20 +02:00
Martin Tournoij
c7cd51a7d5
"Fix" silly pep8 warnings
2015-06-30 12:01:05 +02:00
Florian Bruhin
7b8490b6c0
Fix 'an user' spelling.
2015-06-29 17:49:19 +02:00
Martin Tournoij
d114e64b05
Ask question instead of aborting
2015-06-27 22:28:06 +02:00
Martin Tournoij
26664ba644
Merge branch 'master' into save-fifo
2015-06-27 22:23:47 +02:00
Martin Tournoij
a346644c71
Changed:
...
- same_domain: If the tld is unknown, only return True if the hostnames are the same
- Fix when starting without an open page
2015-06-27 21:15:54 +02:00
Martin Tournoij
f806eefba6
Merge branch 'master' into referer-header
2015-06-27 20:43:54 +02:00
Florian Bruhin
4652843b38
Move command-related zoom logic out of WebView.
...
After f8d66f3fe1
loading a session showed the
zoom percentage of all tabs.
This logic doesn't really belong into webview.py anyways, so it gets moved to
browser/commands.py here.
2015-06-24 23:06:55 +02:00
Martin Tournoij
f8d66f3fe1
Use zoom_perc instead of setZoomFactor to set zoom.
...
When using setZoomFactor, the NeighborList's fuzzyval doesn't get updated,
which means the next -/+ press would do something weird.
2015-06-24 18:16:59 +02:00
Florian Bruhin
e459ac52cc
Use existing selection when entering caret mode.
2015-06-20 13:09:00 +02:00
Florian Bruhin
5cf1dce89e
Simplify condition and add comment.
2015-06-20 13:07:51 +02:00
Artur Shaik
94d394001e
Don't position caret if there is selection on page
2015-06-20 12:47:46 +02:00
Florian Bruhin
c64d9520ff
Fix lint.
...
Thanks to @Carpetsmoker for spotting this in #705 .
2015-06-18 08:10:14 +02:00
Florian Bruhin
59cdbd780c
Fix {url} substitution with :spawn.
...
See #759 .
This is a regression introduced in 6dbdea0ee3
.
2015-06-18 07:01:30 +02:00
Florian Bruhin
6dbdea0ee3
Set maxsplit=0 for :spawn and split manually.
...
Fixes #759 .
2015-06-17 07:57:38 +02:00
Florian Bruhin
0119cf510f
Fix loading of _temp_history.
2015-06-16 07:16:02 +02:00
Florian Bruhin
a545b919f7
Do history loading after qutebrowser has started.
2015-06-16 07:06:56 +02:00
Florian Bruhin
f17131f6c2
Change Qt links to point to qt.io.
2015-06-12 16:59:33 +02:00
Florian Bruhin
efcea65596
Add --quiet argument to :jseval.
2015-06-12 11:24:04 +02:00
Florian Bruhin
8ecc3a3bb0
Fix lint.
2015-06-12 11:22:37 +02:00
Florian Bruhin
ea1921defd
Merge branch 'jseval' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-jseval
2015-06-12 11:21:10 +02:00
Florian Bruhin
d3b727d0c7
Fix lint.
2015-06-11 20:32:27 +02:00
Florian Bruhin
5828bbafe9
Add -v (not -q) to :spawn and make it work with -u.
2015-06-11 20:30:37 +02:00
Florian Bruhin
84dacc9bc8
Remove double output for :spawn.
2015-06-11 20:30:37 +02:00
Florian Bruhin
163bc2e12e
Add GUIProcess.
...
This aims to unify the code which spawns a process and then shows statusbar
notifications when it exited, etc.
2015-06-11 20:30:03 +02:00
Florian Bruhin
1a9bc64776
Display an error on non-zero :spawn exit.
2015-06-11 20:28:05 +02:00
Florian Bruhin
231f1d90ce
Add a -d/--detach argument to :spawn.
2015-06-11 20:28:05 +02:00
Florian Bruhin
17bb9fc21c
Use QProcess instead of subprocess.
...
Closes #646 .
Fixes #688 .
2015-06-11 20:28:04 +02:00
Florian Bruhin
ab27612139
Merge branch 'more-color-settings' of https://github.com/ProtractorNinja/qutebrowser into ProtractorNinja-more-color-settings
2015-06-10 20:05:23 +02:00
Martin Tournoij
9df5a89037
Don't crash when trying to save to a FIFO or other special file
...
When giving the path to a FIFO or other special file qutebrowser would
completely hang, and has to be killed.
Tested:
- Asks for overwrite: file, symlink to file
- Saves in dir: dir, symlink to dir
- Aborts: block dev, char dev, fifo, socket, and a symlink to all of these
2015-06-08 22:42:06 +02:00
Florian Bruhin
b6349437f7
Fix broken check for changing js on qute:settings.
...
See #727 .
2015-06-08 20:29:55 +02:00
Antoni Boucher
c2eabb13b0
Fixed style.
2015-06-07 20:25:04 -04:00
Antoni Boucher
31eed6c9a6
Fixed to avoid having duplicate bookmarks.
2015-06-07 20:16:45 -04:00
Antoni Boucher
d93732a6b3
Fixed to use 'bookmarks/urls' file instead of bookmarks.
2015-06-07 20:04:42 -04:00
Antoni Boucher
c4fc5c0c43
Fixed to use the title "(null)" when the page does not have any title.
2015-06-07 19:51:46 -04:00
Florian Bruhin
1e5e6a63a5
Batch download redrawings/updates.
2015-06-07 22:22:23 +02:00
Florian Bruhin
90b3927906
Merge branch 'downloads-cpu' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-downloads-cpu
2015-06-07 21:51:18 +02:00
Florian Bruhin
2ff6dbd482
Remove unused import.
2015-06-07 21:44:45 +02:00
Florian Bruhin
f85ca19cef
Use <noscript> tag for qute:settings without JS.
...
There was already a noscript tag, this just removes the special check and makes
it a bit more obvious.
See #727 .
2015-06-07 21:38:44 +02:00
Antoni Boucher
cf4b89efe3
Merge remote-tracking branch 'upstream/master'
2015-06-07 14:38:17 -04:00
Martin Tournoij
2fa6c952c2
Use less CPU when downloading files
...
When downloading a bunch (7 or 8) of files I noticed qutebrowser was using a lot
of CPU (>60%).
I did some looking, and in the `downloadProgress` callback qutebrower emits the
updated signal which causes everything to be updated. We don't really need this,
since _update_speed() calls it every 500ms anyway.
I tested by downloading 3 copies of the 1GB file [on this
page]( http://www.thinkbroadband.com/download.html ) qutebrowser consistently
pulls about 25% CPU on my system.
When removing this call, the system pulls about 17% CPU. Not a great amount, but
still significant enough to warrant a pull request ;-)
Some other notes:
- wget uses about 1.5%-2% for each process when downloading.
- When not doing any UI updates & speed calculations qutebrowser uses about 15%.
- Doing some quick profiling and strategic commenting seems to indicate there
isn't any other low hanging fruit to be improved on here.
2015-06-07 17:15:04 +02:00
Florian Bruhin
a82b0d007d
Enforce a Qt with SSL support.
2015-06-07 10:47:28 +02:00
Florian Bruhin
def41e70bf
Fix some spelling mistakes.
2015-06-07 01:24:02 +02:00
Martin Tournoij
b0880df695
Execute in the current tab, and not the first one
2015-06-05 23:29:38 +02:00
Martin Tournoij
94178c558a
Well, getting the error doesn't work...
2015-06-05 20:09:19 +02:00
Martin Tournoij
463e85ff5d
Add referer-header setting, #712
2015-06-05 18:00:21 +02:00
Florian Bruhin
728f06e797
Close context menu if another mode was entered.
...
Fixes #735 .
2015-06-05 11:15:22 +02:00
Martin Tournoij
d60d4d756c
Also yank port number
2015-06-04 13:20:39 +02:00
Martin Tournoij
0132bea42b
Add --domain to yank to yank only the domain
...
... As I want to copy only the domain fairly frequently.
I also changed the message in the statusline to show the actual text being
copied, which I find helpful. But if you disagree, then just undo it (it's not
that important or anything).
2015-06-04 12:20:43 +02:00
Martin Tournoij
78e159cb27
Add referer-header settng, #712
2015-06-04 01:26:00 +02:00
Martin Tournoij
85eea17b18
Try to get the error ... not sure about this ...
...
source is undefined when you type stuff in the console, I *think* this is the
only scenario? But maybe not?
<script>
setInterval(function() {
if (window.__qute_jseval__) {
throw new Error('jseval hack failed. Sorry :-( ' + window.__qute_jseval__);
}
}, 1);
</script>
2015-06-03 22:31:15 +02:00
Florian Bruhin
e780efb3d9
Handle javascript in qute:settings more gracefully.
...
Fixes #727 .
2015-06-03 15:03:04 +02:00
Austin Anderson
4d141f489f
Added pylint workaround directive to quash rebellion.
2015-06-03 08:42:13 -04:00
Florian Bruhin
36803cba06
Switch from flake8 to pytest-{mccabe,flakes,pep8}.
2015-06-02 20:51:06 +02:00
Antoni Boucher
9582162927
Fixed bookmarks command names.
2015-06-01 17:52:23 -04:00
Florian Bruhin
1bf036d1ba
Add setting for the webpage bg color to use.
...
Fixes #719 .
2015-06-01 22:27:15 +02:00
Antoni Boucher
1698c60124
Merge remote-tracking branch 'upstream/master'
2015-05-31 15:59:46 -04:00
Florian Bruhin
e7619477cd
Rename _frame argument to frame.
...
_foo is used to denote unused arguments, so renaming this as it's now used.
2015-05-31 21:40:19 +02:00
Florian Bruhin
018d7a87be
Merge branch 'modal-js-dialogs' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-modal-js-dialogs
2015-05-31 21:39:47 +02:00
Martin Tournoij
4204a8de9a
Add ui.modal-js-dialog to restore the default JS dialogs
2015-05-31 21:32:16 +02:00
Florian Bruhin
4c8b1be19c
Merge branch 'issue-401' of https://github.com/antoyo/qutebrowser into antoyo-issue-401
2015-05-31 19:46:17 +02:00
Antoni Boucher
3d0721afea
Fixed error messages.
2015-05-31 12:56:08 -04:00
Antoni Boucher
27cbe618f0
Added hasSelection check before trying to click on a selected link.
2015-05-31 12:53:14 -04:00
Antoni Boucher
c0b6aef774
Fixed command name.
2015-05-31 12:50:28 -04:00
Antoni Boucher
d0eda3336c
Added a page variable.
2015-05-31 12:18:27 -04:00
Antoni Boucher
1cd64481de
Fixed for relative url.
2015-05-31 12:13:37 -04:00
Antoni Boucher
87e9888167
Added exception handling for href attribute.
2015-05-31 12:07:08 -04:00
Antoni Boucher
c5c145320c
Fixed exception handling in select_follow command.
2015-05-31 12:02:15 -04:00
Antoni Boucher
4ff9d585ea
Fixed to use qualified import.
2015-05-31 11:56:27 -04:00
Florian Bruhin
54c1cd7c05
Add link to issue.
2015-05-31 15:11:37 +02:00
Florian Bruhin
6b550defae
scroll-page: Add custom metavar for navigate-*.
2015-05-31 15:10:35 +02:00
Florian Bruhin
11b258568d
Improve docstring.
2015-05-31 15:02:09 +02:00
Florian Bruhin
5b3ffa2419
Merge branch 'scroll_page_navigate' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-scroll_page_navigate
2015-05-31 14:59:22 +02:00
Antoni Boucher
b1f8a70c02
Added try/except for parse error.
2015-05-30 18:03:39 -04:00
Florian Bruhin
3879b8301f
Remove unneeded int().
...
See #706 .
2015-05-30 22:51:00 +02:00
Martin Tournoij
4dc54f881c
Give a better error when wrapping on search
...
Previously, it just said "Text not found" when you hit the bottom.
2015-05-30 22:07:32 +02:00
Austin Anderson
b59dc8e89b
Merge branch 'master' into more-color-settings
2015-05-30 15:56:11 -04:00
Austin Anderson
7b5d2ace24
Added assertion for parameterized download color picker.
2015-05-30 15:21:34 -04:00
Antoni Boucher
989e3b7291
Added a fallback for when JavaScript is disabled.
2015-05-30 13:56:36 -04:00
Antoni Boucher
a56a14fb70
Added the possibility to open a selected link in a new tab.
2015-05-30 13:15:53 -04:00
Antoni Boucher
6ca541d359
Fixed issue #401 .
2015-05-30 10:37:25 -04:00
Martin Tournoij
70956aaeca
oops
2015-05-29 23:57:57 +02:00
Martin Tournoij
9c99c22f1b
Fix issue #701
2015-05-29 23:49:48 +02:00
Martin Tournoij
8c80f99a32
Improve navigate option to scroll_page()
2015-05-29 21:18:44 +02:00
Martin Tournoij
c7dcaff025
Add navigate option to scroll_page()
...
So you can scroll down & navigate when you're at the bottom.
To bind this to space:
scroll-page 0 1 next
<Space>
Not sure if it's a good idea to bind this by default? May surprise some
people...
See #696
2015-05-29 18:35:15 +02:00
Austin Anderson
a8d2dbfdfb
Added downloads bar fg customization, and refactored the download's color-picking.
2015-05-25 20:47:16 -04:00
Florian Bruhin
a345b02729
Fix exception when downloading links without name.
...
We also set a default name to prevent "is a directory" errors.
This is a regression introduced in 8f33fcfc52cf598d0aa11a347992c87010d3e37a.
Fixes #682 .
2015-05-25 11:28:50 +02:00
Antoni Boucher
ece32e930c
Added bookmarks command.
2015-05-24 19:18:40 -04:00
Antoni Boucher
aaf35536a7
Removed unused commands and renamed bookmark-save command.
2015-05-23 16:02:02 -04:00
Antoni Boucher
2c0c2e220e
Fixed style issue.
2015-05-21 19:38:30 -04:00
Antoni Boucher
28caf45707
First version of bookmarks.
2015-05-21 18:17:22 -04:00
Florian Bruhin
269676318b
urlutils: Raise exception on errors in host_tuple.
2015-05-20 13:36:40 +02:00
Florian Bruhin
03e59051dc
Remove count for move-to-end-of-line.
2015-05-18 22:32:17 +02:00
Florian Bruhin
91ad91cc7b
Spelling fixes.
2015-05-18 22:27:44 +02:00
Florian Bruhin
8941b5dc96
Merge branch 'visual'
2015-05-18 21:43:25 +02:00
Florian Bruhin
8eb483d66b
Set Qt.ItemNeverHasChildren for leaf model items.
...
This allows Qt to do some optimizations.
2015-05-18 21:35:14 +02:00
Florian Bruhin
dd292b0781
Don't depend on objreg for CommandDispatcher.
...
See #640 .
2015-05-18 21:34:00 +02:00
Florian Bruhin
b60f673468
Fix @pyqtSlot signature for on_config_changed.
2015-05-17 14:14:23 +02:00
Florian Bruhin
7fc99f3d80
adblock: Don't show message with --basedir given.
2015-05-17 01:09:33 +02:00
Florian Bruhin
c762340a0c
Add --datadir/--cachedir arguments. Closes #136 .
2015-05-16 22:12:27 +02:00
Florian Bruhin
9b372de4a9
Use fake-key scrolling for :scroll-perc 0/100.
2015-05-16 15:51:41 +02:00
Florian Bruhin
e3bfe73442
Fix :scroll-page.
2015-05-15 21:32:42 +02:00
Florian Bruhin
f49dba6e38
Use fake key events for scrolling.
...
Closes #669 .
Fixes #218 .
See #246 , #534 .
2015-05-15 19:02:33 +02:00
Florian Bruhin
17fc6622bb
Strip NUL bytes when loading history.
...
This is a workaround so people can start qutebrowser again, but the real bug
should be found and fixed...
See #670 .
2015-05-13 23:46:22 +02:00
Florian Bruhin
222627b08d
Clean up caret initialisation.
2015-05-13 22:25:21 +02:00
Florian Bruhin
a728704cce
toggle-selection cleanup
2015-05-13 21:52:42 +02:00
Florian Bruhin
f59a147589
Leave mode when yanking by default.
...
See #653 .
2015-05-13 07:58:33 +02:00
Florian Bruhin
88fc186402
Add tmux-like Enter binding.
...
See #653 .
2015-05-13 07:29:59 +02:00
Florian Bruhin
ce1b82616d
Fix spelling.
2015-05-13 07:29:59 +02:00
Florian Bruhin
54ae6a63ee
Fix lint.
2015-05-12 17:58:53 +02:00
Florian Bruhin
418934644b
Improve docstrings.
2015-05-11 22:29:44 +02:00
Florian Bruhin
a36c0fcd4c
Fix lint.
2015-05-11 20:32:27 +02:00
Florian Bruhin
6f620a6a9e
Handle title correctly for pages without title.
...
Fixes #667 .
2015-05-11 19:11:49 +02:00
Artur Shaik
57cad14714
Move JS snippet in external js file.
2015-05-07 12:41:02 +06:00
Artur Shaik
d936be450b
Add jumps through text blocks in caret mode.
2015-05-07 12:19:35 +06:00
Artur Shaik
178d0dfa58
Add count for actions. Zero key treat as command.
2015-05-07 11:51:10 +06:00
Florian Bruhin
564a589bc6
Fix indent.
2015-05-06 23:36:01 +02:00
Florian Bruhin
9ceb43ec44
Make F
(:hint tab) honour background-tabs.
...
Fixes #621 .
2015-05-06 23:25:42 +02:00
Florian Bruhin
98596d439f
Emit ClickTarget from HintManager.start_hinting.
...
This is much clearer than transmitting a string which must match the
ClickTarget enum.
2015-05-06 23:17:23 +02:00
Florian Bruhin
2f0b976bca
Leave and re-enter hint mode when double-hinting.
...
See #613 .
2015-05-06 22:38:08 +02:00
Florian Bruhin
9a5839650c
Allow 'yes' value for geolocation/notifications.
...
Fixes #655 .
2015-05-06 22:21:11 +02:00
Florian Bruhin
024549e3b0
Use a namedtuple for authentication prompts.
2015-05-06 11:05:17 +02:00
Florian Bruhin
842c69dfdd
Cache proxy authentication credentials.
2015-05-06 10:46:42 +02:00
Artur Shaik
489c913e58
Implement caret selection and positioning
...
Added option to webview for selection enabled caret mode.
In status bar checking value of this option to identificate about it.
Added bindings: <Space> for toggle selection mode, <Ctrl+Space> drop
selection and keep selection mode enabled.
In webview added javascript snippet to position caret at top of the
viewport after caret enabling. This code mostly was taken from cVim sources.
2015-05-05 12:21:48 +06:00
Florian Bruhin
32562c6878
Fix lint.
2015-04-28 16:50:42 +02:00
Florian Bruhin
9e8c781871
Use clearFocus/setFocus as workaround.
2015-04-28 16:12:23 +02:00
Florian Bruhin
640f758605
Merge branch 'master' into visual
...
Conflicts:
qutebrowser/browser/commands.py
2015-04-28 15:54:26 +02:00
Florian Bruhin
e1f2259e98
Fix typo.
2015-04-22 07:46:01 +02:00
Florian Bruhin
c21ae0b651
Add a :debug-webaction command.
2015-04-22 07:13:56 +02:00
Florian Bruhin
6c8e073dc8
Merge branch 'caret_visual_mode' of https://github.com/artur-shaik/qutebrowser into visual
...
Conflicts:
qutebrowser/browser/commands.py
qutebrowser/browser/webview.py
qutebrowser/config/configdata.py
2015-04-21 21:29:00 +02:00
Florian Bruhin
9ee74253e4
Remove name annotation for cmdutils.register.
...
See #637 .
2015-04-20 22:25:27 +02:00
Florian Bruhin
b805f903c9
Fix lint.
2015-04-20 20:50:51 +02:00
Florian Bruhin
f7cf33b596
Remember web inspector geometry in state file.
2015-04-20 20:40:03 +02:00
Florian Bruhin
7439586334
Move special params to cmdutils.register decorator
...
See #637 .
2015-04-20 19:33:05 +02:00
Florian Bruhin
8f1b074595
Show commandline being executed with :spawn.
...
Closes #616 .
2015-04-20 18:44:58 +02:00
Florian Bruhin
f93eef848c
Store QUTE_TEXT/QUTE_HTML in files for userscripts.
...
Fixes #644 .
2015-04-20 07:50:47 +02:00
Florian Bruhin
38d34e1dea
Fix deprecation message for :cancel-download.
2015-04-17 14:33:45 +02:00
Florian Bruhin
4436941d97
Clean up unused imports.
2015-04-17 08:00:56 +02:00
Florian Bruhin
006b7716c8
Move WebPage init out from QWebView's __init__.
2015-04-17 08:00:15 +02:00
Florian Bruhin
ffd1e673b3
Get rid of SearchRunner.
...
A SearchRunner was per-mainwindow, which caused bugs when searching in a tab
and in another before clearing the search.
Instead we now split it between WebView/CommandDispatcher.
Fixes #638 .
2015-04-17 07:51:21 +02:00
Florian Bruhin
71ffe8f656
Use config.get() for qute:settings.
...
Fixes #628 .
2015-04-16 22:20:38 +02:00
Florian Bruhin
f313bcaf13
Fix for cache never being saved.
...
This is a regression introduced in 76c5c8bf8e
.
See #43 .
2015-04-15 06:54:55 +02:00
Florian Bruhin
9381aac501
Merge {Pastebin,PyPIVersion}Client into HTTPClient.
2015-04-13 20:42:28 +02:00
Artur Shaik
e603d9a2d0
Slight modify of autofocus caret
...
Make mouseclick event point slightly down.
Add commented tries of more reliable methods of caret focusing.
2015-04-13 19:55:45 +06:00
Florian Bruhin
e294e325f0
Ignore invalid history entries on start.
2015-04-10 06:40:48 +02:00
Artur Shaik
695712e50c
Basic caret and visual modes implementation
...
Allow user switch in caret mode for browsing with caret, and visual mode
for select and yank text with keyboard.
Default keybindings is c or v for caret mode, and again v for visual mode. All
basic movements provided by WebAction enum implemened with vim-like
bindings. Yanking with y and Y for selection and clipboard respectively.
There is bug/feature in WebKit that after caret enabled, caret doesn't
show until mouse click (or sometimes Tab helps). So I add some workaround
for that with mouse event. I think should be better aproach.
Signed-off-by: Artur Shaik <ashaihullin@gmail.com>
2015-04-09 22:55:42 +06:00
Florian Bruhin
7160a89cb9
Fix NameError in hints.py.
2015-04-09 17:47:09 +02:00
Florian Bruhin
2d8df76609
Add $QUTE_HTML and $QUTE_TEXT for userscripts.
2015-04-09 17:45:16 +02:00
Florian Bruhin
2876ba5cfa
Pass a parent to global QObjects.
2015-04-06 00:10:37 +02:00
Florian Bruhin
9f9996bc66
Refuse to add empty URLs to history.
2015-04-02 09:09:17 +02:00
Florian Bruhin
37ab5296a7
Adjust URL completion when quickmarks are changed.
...
Fixes #590 .
2015-04-02 07:40:00 +02:00
Florian Bruhin
8ebac8d38c
Various spelling fixes.
2015-03-31 21:11:47 +02:00
Florian Bruhin
2f629befc3
Add an option to disable host blocking.
2015-03-30 18:33:10 +02:00
Florian Bruhin
70ccdd86b2
Add zooming with Ctrl-mousewheel.
...
Closes #51 .
2015-03-30 15:26:07 +02:00
Florian Bruhin
a38c3ae1e1
Add a :tab-detach command.
...
See #62 .
2015-03-30 12:14:15 +02:00
Florian Bruhin
5233e7fac8
Fix UnboundLocalError on invalid quickmarks.
...
This also improves FuzzyUrlError messages.
2015-03-29 21:20:42 +02:00
Florian Bruhin
b2427701fa
Handle element webFrame being None when hinting.
2015-03-29 19:52:30 +02:00
Florian Bruhin
d062ff5138
Fix starting with -c '' again.
...
Before c5a2039da4
(standarddir refactoring), we
only checked the commandline arguments for the config file, but not when
getting the quickmarks location (as the 'args' argument was None). This means
quickmarks were saved to the default config dir even with -c ''.
With that commit, this was "fixed" accidentally, but quickmarks couldn't handle
the filename being None.
2015-03-27 12:29:12 +01:00
Florian Bruhin
82322beb03
Fix pep257 issues.
2015-03-26 07:08:54 +01:00
Florian Bruhin
ec487dd6b1
Add some logging for javascript messages.
2015-03-24 11:35:58 +01:00
Florian Bruhin
21d2bb2291
Simplify some unneeded lambdas.
2015-03-23 07:04:50 +01:00
Florian Bruhin
8811947f50
Re-enable some pylint checks.
2015-03-23 07:04:41 +01:00
Florian Bruhin
157c25bb13
Queue messages for 'current' window if unfocused.
...
Fixes #512 .
2015-03-22 22:39:56 +01:00
Florian Bruhin
565303ebcd
Fix hinting when page has no URL set yet.
2015-03-20 08:35:33 +01:00
Florian Bruhin
adb11360db
Disallow tab=None with objreg.get(scope='tab').
...
This would've made it a lot easier to detect #563 .
2015-03-19 22:28:24 +01:00
Florian Bruhin
218822d6e8
Clear rejected SSL questions when reloading page.
...
Fixes #565 .
2015-03-19 21:21:40 +01:00
Florian Bruhin
d6732c64a3
Revert "Handle NavigationTypeOther acceptNavigationRequest"
...
This reverts commit 4b4bb3af88
.
Fixes #567 . #488 is still okay because of
f3b55d68db05247b5c3f5dc576dadb0aa1848ca3.
2015-03-19 19:06:58 +01:00
Florian Bruhin
94bc10405a
Merge branch 'histcomplete'
2015-03-17 06:16:26 +01:00
Florian Bruhin
1aaa538b45
Ignore empty lines in history.
2015-03-16 10:45:50 +01:00
Florian Bruhin
806742abd3
Move new entries to the end when loading history.
...
Before, if an URL was present early in the history and then again later, we
didn't move it to the end of the OrderedDict. This means it won't be loaded in
the completion.
2015-03-16 07:54:39 +01:00
Florian Bruhin
553d8cf986
Also save the QUrl in a HistoryEntry.
...
We also use QUrl::toDisplayString for the completion so things like spaces or
umlauts are decoded properly.
2015-03-16 07:03:30 +01:00
Florian Bruhin
d266665955
Fix adding of URLs to history completion.
...
Before, the item_added signal was emitted *after* an item was added, which
means the on_history_item_added slot always assumed the item already is in the
history.
2015-03-15 21:16:45 +01:00
Florian Bruhin
901db0911e
Add __len__ to WebHistory.
2015-03-13 19:45:43 +01:00
Florian Bruhin
994546f04d
Use an OrderedDict for WebHistory.
...
We need the URLs in the correct order to get the newest items anyways.
2015-03-13 19:44:15 +01:00
Florian Bruhin
7a28b6c821
Fix lint.
2015-03-12 14:55:54 +01:00
Florian Bruhin
299dbfa56a
history: Remove unneeded _old_hit and _old_miss.
...
The need for those were removed in #548 .
2015-03-12 14:46:49 +01:00
Jimmy
61e732f217
history: simplify
2015-03-12 21:35:56 +13:00
Jimmy
1efe18ecc6
Prevent duplicates in history completion.
...
Two things here. One is to use `WebHistory._new_history` only as a to-save
queue, so we now add entries to `_old_urls` when they are first created and
can now no longer iterate of `_new_history` in `__iter__()`.
Second is to stop blindly tacking new history entries on the end of the
history completion model. It does involve iterating over the model to find the
existing entry but we only do that if we know the duplicate is there, which is
fast to check.
This also ads another point of mutation to the history completion model which
may prove problematic if it leads to more segfaults.
2015-03-12 20:15:03 +13:00
Jimmy
734268187c
Clean up incomprehensible comment.
2015-03-12 20:12:59 +13:00
Florian Bruhin
9ee19be70d
Convert the atime to float in HistoryEntry.
2015-03-12 08:07:40 +01:00
Florian Bruhin
34b24aafa8
Fix lint
2015-03-11 22:22:49 +01:00
Jimmy
834832e3ba
Web history changed signal now emits the new entry.
...
Each new HistoryEntry is emitted after being added to the global history
store. Current members of the HistoryEntry are `url` and `atime`. `title`
should be coming soon.
2015-03-11 21:50:16 +01:00
Jimmy
59948a038c
Add new UrlCompletion model which includes web history and quickmarks.
...
I went to some effort to avoid duplipcating code which which leads to some
arguably ugly class method calling.
2015-03-11 21:50:16 +01:00
Jimmy
f6a7ef3985
Add url history completion for open.
...
Adds a basic completion model implementation around the global browser
history and registers that for the open command.
Modifies WebHistory to add an __iter__ method and to use a dict instead of a
set to store an entire HistoryEntry for each archived item instead of just the
URL. Brief tests showed that the lookup time for set and dict are very
similar. They are at least on the same order of magnitude. Testing membership
of a list on the other hand, as was the case before a set was used, was four
orders of magnitude slower on my machine.
2015-03-11 21:50:16 +01:00
Florian Bruhin
e8e6d8409b
Adjust pylint exceptions.
2015-03-11 20:14:39 +01:00
Florian Bruhin
1ead66a4d5
quickmarks: Ignore empty and whitespace-only lines.
2015-03-10 23:25:02 +01:00
Florian Bruhin
d87a1bb2b4
Add a hints -> scatter option.
...
This is enabled by default to keep the same default behaviour which is like
Vimium - mixing e.g. single-char letters and double-char letters, and
scattering/shuffling the labels to have an uniform hint key distribution.
If disabled, the behaviour is more similiar to dwb, which has a fixed hint
string length and simply fills the string starting with the first possible hint
char.
2015-03-10 21:19:47 +01:00
Florian Bruhin
2f0522ebb0
Add a --rapid option to :hint, remove rapid target
...
This makes it possible to use rapid hinting for the run/hover/userscript/spawn
targets as well, and makes more sense anyways.
2015-03-10 19:40:30 +01:00
Florian Bruhin
4b6d49e926
Make QSslError hashable for Qt <= 5.4.
...
PyQt uses qHash() for __hash__, and qHash for QSslError was added with Qt 5.4.
This means 2da45e98ca
raised TypeError there as
QSslError is unhashable.
For those older Qt versions, we implement __hash__ ourselves which does about
the same thing as Qt does, combining the DER (binary) representation of the
certificate and the error() (which is just a QEnum, hashable as int).
2015-03-10 08:29:56 +01:00
Florian Bruhin
2da45e98ca
Auto-handle equal SSL errors for the same host.
...
For every (scheme, host, port) tuple, we save all SSL errors we asked the user
about, and if everything matches (scheme, host, port, error, certificate), we
don't ask the user again.
Fixes #422 .
2015-03-10 07:58:40 +01:00
Florian Bruhin
9ffb30a16f
Ignore RuntimeError in mouserelease_insertmode.
...
It seems when clicking certain elements, the webview can get deleted before the
singleShot QTimer will activate.
2015-03-09 11:49:01 +01:00
Florian Bruhin
e78fa431c5
Hide Qt warning when aborting download reply.
2015-03-09 07:49:02 +01:00
Florian Bruhin
6a16875f50
Fix retrying of downloads from closed tabs.
...
Fixes #502 .
2015-03-09 07:39:40 +01:00
Florian Bruhin
27f4ada799
Add AppendLineParser and use it in WebHistory.
...
The former approach (always reading the whole history from disk) was rather
inefficient, and we had performance problems e.g. when marking text in Qt
documentation.
2015-03-08 21:53:42 +01:00
Florian Bruhin
99de995813
Rename/move config.parsers.line.LineConfigParser.
...
It's now misc.lineparser.LineParser since it handles other stuff than just
config.
2015-03-08 21:53:42 +01:00
Florian Bruhin
ee8beb174d
Fix :tab-clone -w (i.e. back -w). Fixes #536 .
2015-03-08 15:02:18 +01:00
Florian Bruhin
cd34562d34
Fix :tab-clone with tabs -> tabs-are-windows=true.
...
See #536 .
2015-03-08 14:54:42 +01:00
Joel Torstensson
0fb74da4ff
Can now handle relative paths.
2015-03-05 23:44:12 +01:00
Joel Torstensson
d449a60078
Fixed bug using download dirs with trailing slash.
2015-03-05 20:33:02 +01:00
Joel Torstensson
9cfa34c009
Readded suggested_filename fallback.
2015-03-05 20:17:48 +01:00
Joel Torstensson
7d48845afa
Made static functions private.
2015-03-04 23:05:23 +01:00
Joel Torstensson
4e7e97232e
Downloads using get_request specifying only path now works.
2015-03-04 12:24:26 +01:00
Joel Torstensson
49c666a4a8
get_request is now correct.
2015-03-04 12:06:08 +01:00
Joel Torstensson
68774a2c75
Style fixes.
2015-03-04 11:31:54 +01:00
Joel Torstensson
8e0c1cff7b
Made download suggestion configurable.
...
Fix #505
2015-03-04 11:31:54 +01:00
Joel Torstensson
82deaeed2e
Downloads now shows path in question.
2015-03-04 11:29:36 +01:00
Florian Bruhin
40af99bacc
Clear open target in acceptNavigationRequest.
...
This is a regression introduced in a76868c0f4
.
Fixes #530 .
2015-03-03 23:28:45 +01:00
Gregor Pohl
c8c095d499
Add Opera-like mouse rocker gestures.
2015-03-03 12:58:32 +01:00
Florian Bruhin
f19eba3b40
Don't log cur_link_hovered signals.
2015-03-03 09:07:30 +01:00
Florian Bruhin
21ab5f8685
Add logging for acceptNavigationRequest.
2015-03-03 09:06:43 +01:00
Florian Bruhin
072210c47b
Log rfc6266 UnicodeDecodeError to correct logger.
2015-02-27 12:35:46 +01:00
Florian Bruhin
bfd0a3fbc2
Fix AttributeError when doing extended hinting.
2015-02-27 08:44:44 +01:00
Florian Bruhin
561ebd07f9
Make it possible to use :open -[twb] without url.
2015-02-27 08:10:00 +01:00
Florian Bruhin
6d51fcfb2e
Add a do_search argument to fuzzy_url.
...
This turns off searching no matter what autosearch is set to, and also makes it
possible to use fuzzy_url before the config is up.
For now, we use this for quickmarks and the startpage.
2015-02-27 08:07:40 +01:00
Florian Bruhin
a76868c0f4
Refactor how click/hint open targets are handled.
2015-02-26 20:41:04 +01:00
Florian Bruhin
eb8bad3d18
Reset open_target in acceptNavigationRequest.
...
After ddb39275eb
, when something was opened via
hints in a new tab, the open_target still was set afterwards and the next
regular open did open in a new tab.
2015-02-26 20:17:01 +01:00
Florian Bruhin
a12dee8898
hints: Include button in buttons().
...
From the QMouseEvent::buttons documentation:
For mouse move events, this is all buttons that are pressed down. For mouse
press and double click events this includes the button that caused the
event. For mouse release events this excludes the button that caused the
event.
2015-02-26 20:12:48 +01:00
Florian Bruhin
ddb39275eb
Simulate Ctrl-click when hinting in new tab/win.
...
This works around the fact some pages (e.g. github) load their content via AJAX
on a normal left click, so we'll never get acceptNavigationRequest and thus
can't open them in a new tab.
Fixes #488 .
2015-02-26 20:11:13 +01:00
Florian Bruhin
4b4bb3af88
Handle NavigationTypeOther acceptNavigationRequest
...
This fixes hinting in some cases where javascript is used to load content, e.g.
on duckduckgo. However it still doesn't seem to help with github files etc.
See #488 .
2015-02-26 20:04:00 +01:00
Florian Bruhin
fcbd69e209
Clean up standarddir handling #2 .
...
We already attempted this in c5a2039da4
, but
having the directories as module attributes means they'll be created on start
(rather than when they're actually used), and it'd also be impossible to change
them after init for some reason in the future.
To still have a nice short API, we simply change the attributes to functions.
2015-02-26 07:01:22 +01:00
Florian Bruhin
0d9bf5e2c9
Fix lint.
2015-02-26 06:13:27 +01:00
Samir Benmendil
81af41d77f
Add option to set minimum number of chars in hints
2015-02-26 00:49:50 +00:00
Florian Bruhin
1d27dcca81
Ignore RuntimeError because of deleted Question.
2015-02-25 23:12:23 +01:00
Florian Bruhin
31d9018fc4
Disable insecure SSL ciphers (< 128bit) for Qt 5.2.
...
This is only an issue for the users which are stuck on Ubuntu Trusty.
2015-02-25 21:07:44 +01:00
Florian Bruhin
0fcd016427
Move cursor to end of textboxes when hinting.
2015-02-25 19:56:03 +01:00
Florian Bruhin
94434ea739
Decorate DownloadItem slots with @pyqtSlot.
...
Before, using the right-click menu to cancel the download didn't actually
cancel it, as the QAction.toggled signal was emitted with checked=False which
got interpreted as remove_data=False.
2015-02-23 10:01:37 +01:00
Florian Bruhin
c5a2039da4
Refactor QStandardPaths handling.
2015-02-22 19:13:51 +01:00
Florian Bruhin
634028e277
Fix QIODevice warnings when closing tabs.
...
This is a regression introduced in 43c9d69295
.
Fixes #517 .
2015-02-20 07:43:40 +01:00
Florian Bruhin
87951ee3a8
Fix crash when closing tabs on Qt 5.2.1 (Trusty)
...
This issue was introduced in 8f1d81a644
.
2015-02-19 22:20:39 +01:00
Florian Bruhin
b31a432a1a
Add options to ignore javascript prompts/alerts.
...
New options: content -> ignore-javascript-{prompt,alert}.
2015-02-17 19:03:18 +01:00
Florian Bruhin
238761bd5b
Don't write zoom to QWebHistory.
...
If we set the zoom, it seems WebCore sets its own zoom independent of the
QtWebKit zoom, which leads to funny effects.
2015-02-17 07:48:19 +01:00
Florian Bruhin
56b0ae2b6e
Get rid of mainwindow.MainWindow.spawn.
2015-02-16 22:56:12 +01:00
Florian Bruhin
d8fe62bc61
Add workaround for adblock-message without window.
2015-02-16 22:21:36 +01:00
Florian Bruhin
8f1d81a644
Add session support.
...
Closes #12 .
See #499 .
See #11 .
This adds PyYAML as a new dependency.
It adds the following new commands:
:session-delete <name>
Delete a session.
:session-load <name>
Load a session.
:session-save [<name>]
Save a session.
:wq [<name>]
Save open pages and quit.
And the following new settings:
general -> save-session:
Whether to always save the open pages.
2015-02-16 20:26:09 +01:00
Florian Bruhin
8e2e996369
Merge branch 'download_cmd_interface' of https://github.com/oed/qutebrowser into oed-download_cmd_interface
2015-02-14 19:06:47 +01:00
Joel Torstensson
4d2aa6a4d4
Fixed errors in update_indexes, etc.
2015-02-14 14:11:38 +01:00
Florian Bruhin
66d3ec1c08
Make it possible to configure tab titles.
2015-02-13 23:57:31 +01:00
Florian Bruhin
e459e1a472
Fix loading of history with URLs containing spaces
...
Fixes #508 .
2015-02-13 18:58:44 +01:00
Joel Torstensson
049a360abc
Fixed error messages.
2015-02-13 12:40:37 +01:00
Joel Torstensson
dfb801a0b7
dataChanged is now emited in update_indexes.
2015-02-12 23:29:05 +01:00
Joel Torstensson
9f0658f191
Minor fixes.
2015-02-12 22:21:30 +01:00
Joel Torstensson
8cd5f9e6d1
Implemented :download-delete.
2015-02-12 22:20:22 +01:00
Joel Torstensson
dd995c434c
:download-cancel now only cancels downloads that are done.
2015-02-12 21:17:23 +01:00
Joel Torstensson
1f39200b28
:download-open and :download-remove now complains if you try to execute on a download that is not done.
2015-02-12 21:05:53 +01:00
Joel Torstensson
91f7056649
Added indexes to download view.
2015-02-12 20:43:13 +01:00
Joel Torstensson
658ab70e98
:download-open now also checks whether download was successful.
2015-02-11 22:13:29 +01:00
Florian Bruhin
d4ef66714f
Deny HTML5 permissions when question is cancelled.
...
Before we just ignored the request but deleted the Question object, which lead
to a RuntimeError when the question was cancelled and the page was reloaded,
because on_permission_canceled tried to abort the question.
2015-02-10 21:15:17 +01:00
Florian Bruhin
e44c5aee5b
Add config options for geolocation/notifications.
2015-02-10 21:09:08 +01:00
Joel Torstensson
6e3d5867f9
Fixed docs.
2015-02-09 17:38:50 +01:00
Joel Torstensson
55193803a1
Changed :downloads-clear to :download-remove.
2015-02-09 17:17:34 +01:00
Joel Torstensson
e9da7b5391
:download-open now only opens finished downloads.
2015-02-09 17:03:02 +01:00
Florian Bruhin
43c9d69295
Handle shutdown of page with prompt correctly.
...
Before we didn't cancel javascript prompts when a page was closed, which lead
to exceptions or segfaults.
2015-02-09 15:41:27 +01:00
Florian Bruhin
bc43fb5e4c
Implement requests for geolocation/notifications.
...
Closes #503 .
2015-02-09 15:32:26 +01:00
Joel Torstensson
767ca42e46
Some style fixes.
2015-02-09 12:06:49 +01:00
Florian Bruhin
494825fed0
Don't log statusbar messages in signalfilter.
2015-02-09 07:50:32 +01:00
Florian Bruhin
4704e81b41
Don't log javascript console messages by default.
2015-02-09 07:46:31 +01:00
Joel Torstensson
6bbb655a54
Fixed bug when specifying filename on download.
2015-02-08 22:21:34 +01:00
Joel Torstensson
9428338389
Merged :download and :download-page.
...
Fix #449
2015-02-08 22:08:16 +01:00
Joel Torstensson
6f89ab628b
More command actions on downloads.
2015-02-08 22:03:29 +01:00
Florian Bruhin
31e71ed6d9
Fix copyright years.
...
Files created in 2015 don't need to have 2014 as copyright year.
2015-02-06 00:21:57 +01:00
Florian Bruhin
5ed592a447
Replace some QTimers by named Timers.
2015-02-05 07:17:58 +01:00
Florian Bruhin
cbde36948a
Abort download override question on error/cancel.
...
If a download error occured or the user cancelled the download during the file
override question, an exception occured as the download was no longer valid
when the question was answered.
See #416 .
2015-02-02 06:53:55 +01:00
Florian Bruhin
18b58b2001
Set a higher z-index for hint labels.
...
This fixes hinting on the youtube top bar.
Fixes #496 .
2015-02-02 06:35:45 +01:00
Florian Bruhin
9b1729c77e
Always write config files to disk on first start.
2015-02-01 23:47:40 +01:00
Florian Bruhin
dc6aaecc78
Add __getitem__ to WebHistory.
2015-02-01 23:12:02 +01:00
Florian Bruhin
33a2181e31
Record global page history to disk.
...
We currently don't do anything with it yet, but people could use it in scripts
already and we have the history later when completion or other stuff will be
added based on it.
See #33 .
2015-02-01 22:27:58 +01:00
Florian Bruhin
43c5dc3bf6
Refactor saving logic, only save stuff if modified.
...
Fixes #113 .
See #11 .
2015-02-01 00:43:07 +01:00
Florian Bruhin
d6e87a2672
Hide adblocked iframes.
...
We now hide iframes which have been blocked completely instead of displaying an
error page in there. Displaying the error page also did break back/forward,
e.g. on reddit.
Fixes #493 .
2015-01-31 22:38:31 +01:00
Florian Bruhin
9736224fa6
Close contextmenu when closing tab to avoid crash.
...
Fixes #494 .
2015-01-31 21:01:03 +01:00
Florian Bruhin
55649882a0
Revert "Paste primary selection into forms on Shift-Insert."
...
This reverts commit 68a0428a09
.
Even if this works fine for me, various people reported segfault issues when
using Shift-Insert, so I'm reverting this for now until I find a proper
solution.
See #491 .
2015-01-30 11:50:05 +01:00
Florian Bruhin
c40e70ed11
Revert "Also copy QByteArray of clipboard data."
...
This reverts commit 4138debd1e
.
It seems even with this, there are still weird segfault issues.
See #491 .
2015-01-30 11:48:40 +01:00
Florian Bruhin
4138debd1e
Also copy QByteArray of clipboard data.
...
This could possibly fix segfaults some people have seen when pasting after
68a0428a09
.
See #491 .
2015-01-30 06:42:55 +01:00
Florian Bruhin
b721a0e992
Clean up NetworkManager after downloads finished.
...
Fixes #490 .
2015-01-28 22:52:24 +01:00
Florian Bruhin
1526cf1532
Merge branch 'master' of ssh://tonks/qutebrowser
2015-01-28 08:43:48 +01:00
Florian Bruhin
68a0428a09
Paste primary selection into forms on Shift-Insert.
...
Closes #491 .
2015-01-28 06:56:38 +01:00
Florian Bruhin
4c87287f4e
Don't set up on_ssl_errors slot without SSL.
2015-01-26 13:23:41 +01:00
Florian Bruhin
bc380fca61
Clone zoom factor when cloning tab.
2015-01-26 07:20:03 +01:00
Florian Bruhin
ab2d2d79ca
Clone text/icon as well when cloning tabs.
...
Closes #316 .
2015-01-26 07:18:07 +01:00
Florian Bruhin
6576796718
Fix retrying of downloads after the tab is closed.
2015-01-25 23:53:23 +01:00
Florian Bruhin
b387b4c7a9
Merge branch 'master' of ssh://git/qutebrowser
2015-01-22 10:41:58 +01:00
Florian Bruhin
5c92144f6b
Fix spawn --userscript with multiple args.
...
This is a regression introduced in 4485e4ee1b
.
We didn't unpack the argument list properly before passing it to
run_userscripts.
Fixes #476 .
See #448 .
2015-01-22 07:10:32 +01:00
Florian Bruhin
aae33a0308
Handle another webelem.IsNullError with hints.
2015-01-16 09:09:12 +01:00
Florian Bruhin
4485e4ee1b
Merge :run-userscripts into :spawn.
...
:run-userscripts is now marked as deprecated, and :spawn has a new
-u/--userscript option instead.
Closes #448 .
2015-01-15 22:29:06 +01:00
Florian Bruhin
3eac528716
Switch Qt style to Fusion on OS X on Qt 5.4.
...
Fixes #462 .
See #459 .
Upstream bugs:
https://bugreports.qt.io/browse/QTBUG-42948
https://bugreports.qt.io/browse/QTBUG-43070
2015-01-09 15:43:03 +01:00
Florian Bruhin
5947994479
Fix error handling for local files in :adblock-update
2015-01-09 06:53:00 +01:00
Florian Bruhin
77df4c7241
Add !important to all hint properties.
2015-01-06 17:10:54 +01:00
Error 800
82ee78b3db
Added !important to hint styles
...
Prevents websites from overriding hint styles
2015-01-06 16:23:45 +01:00
Error 800
c008ee8dd7
Added !important to hint styles
...
Prevents websites from overriding hint styles
2015-01-06 16:13:28 +01:00
Error 800
ce5629eab3
Fixed uppercase hints option
...
Corrected CSS property from 'texttransform' to 'text-transform'
2015-01-05 16:20:45 +01:00
Florian Bruhin
efe96462c9
Pass more useful information to userscripts.
...
Closes #379 .
2015-01-04 20:16:15 +01:00
Florian Bruhin
013f906c3b
hints: Small cleanup (add _show_url_error method).
2015-01-04 20:15:45 +01:00
Florian Bruhin
b8a04f5309
Don't raise CommandError in TabbedBrowser.current_url.
...
TabbedBrowser.current_url used to process the qtutils.QtValueError exception
and raise a cmdexc.CommandError based on it. While this was useful for some
callers, it made handling it in others weird, and it doesn't really belong
there - so now the caller handles this.
2015-01-04 20:13:25 +01:00
Florian Bruhin
04c8a17b2e
Merge branch 'userscript-runner'
2015-01-04 15:21:31 +01:00
Florian Bruhin
2203db298d
Abort blocking questions when new page is loaded.
...
Fixes #430 .
Fixes #431 .
Hopefully fixes #354 .
Hopefully fixes #434 .
2015-01-03 22:21:47 +01:00
Florian Bruhin
f811f511fa
Use self._win_id in QNetworkManager._ask.
2015-01-03 22:04:56 +01:00
Florian Bruhin
7dbbfedd3b
Replace unencodable chars in download filenames.
...
Fixes #427 .
2015-01-03 17:50:59 +01:00
Florian Bruhin
450d1ab70d
Update copyright years
2015-01-03 15:51:31 +01:00
Florian Bruhin
4471f81c11
Expand ~ to home dir with :run-userscript.
2014-12-29 22:17:58 +01:00
Florian Bruhin
0cd0f97587
Call triggerAction on page, not view.
2014-12-29 22:12:09 +01:00