Florian Bruhin
3a33bc42a6
Add initial support for the typing module
2016-05-18 06:55:17 +02:00
Florian Bruhin
bb8d0a8ee4
Fix long lines
2016-05-18 06:55:17 +02:00
Florian Bruhin
c33f0c3512
Use @cmdutils.argument for completions
2016-05-18 06:55:17 +02:00
Florian Bruhin
3ab40bbc23
Clear globals correctly for all cmdutils tests
...
TestArgument didn't clear the globals as the fixture was inside
TestRegister.
This means test_run_vulture failed in funny ways because run_vulture.py
generated a whitelist containing "<locals>" for commands:
tests/unit/scripts/test_run_vulture.py:55: in run
return run_vulture.run([str(e.basename) for e in files])
scripts/dev/run_vulture.py:146: in run
vult.scavenge(files + [whitelist_file.name])
.tox/py35/lib/python3.5/site-packages/vulture.py:107: in scavenge
self.scan(module_string)
.tox/py35/lib/python3.5/site-packages/vulture.py:75: in scan
node = ast.parse(node_string, filename=self.file)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
source = 'qutebrowser.browser.commands.CommandDispatcher.buffer\nqutebrowser.misc.savemanager.SaveManager.save_command\nqutebro...iidoc.UsageFormatter._get_default_metavar_for_positional\nscripts.dev.src2asciidoc.UsageFormatter._metavar_formatter\n'
filename = '/tmp/tmp_ein2umn', mode = 'exec'
def parse(source, filename='<unknown>', mode='exec'):
"""
Parse the source into an AST node.
Equivalent to compile(source, filename, mode, PyCF_ONLY_AST).
"""
> return compile(source, filename, mode, PyCF_ONLY_AST)
E File "/tmp/tmp_ein2umn", line 16
E test_cmdutils.TestArgument.test_wrong_order.<locals>.fun
E ^
E SyntaxError: invalid syntax
2016-05-18 06:55:17 +02:00
Florian Bruhin
1611562271
Get rid of dict annotations
2016-05-18 06:55:17 +02:00
Florian Bruhin
d990032a2e
Remove leftovers of 'name' annotation key
2016-05-18 06:55:17 +02:00
Florian Bruhin
77151d394a
Use @cmdutils.argument for metavar
2016-05-18 06:55:17 +02:00
Florian Bruhin
c14db202d6
Use @cmdutils.argument to hide arguments
2016-05-18 06:55:17 +02:00
Florian Bruhin
2fc4f408cd
Fix src2asciidoc
2016-05-18 06:55:17 +02:00
Florian Bruhin
2370793f38
Make win_id/count mutually exclusive for ArgInfo
2016-05-18 06:55:17 +02:00
Florian Bruhin
35135c4b0d
Use @cmdutils.argument for win_id/count
2016-05-18 06:55:17 +02:00
Florian Bruhin
04367851c3
Refactor how cmdutils.ArgInfo works
...
It's now a real class, and some other aspects about how it's handled
were cleaned up as well.
2016-05-18 06:55:17 +02:00
Florian Bruhin
9eeaeb95c3
Make sure @cmdutils.argument after @register fails
2016-05-18 06:55:17 +02:00
Florian Bruhin
3c586f34ff
Add a @cmdutils.argument decorator
...
For now the only available keyword argument is 'flag' which customizes
the flag an argument will get.
See #637 .
2016-05-18 06:55:17 +02:00
Liam BEGUIN
c3dfd62172
broke line to fit properly
2016-05-17 23:39:24 -04:00
Ryan Roden-Corrent
52641e25f5
Show currently bound keys in command completion.
...
The command completion menu now uses the misc colum to show a
comma-separated list of normal-mode keybindings for each command.
2016-05-17 20:25:09 -04:00
Ryan Roden-Corrent
acdeb0f57c
Bump default for partial-timeout to 5000ms.
...
Give more time to read the keyhint widget.
2016-05-17 20:13:25 -04:00
Ryan Roden-Corrent
e810317057
Restore bottom padding of keyhint widget.
...
Previously, negative bottom padding was used (probably to compensate
for a trailing <br>). With the table format, this is no longer
necessary and causes the last line to be drawn too low.
2016-05-17 20:10:52 -04:00
Liam BEGUIN
b66d5e1ce9
Fixed indentations
2016-05-17 19:58:27 -04:00
Panagiotis Ktistakis
959f777f92
Assert that hovered link generates a valid QUrl
2016-05-17 10:28:33 +03:00
Jimmy
cd21f6326e
Save redirect links that are clicked on to history.
...
This allows webkit to color links that are clicked on but never rendered as
visited too. It also means if you get redirected from eg http://site.com to
http://site.com/ you have essentially duplicates in your history. This makes
the history completion a bit noisier. I suppose normalising paths before
checking for duplicates might help. Also note that otter has an isTypedIn flag
which might be used for dealing with this.
2016-05-17 17:15:22 +12:00
Jimmy
b48b36a88d
fixup! Switch browsing history away from QWebHistoryInterface.
2016-05-17 17:15:22 +12:00
Jimmy
33fbe97863
Switch browsing history away from QWebHistoryInterface.
...
Now adds a url to browser history once we have connected and got enough data
to start rendering the page. The previous approach saved urls as soon as
navigation was initiated, so upon encountering a redirect the final url wasn't
saved.
Using layout started rather than load finished means that pages whose contents
manage to load minus one troublesome asset will still be saved.
2016-05-17 17:15:22 +12:00
Jimmy
1524f29f71
Add titles to history entry.
...
Adds a title to the HistoryEntry class and includes it in the serialization
stuff. Not currently set from anywhere.
Not sure if anything more needs to be done to support non-ascii characters.
Everything works fine for me with unicode chars in url and title but
everything in my stack is utf-8.
2016-05-17 17:15:22 +12:00
Liam BEGUIN
531a5071f6
updated inputs-group
2016-05-17 00:38:23 -04:00
Ryan Roden-Corrent
86f95c302d
Explain timeout vs partial-timeout better in docs.
2016-05-16 21:40:30 -04:00
Felix Van der Jeugt
acb60a1bf4
align using a table
2016-05-16 07:14:34 -04:00
Liam BEGUIN
3b0354518b
Added basic inputs-group to :hint
2016-05-15 22:46:12 -04:00
Ryan Roden-Corrent
3cd252ef82
Clean up html for keyhint text.
...
The \t was behaving the same as a space and the <b> was doing nothing.
2016-05-15 22:33:53 -04:00
Ryan Roden-Corrent
d506d7793f
Further clean up keyhints.
...
Don't show special keys in the keyhint window as these currently cannot
be part of keychains.
Use a rounded border on the top-right corner and square on the rest.
2016-05-15 12:32:36 -04:00
Panagiotis Ktistakis
224c877fec
Hide passwords in hovering URLs
2016-05-15 19:07:10 +03:00
Florian Bruhin
0c1e82a103
Fix lint
2016-05-15 11:53:58 +02:00
Florian Bruhin
9b28d90543
Improve output if :messages is used without errors
2016-05-15 11:50:29 +02: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
Florian Bruhin
e21039094d
Merge branch 'messages' of https://github.com/rcorre/qutebrowser into rcorre-messages
2016-05-15 11:20:06 +02:00
Florian Bruhin
a9ab6abafd
Document {url} and {url:pretty} for :set-cmd-text
2016-05-15 11:09:16 +02:00
Florian Bruhin
0888f676f3
Change go/gO/xO/wO bindings to use {url:pretty}
...
This is now possible with #1494 .
See #1483 .
2016-05-15 11:06:54 +02:00
Florian Bruhin
b75d1629a8
Merge branch 'set-cmd-text-variables' of https://github.com/forkbong/qutebrowser into forkbong-set-cmd-text-variables
2016-05-15 11:01:58 +02:00
Florian Bruhin
6b4efc1822
Fix log output in crash report
...
With the changes to get rid of colorlog, we broke this, as e.g. {green}
was an undefined key for the vanilla logging.Formatter used for the
in-RAM log. Now we instead use a ColoredFormatter with colors turned
off.
2016-05-15 10:46:46 +02:00
Ryan Roden-Corrent
231950aa88
Increase default value for input.partial-timeout.
...
Increase from 500 to 2500.
This allows the user more time to read hints shown in the new keyhint
popup.
2016-05-14 19:30:39 -04:00
Ryan Roden-Corrent
d592a3e764
Clean up keyhint implementation.
...
From code review:
- escape all strings used in the keyhint html
- read the prefix color each time the hint is shown
- use show/hide instead of setVisible
- clean up pylint/flake8 errors
- use CssColor instead of QssColor for keyhint.fg.suffix
- add some padding to the keyhint popup
2016-05-14 19:30:28 -04:00
Panagiotis Ktistakis
c88883fcb3
Decode URL in statusbar when hovering over it
2016-05-14 19:52:24 +03:00
Ryan Roden-Corrent
e7ff717d52
Show key hints for all modes, not just normal.
2016-05-14 12:50:26 -04:00
Ryan Roden-Corrent
8406746889
Show possible keychains from current input.
...
When the current keystring is a partial match for one or more bindings,
show the possible bindings in a small overlay.
The overlay is partially transparent by default, but the background
color is configurable as ui->keystring.bg.
2016-05-14 12:50:26 -04: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
c64e5c9bd5
Get rid of the colorlog dependency
...
colorlog was problematic for various reasons:
- Not commonly packaged for Linux distributions
- Calling colorama.init() automatically on import
- Not supporting {foo} log formatting
- Not supporting an easy way to turn colors off
Instead we now do the log coloring by hand, which is simpler and means
everyone will have colored logs.
2016-05-13 21:19:33 +02:00
Panagiotis Ktistakis
bb45392c1b
Use the right split function
2016-05-13 19:32:35 +03:00
Panagiotis Ktistakis
ecfa6cfc63
Split arguments using qutebrowser.utils.split
2016-05-13 18:59:24 +03:00
Panagiotis Ktistakis
7488f2a5cb
Remove unused imports
2016-05-13 18:58:42 +03:00
Panagiotis Ktistakis
38edb1b16d
Properly replace variables in set-cmd-text command
...
This fixes #123 and allows variables like {url:pretty} to be used with
set-cmd-text
2016-05-13 18:12:53 +03:00
Florian Bruhin
a9a853baf0
Improve message stack output
...
The output failed the tests as it was parsed as invalid. Indenting helps
with that.
This also simplifies things a bit by having a _log_stack function and
shows the type of stack we're printing.
2016-05-13 08:27:11 +02:00
Florian Bruhin
4a551a6758
Show exception stack when handling cmdexc errors.
2016-05-13 07:43:44 +02:00
Florian Bruhin
aea30e810a
Fix lint
2016-05-12 21:11:45 +02:00
Florian Bruhin
37a1d0cb6f
Log stacktrace of error messages to debug log
2016-05-12 20:30:07 +02:00
Florian Bruhin
24d16dd0a7
Merge branch 'show_binding2' of https://github.com/rcorre/qutebrowser into rcorre-show_binding2
2016-05-10 23:39:32 +02: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
Florian Bruhin
e4e98c6c23
Delete QTextDocument properly in completion.
...
The CompletionItemDelegate gets reused by Qt for various items in the
completion. Every time _get_textdoc() was called we created a new
QTextDocument, but since it has a long-living parent set (the delegate)
the old one was never actually garbage collected.
We now explicitly delete the old QTextDocument as it's not needed
anymore by either Qt or Python.
See #1476 .
2016-05-09 09:11:14 +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
f90776f75c
Add documentation for default_window_icon
2016-05-07 21:37:01 +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
d2be8a28ca
Also ignore segfaults in paintEvent
2016-05-04 23:06:26 +02:00
Florian Bruhin
2d0604ec08
Remove unused imports
2016-05-04 22:15:47 +02:00
Florian Bruhin
034f8585a6
Disable segfault reports for Qt mainloop crashes
2016-05-04 21:50:44 +02:00
Florian Bruhin
0efd87af12
Clean up formatting of num
2016-05-04 07:07:24 +02:00
Ryan Roden-Corrent
b8a593cac5
Show command completions for :bind.
...
All commands will be offered as completions for the <command> argument
of :bind.
Due to the way completers parse the command line, the following
bind --mode caret j
will throw off completions as 'caret' is treated as a positional arg in
terms of the argument count for completions.
In the above example, completion will be triggered for 'j' and no
completions will be given for the actual command.
bind --mode=caret j will complete correctly, though completions are not
filtered by the given mode.
I attempted an approach to filter the commands based on the mode but it
ended up being messy and flaky.
2016-05-03 23:29:34 -04:00
Ryan Roden-Corrent
2536766cac
Run :bind <key> to print the current binding.
...
The <command> arg is now optional. If omitted, :bind prints the current
binding as a message. If --mode is given, the binding for that mode is
printed.
2016-05-03 23:29:34 -04:00
Ryan Roden-Corrent
98508bdd26
Allow flexible whitespace in color strings.
...
Allow a variable amount of whitespace for rgb, rgba, hsv, and hsva
strings in the config.
Previously only 'rgb(0, 0, 0)' was allowed. Now things like
'rgb(0,0,0)' are permitted.
The repeated 3-digit segments of the regexes were separated out to
reduce repetition and line length.
2016-05-03 23:15:39 -04:00
Florian Bruhin
a6cd91c386
Turn off WebGL by default
...
This was mainly turned on because that's Qt's upstream default, but
there's no reason for it to be turned on.
2016-05-03 06:33:08 +02:00
Florian Bruhin
e5630e9518
Fix lint
2016-05-01 23:03:27 +02:00
Florian Bruhin
3eeacd7e09
Fix userscripts on Windows
...
If the process emitted error() and then finished(), we already set
self._filepath to None and did other cleanup.
Instead we do the file reading inside _cleanup and call that from
on_process_error and on_process_finished.
2016-05-01 22:47:03 +02:00
Florian Bruhin
0b24916fc7
Add missing attribute
2016-05-01 22:34:04 +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
4e333d61cd
Clean up failed userscripts correctly
2016-05-01 22:13:52 +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
b7225924e3
Fix lint
2016-04-30 18:39:26 +02:00
Florian Bruhin
48c7eee6f6
Release v0.6.2
2016-04-30 18:16:43 +02:00
Florian Bruhin
528e303d6e
Add a --force-color argument for logging
2016-04-30 17:01:45 +02:00
Florian Bruhin
48d7185c94
log: Don't use colorama on POSIX
2016-04-30 16:59:59 +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
4807746e8f
Add @pyqtSlot for qApp.focusChanged slot
2016-04-29 22:25:27 +02:00
Florian Bruhin
2d5ffbfd02
Revert "Handle counts for special keys."
...
This reverts commit c881730fad
.
This is just a temporary solution until we can properly fix this.
See #1464
2016-04-29 14:20:11 +02:00
Florian Bruhin
60f8681b41
Improve name of unused variable
2016-04-28 22:28:12 +02:00
Florian Bruhin
8b227f4ba4
Merge branch 'special_key_count' of https://github.com/rcorre/qutebrowser into rcorre-special_key_count
2016-04-28 22:22:23 +02:00
adam
5eea9d0605
Cleanup for flake8/pylint
2016-04-28 09:20:16 -04:00
Florian Bruhin
2f10ab4e9a
Clean up coding style
2016-04-28 07:07:49 +02:00
Florian Bruhin
15a145cf92
Merge branch 'buffer_completion_delete_item-1443' of https://github.com/toofar/qutebrowser into toofar-buffer_completion_delete_item-1443
...
Merge conflict in qutebrowser/completion/models/miscmodels.py due to a simple
style fix in the old code.
2016-04-28 07:03:27 +02:00
adam
8fd371d836
Proposed addition for issue #1386
2016-04-27 16:47:36 -04: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
24cde47881
Merge branch 'marks_invalid_url' of https://github.com/rcorre/qutebrowser into rcorre-marks_invalid_url
2016-04-27 21:00:21 +02:00
Florian Bruhin
2a343cb3a1
Various code style improvements
2016-04-27 20:25:27 +02:00
Ryan Roden-Corrent
88f66874a1
Don't crash when setting mark on invalid url.
2016-04-27 08:10:53 -04: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
fd20b46b33
Split IPCServer.on_ready_read into two methods
2016-04-26 23:14:03 +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
3c8598f691
Work around PyQt 5.6 segfault when using IPC
...
PyQt 5.6 seems to segfault when emitting None with a signal which is
declared as emitting a string:
https://www.riverbankcomputing.com/pipermail/pyqt/2016-April/037375.html
We now avoid this by using an empty string explicitly instead of None.
2016-04-26 22:30:27 +02:00
Florian Bruhin
48b069e89c
Remove @pyqtSlot for on_new_window
...
This worked fine with Python 3.5 but causes a circular import which is
hard to break with Python 3.4.
The original solution was to do @pyqtSlot(object), but that doesn't work
with PyQt 5.6 anymore...
2016-04-26 22:16:04 +02:00
Florian Bruhin
59c4cdd1c2
Revert "Break up circular import on Python 3.4"
...
This reverts commit e5be48fcc0
.
There are other circular imports as well.
2016-04-26 22:14:59 +02:00
Florian Bruhin
e5be48fcc0
Break up circular import on Python 3.4
2016-04-26 21:44:30 +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
da24e43fa5
Remove crowdfunding notes
2016-04-25 22:32:29 +02:00
Florian Bruhin
32d64b1a9a
Merge branch 'undo_crash' of https://github.com/rcorre/qutebrowser into rcorre-undo_crash
2016-04-25 19:19:08 +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
Jimmy
32edd35c7a
buffer completion: handle deleting items see issue #1443
...
Allows to use ctrl+d to close tabs from the buffer completion widget
when they are selected. Respects current tab settings like whether you
can close the last tab in a window.
Had to change the `rebuild()` method to use `setData()` when possible
because the selection was being lost if the whole model was being rebuilt.
Current problems are:
1) When opening a new window while you already the tab completion open on
one window a category is added for the new window but new rows in
that category aren't picked up. Interesting if you open a third
window then close the second window the completion display is now
correct... I can see that the model is being updated correctly but I
am not sure why that isn't propagating to the view. Not sure whether
it is worth looking into (further) either.
2) Bit of duplication of code, it iterates over the window registry
twice. Could put everything in one loop but then that would be
dependant on the current behaviour of the `tab_closed` signal being
called with the relevant `tabbed_browser` still existing but with the
`shutting_down` flag set.
3) I'm still using just the one `rebuild()` method and removing items from
the end then calling `setData` on everything rather than having special
`on_tab/window_closed` methods (or partial functions) that delete the
actual corresponding item. Because if I did that I would also have to
special case tab moves etc.
2016-04-23 02:55:53 +12:00
Florian Bruhin
77a9bbb4b4
Fix accidental double-import
2016-04-21 23:12:54 +02:00
Florian Bruhin
5b34f1b429
Fix ModeManager.leave docstring
2016-04-21 20:12:02 +02:00
Florian Bruhin
e0aa35b05a
Fix type in @pyqtSlot for ModeManager.leave
...
For some reason it worked with str as well, but the signal emits a
KeyMode member.
2016-04-21 20:10:58 +02:00
Florian Bruhin
ef91fa3821
Merge branch 'marks' of https://github.com/rcorre/qutebrowser into rcorre-marks
2016-04-21 20:05:41 +02:00
Ryan Roden-Corrent
ccd04ca548
Don't crash when undoing twice on default page.
...
Avoid a crash when undoing twice on the default page with last-close set to
default-page.
This was caused by logic to reuse the current tab if it is on the default page
and has no history. The fix is using openurl rather than removeTab/tabopen.
2016-04-21 08:04:20 -04:00
Ryan Roden-Corrent
600b5082a9
Touch up tests and add pyqtSlot for marks.
...
Small code review changes.
2016-04-20 21:53:12 -04: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
Florian Bruhin
6a6285495a
Merge branch 'pretty_url_2' of https://github.com/forkbong/qutebrowser into forkbong-pretty_url_2
2016-04-20 20:56:24 +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
c881730fad
Handle counts for special keys.
...
Now 3<ctrl-o> will execute whatever <ctrl-o> is mapped to with count=3.
2016-04-19 23:39:02 -04: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
Ryan Roden-Corrent
268d490e25
Return False when MarkKeyParser gets special key.
2016-04-19 17:30:57 -04:00
Jan Verbeek
3788eeb10b
Add a few common generic browser keybindings
2016-04-19 22:24:24 +02:00
kanikaa1234
fae005ab7f
:navigate: command and test feature
2016-04-19 20:30:20 +05:30
Panagiotis Ktistakis
c7534bd4a3
Allow {url:pretty} variable in commands
2016-04-19 16:37:05 +03:00
Ryan Roden-Corrent
6466ff919a
Don't limit marks to alpha characters.
2016-04-19 08:28:11 -04:00
Ryan Roden-Corrent
ae267c466f
Small fixes for marks.
...
Mark two callbacks with pyqtSlot as appropriate.
Return False instead of raising NotImplementedException to avoid pylint
identifying MarkKeyParser as abstract.
2016-04-19 08:28:02 -04:00
Florian Bruhin
5c97ec1659
Fix HeaderDict lint
2016-04-19 09:50:53 +02:00
Florian Bruhin
6aaea2aa31
Fix HeaderDict with an empty value
2016-04-19 09:43:54 +02:00
Florian Bruhin
e860d8cfea
Add a custom-headers setting
...
Supersedes #1132
Closes #1020 .
2016-04-19 06:35:32 +02:00
Florian Bruhin
c5999443a1
Implement a HeaderDict config type
...
Supersedes #1132 .
Fixes #1022 .
2016-04-19 06:35:20 +02:00
Panagiotis Ktistakis
045b54b94b
Add commands to yank pretty decoded URLs
...
yp and yP, yank to the clipboard and primary selection respectively
2016-04-18 23:11:27 +03: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
4b00a17d71
Fix MarkKeyParser crash when changing keyconfig.
...
Ensure MarkKeyParser implements on_keyconfig_changed, so it doesn't fail when
rebinding a key. It doesn't have keybindings, so the implementation is just
`pass`.
This also fixes a few flake8 style errors.
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
be6308534f
Store both x and y position for marks.
...
Previously only stored/used y.
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
f4b9573744
Remove cyclic dependency from MarkKeyParser.
...
Rather than calling modeman.leave directly, modeman hooks into a request_leave
signal that is fired when MarkKeyParser wants to exit mark mode.
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
4037719a78
Add default bindings for set-mark and jump-mark.
...
Bind set-mark to ` and jump-mark to '.
2016-04-17 21:04:08 -04:00
Ryan Roden-Corrent
7bfea773db
Add set_mark and jump_mark modes.
...
These modes use a custom handler to pass whatever the next keypress is
to either set_mark or jump_mark.
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
Xitian9
c76d4479ee
Open command line urls explicitly.
2016-04-15 18:50:42 +10:00
Alexey Glushko
2645334425
Indent fixing
2016-04-14 17:20:34 +00:00
Florian Bruhin
8dec54f7d9
Regenerate resources
2016-04-14 17:59:28 +02:00
Florian Bruhin
d3e7be1eb0
New qutebrowser logo!
...
Thanks to http://www.yelostudio.com
2016-04-14 17:44:38 +02:00
haitaka
d61ee2681f
set back to the qutebrowser logo in on_load_started
2016-04-14 20:26:00 +06:00
haitaka
de93e6c7ee
remove trailing whitespace
2016-04-13 19:15:01 +06:00
haitaka
b10c1b063d
Site favicon as window icon when 'tabs-are-windows' is enabled
2016-04-13 19:08:50 +06:00
Florian Bruhin
c690e652dc
Release v0.6.1
2016-04-10 21:25:32 +02: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
a33aa524de
Don't crash if data is None while saving session
...
Under some circumstances I can't reproduce (switching/turning off
monitors?) it seems it's possible that SessionManager.save gets called
with last_window=True, without on_last_window_closed being called.
This might be to one of the Qt screen management bugs fixed in Qt 5.6,
which would explain why I can't reproduce it.
Instead of crashing, let's log the error and not save the session.
2016-04-10 17:47:14 +02:00
Florian Bruhin
20f80610be
Add some more logging for standarddir
2016-04-10 17:47:04 +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
f5b9e0ab27
Add Tor/HTTP completions for network -> proxy
2016-04-07 21:25:23 +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
Florian Bruhin
332e045f54
Merge branch 'edit-url' of https://github.com/rcorre/qutebrowser into rcorre-edit-url
2016-04-05 18:28:50 +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
806436297a
Release v0.6.0
2016-04-04 18:16:56 +02: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
272eb28d7b
Fix saving of history titles
...
This is a regression introduced in d83d2e4
.
2016-04-01 07:53:44 +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
6631c6456c
Merge branch 'session-tests'
2016-04-01 06:15:52 +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
Florian Bruhin
cae496565b
Bind gt
to show buffer list
2016-03-31 07:05:30 +02:00
Florian Bruhin
14b9f3d8f5
Remove gt/gT bindings
...
Those were added in #443 , inspired by luakit.
However, all other bindings follow dwb's defaults, and dwb uses `gt` for
showing buffers. To be consistent, let's rebind gt to show :buffer.
2016-03-31 07:02:59 +02:00
Florian Bruhin
d83d2e442e
Work around getting an empty session title.
...
Fixes #879 .
Supersedes #880 .
2016-03-31 06:38:09 +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
bec8bd0285
Mention QtWebEngine in segfault report dialog
2016-03-27 23:11:45 +02:00
Florian Bruhin
952daf0479
Well, this is embarassing. Fix segfault reports.
2016-03-27 22:53:05 +02:00
Florian Bruhin
4cd49d42cc
Fix pdfjs error page after jinja.render changes
2016-03-27 12:53:53 +02:00
Florian Bruhin
387e35d3e5
Fix lint
2016-03-26 00:24:54 +01:00
Florian Bruhin
9edc5a665e
Handle jinja's UndefinedError in jinja.render
...
We can get UndefinedError when a new function got added to the jinja
env (and gets called from a template) and the user did update the
on-disk templates but not restart qutebrowser yet.
In this case, let's show a special error page to the user and tell them
to do :report in the unlikely case it's actually a bug.
Fixes #1362 .
See #1360 .
2016-03-26 00:00:06 +01: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
Clayton Craft
439d815601
Now runner calls cmd_path instead of cmd
2016-03-24 16:26:19 -07:00
Clayton Craft
ff4e17190f
Allow searching system-wide data path on Linux for userscripts
2016-03-24 13:22:00 -07:00
Florian Bruhin
a932183909
Merge branch 'master' of https://github.com/haxwithaxe/qutebrowser into haxwithaxe-master
2016-03-18 06:17:54 +01:00
haxwithaxe
eed13467f3
allow {0} in search engine specification strings to allow multiple instances of the search term in the url
2016-03-17 20:38:05 -04:00
Florian Bruhin
0830b400fe
Merge branch 'editor_crash_behaviour' of https://github.com/EliteTK/qutebrowser into EliteTK-editor_crash_behaviour
2016-03-17 21:40:17 +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
dad26cc395
Fix line length
2016-03-16 19:43:18 +01:00
Florian Bruhin
a52334333b
Merge branch 'fix/hints-auto-follow' of https://github.com/NoctuaNivalis/qutebrowser into NoctuaNivalis-fix/hints-auto-follow
2016-03-16 18:17:08 +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
2fb186efcd
Fix UnboundLocalError in :unbind
2016-03-10 20:27:03 +01:00
Florian Bruhin
88e4102ae1
Move Liberation Mono after Courier as default font
...
Before, in fonts -> _monospace we preferred Liberation Mono to Courier and
Courier New. Unfortunately, that font looks horrible on Windows if it's
installed, so let's avoid using it if possible.
On Linux, hopefully Courier New/Courier isn't available, and Liberation Mono
will get picked up instead (or one of the other alternatives).
2016-03-09 10:12:39 +01:00
Florian Bruhin
0c3eb7a31c
Specify valid loglevels for --loglevel/-l
2016-03-08 17:38:26 +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
d8ad0a14af
Fixes wrong documentation
2016-02-28 23:42:14 +01:00
Tarcisio Fedrizzi
0ab44c4f4a
Reformats code as requested
2016-02-28 23:41:20 +01:00
Tarcisio Fedrizzi
79ad65ee64
Fixes flake8 errors
2016-02-27 12:36:13 +01:00
Tarcisio Fedrizzi
67ebdc6eb6
Fixes the position of the logging line
2016-02-27 11:54:23 +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
4500bc24d4
fuzzy_url uses path check function
2016-02-27 11:54:23 +01:00
Tarcisio Fedrizzi
594b0d2910
Refactors path validity check to its own function
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
Florian Bruhin
0df4da5b91
Also display XDG_* in crash reports
2016-02-23 08:47:53 +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
Florian Bruhin
2b2331754d
Combine launch/crash time into one section.
2016-02-17 07:10:01 +01:00
Florian Bruhin
36019c0cab
Split long lines.
2016-02-17 07:04:25 +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
Felix Van der Jeugt
b45db0f1dd
let help text match reality
2016-02-15 14:38:11 +01:00
avk
d551591b42
Added crash time to crash report
2016-02-12 11:59:45 +01:00
avk
53719366e0
Added time to standard log
2016-02-12 11:02:08 +01:00
Florian Bruhin
b6f1dd963d
Handle Shift-Insert correctly in prompt mode.
...
Fixes #1299 .
2016-02-10 06:40:54 +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
e5e1a0d95c
Reject hints -> chars containing duplicate chars
...
Fixes #1286 .
2016-02-03 21:05:35 +01:00
Florian Bruhin
0b491f6caf
Use json.dumps for logged fake clipboard.
...
For some reason, when comparing the repr in the two processes, we get different
results on OS X and Windows:
- expected: "fünf"
- "f\xfcnf" coming back from the subprocess on OS X
- "fnf" on Windows
Instead we're comparing the json dump now, which should be more predictable.
2016-02-03 20:54:35 +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
Jimmy
42160335dc
Improve performance when scrolling with many tabs.
...
Closes #1278 .
2016-02-02 07:33:07 +01:00
Florian Bruhin
ad290e8702
Merge branch 'relax-editor-templating' of https://github.com/Olical/qutebrowser into Olical-relax-editor-templating
2016-02-02 06:49:57 +01:00
Florian Bruhin
7e584bb31d
Merge branch 'master' of https://github.com/XRevan86/qutebrowser into XRevan86-master
2016-02-02 06:41:29 +01:00
Florian Bruhin
312daca2b0
fuzzy_url: Raise InvalidUrlError on empty URLs.
...
Before we raised QtValueError (via qtutils.ensure_valid), but maybe there are
more callers out there which call fuzzy_url with an empty input - and it makes
more sense to raise InvalidUrlError which gets displayed to the user than
raising QtValueError which is more like an assertion.
2016-02-02 06:38:48 +01:00
Florian Bruhin
14042403f6
Fix pasting of empty URLs.
2016-02-02 06:37:49 +01:00
Sorokin Alexei
04afcef239
Use system icon for windows if available
2016-02-02 00:48:07 +03:00
Oliver Caldwell
a14f8a201e
Merge remote-tracking branch 'TheCompiler/master' into relax-editor-templating
2016-02-01 21:19:50 +00:00
Florian Bruhin
7be296333a
Merge branch 'pdfjs' of https://github.com/Kingdread/qutebrowser into Kingdread-pdfjs
2016-02-01 20:07:56 +01:00
Florian Bruhin
7a268a41f6
pylint: Don't require docstring for main() funcs.
2016-02-01 20:06: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
Oliver Caldwell
4cd7d193f1
Simplify arg placeholder replacement
2016-01-31 22:56:11 +00:00
Oliver Caldwell
54ff2aa46c
Merge remote-tracking branch 'TheCompiler/master' into relax-editor-templating
2016-01-31 22:43:58 +00: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
Oliver Caldwell
e9128ebb2a
Relax editor templating
...
I tried to set my editor to `termite -e "vim -f {}"`, termite being a
pretty cool and light terminal I use within my i3wm Arch linux box.
So when I open my editor I want it to launch a terminal with Vim inside
instead of GVim for various reasons.
The validation rejected this at first because it was looking for '{}'
inside ['foo', 'bar', 'baz {}'], essentially. So I need it to look
inside the sub-strings, not just the list.
Then after validation I need to perform the '{}' replacement inside the
sub-string too, not just replacing the whole string.
2016-01-26 09:18:43 +00:00
Florian Bruhin
785e2052f6
Ignore 'Method "GetAll"' Qt warning with escapes.
...
For some reason, since some time this message appears with those escapes in it.
2016-01-24 19:13:11 +01:00
Florian Bruhin
7dca8d7329
Fix lint.
2016-01-24 17:30:59 +01:00
Florian Bruhin
86f03c7d81
Merge branch 'master' of https://github.com/mikeri/qutebrowser into mikeri-master
2016-01-24 17:01:35 +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
Tomasz Kramkowski
6894033f8d
lineparser: Add clear() method.
...
The lineparser clear method, implemented for all lineparser subclasses,
clears the underlying file and also empties any lineparser data
structures.
2016-01-23 22:35:19 +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
Florian Bruhin
f74d1f26c7
flake8: Add flake8-string-format plugin.
...
string format checker, plugin for flake8
https://pypi.python.org/pypi/flake8-string-format/
2016-01-22 19:00:29 +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
8bdb1b6b14
flake8: Add flake8-copyright plugin.
...
Adds copyright checks to flake8
https://pypi.python.org/pypi/flake8-copyright/
2016-01-22 17:46:33 +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
Florian Bruhin
7e3507aba1
flake8: Add flake8-debugger plugin.
...
flake8 debug statement checker
https://github.com/JBKahn/flake8-debugger
2016-01-22 17:33:58 +01:00
Florian Bruhin
289891a828
flake8: Check W503 (line break before binary op)
2016-01-22 17:33:58 +01:00
Florian Bruhin
526441bcae
Fix new flake8 lint.
...
For some reason these issues weren't shown with pytest-pep8/flakes.
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
Michael Ilsaas
4ad2d63c8a
Shortened urlincdec tests to one and some styling
2016-01-21 18:37:46 +01:00
Florian Bruhin
3c625790cc
Don't crash if JS tab is closed twice.
...
Fixes #906 .
2016-01-20 21:24:51 +01:00
Florian Bruhin
fc3c928326
Merge branch 'autocompletion_enhancement' of https://github.com/tex/qutebrowser into tex-autocompletion_enhancement
2016-01-20 20:04:53 +01:00
Michael Ilsaas
c33e9555a1
Tester for url increment/decrement with zeroes
2016-01-20 19:38:03 +01:00
Florian Bruhin
c02183652f
Fix starting with -c "" and add test.
...
Fixes #1169 .
2016-01-20 18:20:19 +01:00
Michael Ilsaas
d6cda0ed27
Include leading zeroes in URL increment/decrement
2016-01-19 21:37:49 +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
Florian Bruhin
eb276df876
Handle empty term in urlutils._get_search_url.
...
Fixes #1239 .
2016-01-19 07:03:43 +01:00
Florian Bruhin
041aa61508
Make :restart work with --temp-basedir.
...
Fixes #1244 .
2016-01-19 06:51:36 +01:00
Florian Bruhin
8a757c8603
Release v0.5.1.
2016-01-18 22:12:52 +01:00
Felix Van der Jeugt
7ad871fab1
Merge remote-tracking branch 'source/master'
2016-01-18 21:45:47 +01:00
Florian Bruhin
c8538bdbb8
Fix config validation for String types.
...
Fixes #1231 .
2016-01-18 07:29:15 +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
Florian Bruhin
df03099468
Fix completion for String config type.
...
Since 2a705e2eb6
non-specialized config types are
String. However, String had an overloaded complete() which defaulted to
returning None.
Now we use the normal complete() which relies on valid_values if completions
isn't given instead.
Fixes #1223 .
2016-01-12 18:53:53 +01:00
Tarcisio Fedrizzi
4bbc1e2d8a
Changes line as suggested in review
2016-01-12 09:58:08 +01:00
Tarcisio Fedrizzi
b2c7ab9211
Fixes: forgot to rename removed variable instances
2016-01-09 12:49:56 +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
Tarcisio Fedrizzi
6327d0fe36
Strip url before trying to open it as a path
2016-01-09 11:26:17 +01:00
Florian Bruhin
364d069e74
Stop IPC timeout timer while executing command.
...
This hopefully helps with #1183 .
2016-01-08 13:48:19 +01:00
Florian Bruhin
d84b15d35c
ipc: Add missing 0x prefix for logged socket IDs.
2016-01-08 13:09:49 +01:00
Florian Bruhin
ff2024a565
Add socket IDs to ipc debug messages.
2016-01-08 12:02:36 +01:00
Milan Svoboda
20cdb45da5
use greedy highlighting
2016-01-06 21:52:56 +01:00
Florian Bruhin
3f15186a64
Add some coverage pragmas for caret workarounds.
2016-01-06 17:52:44 +01:00
Florian Bruhin
9720d879ad
Remove dead code.
2016-01-06 17:52:11 +01:00
Milan Svoboda
ec8dc35a68
rename patternre, use ignorecase in re instead of casefold
2016-01-06 07:38:55 +01:00
Florian Bruhin
c7edb8e1f2
Make QApplication available to :debug-pyeval.
2016-01-06 07:14:49 +01:00
Florian Bruhin
05281a7d1f
Add a --quiet argument to :debug-pyeval.
...
Closes #1156 .
2016-01-06 06:19:37 +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
8bd4d3d24a
Release v0.5.0
2016-01-05 19:30:50 +01:00
Florian Bruhin
88d28e690e
Add pdf.js version to qute:version.
2016-01-05 18:47:50 +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
129990857a
Point out crash reports are currently public.
...
See #481 .
2016-01-05 07:07:45 +01:00
Florian Bruhin
7001f068b3
Restart correctly after reporting crash.
...
Fixes #1128 .
2016-01-05 07:02:20 +01:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Florian Bruhin
c1d3a94936
Don't pass through shifted characters.
...
See #1207 - turns out that was a problem for *any* character.
2016-01-04 07:10:23 +01:00
Milan Svoboda
382f7c6bf1
fix lint
2015-12-30 16:15:17 +01:00
Milan Svoboda
ed032ea107
fix lint
2015-12-30 15:54:50 +01:00
Milan Svoboda
4caffccca6
fix lint, highlight properly
2015-12-30 15:32:40 +01:00
Florian Bruhin
abfe894027
Remove now useless pylint suppression.
2015-12-29 14:57:26 +01:00
Milan Svoboda
1f3a8a60d8
escape search string, explicit boolean test
2015-12-26 23:44:03 +01:00
Milan Svoboda
a652688566
fix lint errors
2015-12-26 18:04:01 +01:00
Milan Svoboda
013df51fd2
fix lint errors
2015-12-26 17:44:30 +01:00
Milan Svoboda
f64a3451fa
fix lint errors
2015-12-26 17:15:46 +01:00
Milan Svoboda
8914404d59
allow to narrow down search by adding more words separated with space
2015-12-26 16:27:53 +01:00
Florian Bruhin
12f44d0a5e
tox: Update astroid to 1.4.2 and pylint to 1.5.2.
2015-12-21 09:17:26 +01:00
Florian Bruhin
8fdbd94d71
userscripts: Remove on_proc_error.
...
When there was an error, the finished signal will be emitted too anyways, so if
we call cleanup here, we'll call it twice which means we'll get an exception.
Supersedes #1175 .
2015-12-21 08:45:46 +01:00
Florian Bruhin
59c8e5c3d1
Add some tests for commands.userscripts.
2015-12-21 08:45:46 +01:00
Florian Bruhin
b8727d338f
Fix DummyUserscriptRunner.
2015-12-20 20:04:00 +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
3a13e46c25
disable pdfjs by default
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
Florian Bruhin
ffc76b2a5c
Fix spelling.
2015-12-20 17:39:36 +01:00
Florian Bruhin
6b89eb43a2
Allow any non-space char in search engine names.
...
Closes #1189 .
2015-12-20 17:22:54 +01:00
Florian Bruhin
5c769d8000
Report stdout/stderr of failed subprocesses.
2015-12-18 21:23:33 +01:00
Florian Bruhin
f787f004af
Fix _BaseUserscriptRunner when env is None.
2015-12-18 20:23:39 +01:00
Florian Bruhin
430b133c41
userscripts: Add docs for _QtFIFOReader attributes.
2015-12-13 13:11:06 +01:00
Florian Bruhin
494d48aac1
userscripts: Make fifo private in _QtFIFOReader.
2015-12-12 00:33:50 +01:00
Florian Bruhin
3a2d031479
userscripts: Move closing of fifo to _QtFIFOReader.
2015-12-12 00:33:25 +01:00
Florian Bruhin
24607fda8b
Mark tabs -> auto-hide as removed as well.
...
tabs -> hide-auto was removed in d8017a04a8
because it was easier to do so compared to transforming it correctly when tabs
-> show was introduced. However, tabs -> auto-hide (the even older version)
wasn't removed, breaking config migration from earlier versions.
Fixes #1171 .
2015-12-11 08:50:26 +01:00
Florian Bruhin
10dd1b50b9
Split ConfigManager.read from constructor.
2015-12-11 08:50:26 +01:00
dylan araps
1bc8d10ac7
Added config option to change tab title alignment
2015-12-07 19:43:43 +11:00
Florian Bruhin
c319b524bf
Merge branch 'master' of https://github.com/jcorentin/qutebrowser into jcorentin-master
2015-12-04 18:32:46 +01:00
Corentin Jule
d8d873f044
Fix typo for Pep257
2015-12-04 00:28:58 +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
Corentin Jule
1941af8add
Fix TypeError on ConfigManager.remove_option
2015-12-03 20:48:50 +01:00
Florian Bruhin
7df01440a3
pylint: Remove unsubscriptable-object workaround.
...
https://bitbucket.org/logilab/pylint/issues/685/ was fixed in pylint 1.5.1.
2015-12-02 17:55: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
ad72b26b1a
Add comment why abstract-method is ignored.
2015-12-01 22:16:23 +01:00
Florian Bruhin
150a83d8f4
pylint: Remove unneeded supressions.
2015-12-01 22:03:58 +01:00
Florian Bruhin
a156d51844
Don't use for-else when returning.
2015-12-01 21:56:38 +01:00
Florian Bruhin
31265b80b6
pylint: Add WORKAROUND to some comments.
2015-12-01 21:56:38 +01:00
Tomasz Kramkowski
c575435782
misc/editor: Fix tempfile deleted on error / editor crash
...
This patch attempts to fix an issue where an error occuring in
misc/guiprocess or the editor process crashing would delete the
temporary file thus making it impossible to recover changes not commited
to the form field from the editor.
2015-12-01 20:22:05 +00: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
Florian Bruhin
6f9b02741a
Switch from map() to list comprehensions.
2015-12-01 07:16:32 +01:00
Artur Shaik
d00f999dcf
move_to_end_of_prev_block
without unnecessary command.
2015-11-30 22:27:24 +06:00
Florian Bruhin
5f13fd2ece
Merge branch 'log-javascript-console' of https://github.com/flv0/qutebrowser into flv0-log-javascript-console
2015-11-30 08:08:31 +01:00
Florian Bruhin
f93785a0be
Merge branch 'conf-remove-special' of https://github.com/flv0/qutebrowser into flv0-conf-remove-special
2015-11-30 07:42:04 +01:00
Florian Bruhin
6e392f0f09
Add workarounds for pylint/astroid update.
2015-11-30 07:16:12 +01:00
Florian Bruhin
27d0c004e2
Don't reuse variable in compact_text.
2015-11-30 07:10:39 +01:00
Florian Bruhin
288bf1524e
Fix some unidiomatic comparisons.
2015-11-30 07:10:21 +01:00
Florian Bruhin
e227712e21
Don't reuse DocstringParser attribute.
2015-11-30 07:09:40 +01:00
Florian Bruhin
7e6be517e3
Simplify indicator_width code.
2015-11-30 07:09:02 +01:00
Florian Bruhin
307fe6b109
Avoid shadowing 'model'.
2015-11-30 07:03:49 +01:00
Florian Bruhin
a4f47150b4
Simplify unneeded if.
2015-11-30 07:00:51 +01:00
Patric Schmitz
a8b808819a
update log-javascript-console option documentation
2015-11-29 19:24:09 +01:00
Patric Schmitz
b9aa40ea74
remove config types special variable
2015-11-29 18:53:37 +01: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
6a46aea934
Fix tests for basedir logging.
...
f5febc4
broke various tests which called standarddir.init() without a valid
basedir.
2015-11-29 00:35:18 +01:00
Florian Bruhin
f5febc4807
Log basedir and save it in QuteProcess for tests.
2015-11-28 23:35:32 +01:00
Florian Bruhin
e26c499bd6
lineparser: Log after saving is done.
...
This will make end to end tests easier as we can easily wait until saving is
done.
2015-11-28 23:35:04 +01:00
Florian Bruhin
c236e70920
Merge branch 'log-javascript-console' of https://github.com/flv0/qutebrowser into flv0-log-javascript-console
2015-11-28 21:12:25 +01:00
Florian Bruhin
8cf6ace0e7
Ignore deleted windows when saving session.
...
This hopefully helps with a crash on Windows which happens from time to time
during some multi-window tabs.feature tests:
Traceback (most recent call last):
File "...\mainwindow\mainwindow.py", line 446, in closeEvent
self._do_close()
File "...\mainwindow\mainwindow.py", line 405, in _do_close
objreg.get('session-manager').save_last_window_session()
File "...\misc\sessions.py", line 247, in save_last_window_session
self._last_window_session = self._save_all()
File "...\misc\sessions.py", line 183, in _save_all
win_data['geometry'] = bytes(main_window.saveGeometry())
RuntimeError: wrapped C/C++ object of type MainWindow has been deleted
2015-11-28 20:30:41 +01:00
Patric Schmitz
03ba38578e
set valid_values after __init__ consistently, move type validation out of class into pytest
2015-11-28 18:29:51 +01:00
Patric Schmitz
fdde05569c
remove redundant __init__ and rely on base class
2015-11-28 18:29:51 +01:00
Patric Schmitz
c322130dc0
style changes
2015-11-28 18:29:51 +01:00
Patric Schmitz
6f65397dfe
always set valid_values in __init__ instead of class scope variable
2015-11-28 18:29:51 +01:00
Patric Schmitz
9b453aaad5
revert config transformation
2015-11-28 18:29:51 +01:00
Patric Schmitz
9aaf5c18c1
set valid_values in __init__ methods, except for BaseType s.t. variable is shared across derived class scopes
2015-11-28 18:29:51 +01:00
Patric Schmitz
55edd9cda7
add valid_values = None to config basetype
2015-11-28 18:29:51 +01:00
Patric Schmitz
2867df4c21
revert log-javascript-console changes
2015-11-28 18:29:51 +01:00
Patric Schmitz
6431542eba
fixes to config types, remove unneeded derived __init__ and call base __init__
2015-11-28 18:29:51 +01:00
Patric Schmitz
2a705e2eb6
Make non-specialized config types String. Closes #1103
2015-11-28 18:29:51 +01:00
Patric Schmitz
75f9f2af8d
get rid of redundant option description
2015-11-28 18:29:51 +01:00
Patric Schmitz
ff6d3e05a6
log-javascript-console now String option: none, debug, info
...
Make BaseType.valid_values per-instance variable
2015-11-28 18:29:51 +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
951c2e8eb6
Fix qflags_key comparison.
2015-11-25 18:54:03 +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
8faf4717e5
Make :debug-console toggle the console.
2015-11-24 18:32:18 +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
e405492667
Ignore errors when removing temp basedir.
2015-11-24 17:50:39 +01:00
Florian Bruhin
3905884a84
Disable all QWebSettings storage when quitting.
...
This hopefully helps with issues on the Windows buildbot:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "C:\Users\florian\buildbot\slave\win8\build\.tox\py34\lib\shutil.py", line 371, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\florian\\AppData\\Local\\Temp\\qutebrowser-basedir-ixuexfeu\\data\\local-storage\\qrc__0.localstorage'
2015-11-24 17:24:14 +01:00
Florian Bruhin
43d7b139e8
Ignore another libpng warning.
...
This happened here:
https://ci.appveyor.com/project/The-Compiler/qutebrowser/build/master-1536/job/k8es4nh719cc27hf
2015-11-24 16:59:35 +01:00
Florian Bruhin
922fdc0526
Fix :fake-key with no focused webview.
2015-11-24 16:28:56 +01:00
Florian Bruhin
75178b0cdc
Log when the focus object changed.
...
This is mainly needed for tests to synchronize things properly.
2015-11-24 15:24:45 +01:00
Florian Bruhin
c73de6ea4d
Change "Added binding ..." logs to vdebug.
2015-11-23 21:41:31 +01:00
Florian Bruhin
b0d4ebe844
Don't log VDEBUG messages with --debug.
...
This reduces the log spam quite a bit, which also makes things easier when
dealing with CI output.
2015-11-23 21:40:11 +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
ee0627128a
Merge branch 'argparse-usage' of https://github.com/forkbong/qutebrowser into forkbong-argparse-usage
2015-11-23 11:20:49 +01:00
Florian Bruhin
ea06c64ed4
Fix typos.
2015-11-23 11:17:26 +01:00
Panagiotis Ktistakis
f3f0ef9841
Remove unnecessary 'usage:' from argument parser.
2015-11-23 01:10:35 +02: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
Florian Bruhin
2727f3c2a8
Hide QObject::connect stateChanged warning.
2015-11-20 22:01:21 +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
Florian Bruhin
1ec03462c8
Add a utils.parse_keystring.
2015-11-20 07:06:16 +01:00
xd1le
b9163c5079
doc: Document <unbound> in keys.conf.
...
Closes #1117 .
2015-11-20 00:55:33 +11:00
Florian Bruhin
271cb47f87
Merge branch 'netrc' of https://github.com/Konubinix/qutebrowser into Konubinix-netrc
2015-11-18 20:38:57 +01:00
Florian Bruhin
c7f386cec0
Avoid logging in signal handlers.
...
If we don't do that, we can get this:
--- Logging error ---
Traceback (most recent call last):
File ".../python3.5/logging/__init__.py", line 984, in emit
self.flush()
File ".../python3.5/logging/__init__.py", line 964, in flush
self.stream.flush()
RuntimeError: reentrant call inside <_io.BufferedWriter name='<stderr>'>
Call stack:
[...]
File ".../qutebrowser/app.py", line 122, in qt_mainloop
return qApp.exec_()
File ".../qutebrowser/utils/objreg.py", line 118, in on_destroyed
log.destroy.debug("schedule removal: {}".format(name))
File ".../python3.5/logging/__init__.py", line 1267, in debug
self._log(DEBUG, msg, args, **kwargs)
File ".../python3.5/logging/__init__.py", line 1415, in _log
self.handle(record)
File ".../python3.5/logging/__init__.py", line 1425, in handle
self.callHandlers(record)
File ".../python3.5/logging/__init__.py", line 1487, in callHandlers
hdlr.handle(record)
File ".../python3.5/logging/__init__.py", line 855, in handle
self.emit(record)
File ".../python3.5/logging/__init__.py", line 984, in emit
self.flush()
File ".../python3.5/logging/__init__.py", line 964, in flush
self.stream.flush()
File ".../qutebrowser/misc/crashsignal.py", line 365, in interrupt
log.destroy.info("Do the same again to forcefully quit.")
Message: 'Do the same again to forcefully quit.'
Arguments: ()
2015-11-18 20:21:23 +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
f20ffca540
Merge branch 'issue923' of https://github.com/lamarpavel/qutebrowser into lamarpavel-issue923
2015-11-17 19:43:35 +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
bbaab24ce8
Fix lint.
2015-11-16 20:24:27 +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
eeab4d41ba
Make it possible to pass a count via command name.
...
This is only used for tests so far and not intended for general usage (and thus
undocumented).
2015-11-15 19:55:01 +01:00
Florian Bruhin
7de206e350
Fix :scroll-perc 0/100 0.
2015-11-15 16:38:56 +01:00
Lamar Pavel
46d335cdee
Update list of user agents with new script.
2015-11-14 16:06:45 +01:00
Lamar Pavel
d745819715
Improve script to print entries grouped by browser
...
The ua_fetch.py has been re-written entirely to find specific entries for
each browser based on diversity rather than sole popularity. The output
is now formatted to print the entries for each browser grouped together.
2015-11-14 15:57:24 +01:00
Florian Bruhin
1da7996c3b
Style fixes.
2015-11-13 22:27:41 +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
d99f9a3a20
Improve :set error messages.
2015-11-10 22:09:36 +01:00
Florian Bruhin
54e2cea460
Fix some corner cases with :set.
2015-11-10 21:27:42 +01:00
Florian Bruhin
7701bf602a
Add --append argument to :set-cmd-text.
2015-11-10 19:21:54 +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
Florian Bruhin
374b448e51
Get rid of unnecessary file.readline() calls.
2015-11-10 18:44:42 +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
6579866abe
Quote weird Qt functions for logging.
2015-11-09 19:55:05 +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
3a2bb2d348
Add cssutils to README and utils/version.py
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
a092ef1fe6
String quote style changes
...
"" for user facing strings
'' for internal strings
except when quotes appear inside a string, to avoid escaping them
2015-11-09 16:59:16 +01:00
Daniel
366916a8bf
Use more specific selectors to filter webelements
2015-11-09 16:59:16 +01:00
Daniel
bf90c8c06b
Add tests for mhtml
...
This also makes the output of MHTMLWriter deterministic, by
1) Setting the boundary at object creation, allowing uuid.uuid4 to be
monkey patched
2) Outputting the files in sorted order (sorted by location), as python
dicts are unordered by default.
2015-11-09 16:59:16 +01:00
Daniel
5fcbc839bb
Allow many spaces and tabs after @import in CSS
2015-11-09 16:59:16 +01:00
Daniel
afa2f339e6
mhtm: use downloads logger instead of misc
2015-11-09 16:59:16 +01:00
Daniel
cb477a2623
Decode headers with ISO-8859-1 instead of ASCII
2015-11-09 16:59:16 +01:00
Daniel
a63aed5965
Use email.encoders instead of own encoder function
2015-11-09 16:59:16 +01:00
Daniel
ba81332d45
_get_css_imports now works on strings only
...
This also means that it returns strings, making the calls to .decode
unneeded.
2015-11-09 16:59:16 +01:00
Daniel
d3a21927f2
Remove default values in MHTMLWriter.__init__
2015-11-09 16:59:16 +01:00
Daniel
e5bfb9884b
Use WebElementWrapper instead of QWebElement
...
* also don't derive from object
* also set the _used flag on _Downloader
2015-11-09 16:59:16 +01:00
Daniel
a3cc71e317
Don't from-import functions/classes
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
f58f6f24ee
Use email.mime instead of manually writing the msg
2015-11-09 16:59:16 +01:00
Daniel
64c74bde90
Fix pylint for _NoCloseBytesIO
2015-11-09 16:59:16 +01:00
Daniel
05cc4b9650
Change boundary
...
This version contains a sequence that is illegal in quoted-printable
and thus safe from accidentally appearing in a website.
2015-11-09 16:59:16 +01:00
Daniel
8eafa1a105
Also scan CSS in <style> tags and inline CSS
...
As both may contain external links too (@import, url(...))
2015-11-09 16:59:16 +01:00
Daniel
02c1fa1232
Save mhtml if no assets need to be downloaded
2015-11-09 16:59:16 +01:00
Daniel
991b6d4fc9
Remove urljoin import
2015-11-09 16:59:16 +01:00
Daniel
5c6b715720
Use QUrl.resolved instead of urlparse.urljoin
2015-11-09 16:59:16 +01:00
Daniel
11ed60620a
Also load assets referenced in css files
...
Things like "@import stylesheet.css" and "url(...)".
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
679ab65b5f
Message on finished download
2015-11-09 16:59:16 +01:00
Daniel
fd7820ea16
occurs -> occurred
2015-11-09 16:59:16 +01:00
Daniel
111feebf89
Refactor start_download to a class
2015-11-09 16:59:16 +01:00
Daniel
49a32f0041
First round of lint fixes
2015-11-09 16:59:16 +01:00
Daniel
024ae52366
Replaced quote-printable with own function
...
The original one had some inconsistencies that lead to bugs.
The content-type of the root document now also contains the charset.
2015-11-09 16:59:16 +01:00
Daniel
930871be01
First working version
...
The files can be opened with qutebrowser
Problems still with Umlauts in the encoded file.
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
3fcc27636a
Improve documentation for general -> editor.
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
Florian Bruhin
702842c977
configtypes: Handle max. recursion depth for Regex.
2015-11-04 07:02:23 +01:00
Panagiotis Ktistakis
782f09488a
Deprecate :download-remove --all.
...
:download-clear should be used instead.
2015-11-04 01:06:39 +02:00
Panagiotis Ktistakis
dc06787f83
Make key config migration for clearing downloads.
2015-11-04 01:01:27 +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
d9af27670b
Transform remove-finished-downloads=true to 1s.
...
2s seems rather long.
2015-11-02 17:58:08 +01:00
Florian Bruhin
0fb2778e4b
Merge branch 'master' of https://github.com/skinnay/qutebrowser into skinnay-master
2015-11-02 17:55:40 +01:00
Florian Bruhin
0d67cff5cb
Merge branch 'bdd'
...
Conflicts:
tests/test_conftest.py
tox.ini
2015-11-02 06:36:30 +01:00
Florian Bruhin
4451165a27
Change IPC warnings to debug.
...
This seems to show up on Ubuntu Trusty (with older Qt) as well...
2015-11-01 23:11:42 +01:00
Florian Bruhin
e88e9a66da
Fix deleting of --temp-basedir on Windows.
...
Before it couldn't get deleted because Qt still kept the icon database open in
some way.
By clearing it when shutting down, this works correctly.
Fixes #1017 .
2015-11-01 22:47:58 +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
skinnay
11e5774f46
Changed _get_value_transformer function to take a dictionary mapping old
...
values to new values as input.
Added entry for changing remove-finished-downloads setting to new int
value.
2015-10-30 19:37:43 -04: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
Jonas Schürmann
a4aacde88f
Undo: Fix issues with url comparison
2015-10-29 09:36:42 +01:00
Jonas Schürmann
618d9ceabf
Fix PEP 257 violation
2015-10-29 00:52:44 +01:00
Jonas Schürmann
ebe9835e5a
Remove unused tab on undo
2015-10-29 00:22:54 +01:00
Jonas Schürmann
fe32b349a5
Use duckduckgo.com instead of www.duckduckgo.com
2015-10-27 20:31:10 +01: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
Florian Bruhin
66b337c2b1
Add missing superclass init calls.
2015-10-26 21:07:08 +01:00
Florian Bruhin
68024ba6bd
Merge branch 'flexible-hint-filtering' of https://github.com/jcpetkovich/qutebrowser into jcpetkovich-flexible-hint-filtering
2015-10-26 06:59:56 +01:00
Florian Bruhin
883febe243
Return a QColor for qtutils.interpolate_color.
...
This broke the tests for older PyQt versions because the test had a
test_utils.Color(test_utils.Color(...)) object (double-wrapped), and the
comparisons failed there for some reason.
2015-10-26 06:45:36 +01:00
Florian Bruhin
34cc2870f4
Fix indents in configdata.py.
2015-10-26 06:23:07 +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
Florian Bruhin
9b3987febb
Add some completions for hints -> chars.
2015-10-25 21:22:19 +01:00
Florian Bruhin
bb5e5137cd
configtypes: Allow completions for String.
2015-10-25 21:18:06 +01:00
Florian Bruhin
f614e5b98a
Add none value for colors -> tabs.indicator.system.
2015-10-24 16:01:32 +02:00
Daniel
7a413ad6d5
Remove unneeded functions from TabBar.
...
addTab() and insertTab() are not called and if they were called would
raise an exception (self.set_page_title not defined).
2015-10-23 19:52:56 +02:00
Daniel
8d88dd9d75
Fix crash with small icons
...
Fixes #1015
2015-10-23 19:52:56 +02:00
Lamar Pavel
da800e3fa7
Don't setMaximumCacheSize if there is no cache
2015-10-21 22:31:46 +02:00
Daniel
ef8a681fcc
Add TimestampTemplate config type
...
No more crash when 'completion->timestamp-format' is set to '%'.
Fixes #1039 .
2015-10-21 17:23:39 +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
Lamar Pavel
45f9e61815
Fix pylint error (line too long)
2015-10-20 18:17:12 +02:00
Lamar Pavel
7703fa217b
Add some UAs manually for diversity
...
The automatically fetched list includes popular user-agents but does not
guarantee any kind of diversity, so there are now a few statically
printed UAs from mobile browsers.
2015-10-20 17:28:22 +02:00
Lamar Pavel
6ebb37aa17
Update UA list and add script to fetch UAs
...
The script is based on a gist posted by @averrin and has been modified
to print the output according to the format expected by qutebrowser,
ready to be pasted into configtypes.py.
2015-10-20 02:52:11 +02:00
Florian Bruhin
9f11990efc
Rename scrollbar.padding/scrollbar.width.
2015-10-19 05:15:52 +02:00
Nathan Isom
d326cc050e
correct style string, file modeline.
2015-10-18 14:11:22 -05:00
Nathan Isom
ec3cafc293
resolve merge conflicts and merge branch scrollbar.
2015-10-18 11:42:56 -05:00
Florian Bruhin
82dfec6a18
Merge branch 'templatemagic' of https://github.com/neeasade/qutebrowser into neeasade-templatemagic
2015-10-18 18:20:41 +02:00
Nathan Isom
9b5c0075b9
Move min-height to correctly fix bug, edit colors to match https://github.com/The-Compiler/qutebrowser/pull/1021 .
2015-10-17 19:31:47 -05: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
2398762e85
Fix tests
2015-10-17 18:29:13 +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
b18549bbed
Remove fontdict wrapper
2015-10-16 11:42:46 -05:00
Florian Bruhin
0400945ac4
Raise exception when a stylesheet is unparsable.
2015-10-16 18:26:34 +02:00
Nathan Isom
869e2d9127
missed one.
2015-10-16 11:18:25 -05:00
Nathan Isom
09b18fbc68
edit colordict to match.
2015-10-16 10:55:17 -05:00
Nathan Isom
2a11adc8ac
initial replace pass.
2015-10-16 10:52:02 -05:00
Nathan Isom
27db1ad891
fix scrollbar not showing up error, change test_get_stylesheet a bit.
2015-10-16 09:56:31 -05:00
Florian Bruhin
743c3b1e26
Fix broken UrlType member.
2015-10-16 06:53:07 +02:00
Nathan Isom
57d8ebfb83
not hardcode width/padding values.
2015-10-15 14:06:16 -05:00
Nathan Isom
19c27a04e5
Add completion scrollbar settings.
2015-10-15 13:18:32 -05:00
Nathan Isom
0e186487f5
Revert "Don't pass config to stylesheets."
...
This reverts commit dc0e8b4626
.
2015-10-15 12:36:24 -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
meles5
326757917c
Fixed windows support (Windows test couldn't work)
2015-10-15 17:39:31 +02:00
Nathan Isom
6843e9c413
typo in configdata.py.
2015-10-14 13:37:24 -05: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
ab099ea6ea
Fix another spelling mistake.
2015-10-14 07:02:50 +02:00
Antoni Boucher
1acd32f697
Fixed issue #1008 .
2015-10-10 11:16:06 -04: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
Peter Michely
10f4798559
Fixed whitespace errors
2015-10-08 01:10:44 +02:00
Peter Michely
6be5c65c36
Fixed issue #943 and changed the docs accordingly
2015-10-07 23:53:21 +02:00
Florian Bruhin
c2ea2aa6d7
Remove unused import.
2015-10-07 22:05:22 +02:00
Florian Bruhin
7db1f65425
ipc: Avoid using QLocalServer.setSocketOptions.
...
This causes problems with AddressInUseError being swallowed.
Fixes #997 .
2015-10-07 21:52:09 +02:00
Jonas Schürmann
1e8170d98b
Fixed lines which were too long
2015-10-06 23:18:04 +02:00
Jonas Schürmann
afc166a13e
Coding style fixes #1002
2015-10-06 22:59:49 +02:00
Jonas Schürmann
45c9768c16
Added --target command line argument #922
...
This argument is used to override the new-instance-open-target config
option.
2015-10-05 21:15:52 +02:00
Florian Bruhin
54557fee20
Fix lint.
2015-10-05 06:53:56 +02:00
Florian Bruhin
17778f1457
Prevent :restart when there's a SyntaxError.
...
Closes #910 .
2015-10-04 23:24:35 +02:00
Florian Bruhin
b6f3b1951e
Remove more dead code.
2015-10-04 22:21:49 +02:00
Florian Bruhin
03754b360a
Release v0.4.1.
2015-10-04 21:14:45 +02:00
Florian Bruhin
005753e83e
Remove some dead code.
...
See #973 .
2015-10-04 20:43:29 +02:00
Florian Bruhin
12a11a5931
Revert "Remove colors -> tabs.bg.bar setting."
...
This reverts commit 801d2ae8e6
.
This is still useful/needed for vertical tab bars.
2015-10-04 17:49:52 +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
801d2ae8e6
Remove colors -> tabs.bg.bar setting.
...
This isn't needed anymore after the recent tab width fix, as the tabbar color
is invisible now.
2015-10-04 16:32:45 +02:00
Florian Bruhin
fbf6696e2a
Merge branch 'master' of https://github.com/daniel-lawrence-lu/qutebrowser into daniel-lawrence-lu-master
2015-10-04 16:30:17 +02:00
Florian Bruhin
d229e90724
Fix some splelling mistakes.
2015-10-04 15:41:42 +02:00
Daniel Lu
de5308cbbf
removes leftover space in tab bar when the window width is not divisible by the number of tabs
2015-10-02 23:24:44 -04:00
Florian Bruhin
739d2cfffd
Fix displaying of web history if limited to -1.
...
This is a regression introduced in 2aa7e5bb35
.
Fixes #991 .
2015-10-02 22:56:18 +02:00
Daniel
73ba3ddaee
Add all possible combinations to FlagList.complete
2015-10-02 18:53:03 +02:00
Florian Bruhin
7761dd5af4
configtypes: Disallow ValidValues without values.
2015-10-02 11:37:41 +02:00
Florian Bruhin
b42b12b7a5
Fix ipc.py coverage.
2015-10-02 08:17:50 +02:00
Florian Bruhin
454b2348a8
ipc: Actually use CONNECT_TIMEOUT.
2015-10-02 08:11:37 +02:00
Florian Bruhin
ea663f9975
IPC: Handle socket timeout correctly.
...
Hopefully fixes #975 .
2015-10-02 08:11:26 +02:00
Florian Bruhin
afa7a1a9a0
Remove broken margin-left for progress bar.
...
Closes #125 (by obsoleting it).
2015-10-02 08:03:10 +02:00
Florian Bruhin
d6301beb2a
Improve configtypes.Regex tests and docs.
2015-10-01 23:24:27 +02:00
Florian Bruhin
16ac3baf2e
configtypes: Handle invalid escapes in regexes.
2015-10-01 23:11:48 +02:00
Florian Bruhin
e4a216e7cf
configtypes: Refactor regex validation.
2015-10-01 22:29:24 +02:00
Florian Bruhin
8e52e5f2fc
Don't use deprecated logging calls.
2015-10-01 21:39:42 +02:00
Daniel
8228a96180
Stylistic changes, more testing for incdec
2015-10-01 20:57:08 +02:00
Alexey Nabrodov
54d4f4f48b
refactor and test
2015-10-01 15:57:11 +03:00
Alexey Nabrodov
ce9aafdc1b
why????
2015-10-01 14:15:32 +03:00
Alexey Nabrodov
be332fe723
init env vars in crash report
2015-10-01 14:11:35 +03: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
Florian Bruhin
ae3497a3a1
Remove unnecessary str().
2015-09-30 21:26:41 +02:00
Florian Bruhin
7fcbbc98f6
Merge branch 'scroll_in_title' of https://github.com/averrin/qutebrowser into averrin-scroll_in_title
2015-09-30 21:16:36 +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
f972d043c5
Fix StopIteration handling in _init_late_modules.
...
This caused a PendingDeprecationWarning with Python 3.5:
Traceback (most recent call last):
File "/home/florian/proj/qutebrowser/git/qutebrowser/utils/debug.py", line 237, in log_time
yield
File "/home/florian/proj/qutebrowser/git/qutebrowser/app.py", line 433, in _init_late_modules
next(reader)
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/florian/proj/qutebrowser/git/qutebrowser/app.py", line 433, in _init_late_modules
next(reader)
File "/usr/lib64/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
PendingDeprecationWarning: generator 'log_time' raised StopIteration
2015-09-30 07:32:36 +02:00
neeasade
2e62d24062
Empty osver for linux, adjust test to match this.
2015-09-29 13:59:22 -05:00
neeasade
b5ec476ca6
Fixes #977 with none deprecated call.
2015-09-29 12:56:49 -05:00
Alexey Nabrodov
75d53e2879
and again
2015-09-29 12:19:47 +03:00
Alexey Nabrodov
a98878dd8a
fix unused coords
2015-09-29 12:07:35 +03: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
Florian Bruhin
5db4ed0ed1
Add fallback argument to ConfigManager.get.
...
This is needed for interpolation since this change in Python 3.4:
https://hg.python.org/cpython/rev/267422f7c927
This broke qutebrowser in Debian experimental when updating python from
3.4.3-8 to 3.4.3-9 as they pulled from hg.
Fixes #968 .
2015-09-29 08:22:33 +02:00
Alexey Nabrodov
7cd7b43e7a
fix docs
2015-09-28 19:53:55 +03:00
Alexey Nabrodov
1b6860b748
add scroll_pos to window title && fix signals
2015-09-28 19:43:50 +03:00
meles5
d7dd1b3507
Windows support useless
2015-09-25 18:39:15 +02:00
meles5
fc7488645f
The resource_url() function should now support Windows
2015-09-25 18:21:04 +02:00
Alexey Nabrodov
717298e423
add scroll_pos to title-format
2015-09-25 19:14:52 +03:00
meles5
8bcc0e4b92
filescheme.py & dirbrowser.html updated
2015-09-25 14:49:03 +02:00
meles5
70597d574f
Added resource_url() function and used this function in the error page
2015-09-25 14:31:04 +02:00
Florian Bruhin
5ba7b5cf0f
Fix lint.
2015-09-19 22:03:56 +02:00
Florian Bruhin
f96de5a598
Add config for tab colors for odd/even sel. tabs.
2015-09-19 21:45:57 +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
d9bad853e7
Merge branch 'wayland-deco' of ssh://tonks/qutebrowser
2015-09-17 21:00:17 +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
ac27f46170
Add piwik.org to default whitelist.
2015-09-17 06:38:24 +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
731a86ce33
Merge branch 'acogneau-cookies_tests'
2015-09-16 23:01:26 +02:00
Florian Bruhin
7f573616c8
Remove unused import.
2015-09-16 23:01:14 +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
0745de647b
Allow debug.log_time to be used as decorator.
2015-09-16 22:50:19 +02:00
Florian Bruhin
545d82a04d
utils.debug: Allow passing logger to log_time.
2015-09-16 22:38:31 +02:00
Florian Bruhin
503e3ce48d
Merge branch 'patch-2' of https://github.com/averrin/qutebrowser into averrin-patch-2
2015-09-16 22:32:21 +02:00
Florian Bruhin
c451fc3883
Merge branch 'bug/web-history-max-items' of https://github.com/antoyo/qutebrowser into antoyo-bug/web-history-max-items
2015-09-16 22:25:45 +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
Averrin
3904b7de58
Leave passthrough mode when change tab
2015-09-16 16:44:31 +03:00
Florian Bruhin
9561b7b02c
Reset QT_WAYLAND_DISABLE_WINDOWDECORATION.
2015-09-16 10:23:21 +02:00
Florian Bruhin
f83f4a6a1a
Add setting.
2015-09-16 08:52:51 +02:00
Florian Bruhin
08e1d9a304
hardcoded
2015-09-16 08:42:59 +02:00
Florian Bruhin
9ab14c0384
Fix IPC coverage.
2015-09-16 07:16:07 +02:00
Florian Bruhin
73cb981ebb
Add some more IPC logging.
2015-09-15 23:05:50 +02:00
Florian Bruhin
ff24ba5437
ipc: Fix atime timer interval.
2015-09-15 22:59:53 +02:00
Florian Bruhin
0bbd410016
standarddir: Fix coverage.
2015-09-15 22:31:37 +02:00
Florian Bruhin
cc052a539f
Add standarddir.download() tests.
2015-09-15 22:31:37 +02:00
Florian Bruhin
04ec9c2624
Get rid of standarddir.temp() again.
2015-09-15 22:31:37 +02:00
Florian Bruhin
3bdfa3001c
ipc: Always use standarddir.runtime().
2015-09-15 22:31:37 +02:00
Florian Bruhin
748496e88d
Refactor standarddir.
...
See #941 .
2015-09-15 22:31:37 +02:00
Antoni Boucher
f0a2128499
Fixed style.
2015-09-12 18:01:04 -04:00
Antoni Boucher
2aa7e5bb35
Fixed issue #934 .
2015-09-12 17:48:36 -04:00
Florian Bruhin
09b0877eab
Revert "Refactor standarddir."
...
This reverts commit 330f3f8f13
.
2015-09-11 21:20:31 +02:00
Florian Bruhin
330f3f8f13
Refactor standarddir.
...
See #941 .
2015-09-11 20:05:13 +02:00
Florian Bruhin
e11fcda240
Release v0.4.0.
2015-09-11 18:47:50 +02:00
Florian Bruhin
5fe420efb5
standarddir: Fix TOCTOU issue when creating paths.
...
Fixes #942 .
2015-09-11 18:21:20 +02:00
Florian Bruhin
c4c06467da
Add missing pyqtSlot decorator.
2015-09-11 08:32:37 +02:00
Florian Bruhin
d15cc07ed3
Log executed command for GUIProcess.
...
See #797 .
2015-09-11 06:24:05 +02:00
Florian Bruhin
087e9a4266
Fix ipc on Windows, take 2.
2015-09-10 08:04:02 +02:00
Florian Bruhin
87ccc31cce
ipc: Add some more tests for _atime_timer.
2015-09-10 08:02:19 +02:00
Florian Bruhin
1dba5b0bbd
ipc: Fix _atime_timer shutdown on Windows.
2015-09-10 07:52:26 +02:00
Florian Bruhin
d2bce5dca9
ipc tests: Try to disconnect _atime_timer.
...
For some reason this fails during teardown on OS X!?
File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/misc/ipc.py", line 357, in update_atime
path = self._server.fullServerName()
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/unittest/mock.py", line 895, in __call__
_mock_self._mock_check_sig(*args, **kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/unittest/mock.py", line 107, in checksig
sig.bind(*args, **kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/inspect.py", line 2652, in bind
return args[0]._bind(args[1:], kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/inspect.py", line 2537, in _bind
param = next(parameters)
File "/Users/buildbot/buildbot/slave/osx/build/.tox/py34/bin/../lib/python3.4/_collections_abc.py", line 512, in __iter__
for key in self._mapping:
File "/Users/buildbot/buildbot/slave/osx/build/.tox/py34/lib/python3.4/collections/__init__.py", line 91, in __iter__
curr = root.next
2015-09-10 07:49:45 +02:00
Florian Bruhin
e6cf76e40c
Fix coverage and lint.
2015-09-10 07:44:45 +02:00
Florian Bruhin
58073fd768
ipc: Update the atime of the socket all 6h.
...
See #888 .
2015-09-10 07:38:11 +02:00
Florian Bruhin
1311e99e7c
Make pep8 shut up.
2015-09-09 23:00:52 +02:00
Florian Bruhin
bcee12853d
Cleanup for ignored log messages.
2015-09-09 22:53:37 +02:00
Florian Bruhin
d217fe09c6
Hide some more lgo messages on OS X.
...
Fixes #931 .
2015-09-09 22:50:43 +02:00
Florian Bruhin
2ca8070e7a
Add workaround for OS X issue.
2015-09-09 20:48:23 +02:00
Florian Bruhin
f7d3070c34
ipc: Fix start when a stale legacy server exists.
2015-09-09 19:39:01 +02:00
Florian Bruhin
b135569d5c
ipc: Add workaround for NameError w/ SocketOptions.
2015-09-09 19:31:52 +02:00
Florian Bruhin
69e735c42e
ipc: Add username to hash instead.
2015-09-09 19:31:52 +02:00
Florian Bruhin
4daa7e6979
Don't add username to FIFO name on Linux.
...
The runtime directory already has a qutebrowser subdir.
2015-09-09 19:31:52 +02:00
Florian Bruhin
3573b57130
Set socket permissions correctly.
2015-09-09 19:31:52 +02:00
Florian Bruhin
78cb0eaf85
More work on #888 (new IPC path).
...
First trying the legacy path and then using the new one works fine now, but the
permissions are still wrong.
2015-09-09 19:31:52 +02:00
Florian Bruhin
74d7997a67
Set application info earlier.
2015-09-09 19:31:52 +02:00
Florian Bruhin
a4bc4ad478
Only log a single message in utils.error.
...
This helps with seeing the full message with logfail.
2015-09-09 19:31:52 +02:00
Florian Bruhin
9d9372c6a8
Add standarddir.temp().
2015-09-09 19:31:52 +02:00
Florian Bruhin
44b1ca5c2f
Fix comment.
2015-09-09 19:31:52 +02:00
Florian Bruhin
d18c33987d
Quick pep8 fix.
...
This is already fixed in the new-ipc-path branch, but let's at least get this
straight in master.
2015-09-09 08:06:56 +02:00
Florian Bruhin
6a0994038e
Start working on #888 (new IPC path).
2015-09-06 19:50:22 +02:00
Florian Bruhin
bfd8faafef
Add a protocol version to IPC.
...
Fixes #909 .
2015-09-06 18:43:24 +02:00
Florian Bruhin
b95fd2c814
Test raw json data for IPC.
2015-09-06 18:06:23 +02:00
Florian Bruhin
e9608a6aea
Add qutebrowser version to IPC data.
...
See #909 .
2015-09-06 18:06:03 +02:00
Florian Bruhin
cc80cfdfd6
Add missing return.
2015-09-06 17:15:13 +02:00
Florian Bruhin
ef9e1bef1b
Improve performance when adding new history item.
...
Fixes #919 .
There were two issues here:
- CompletionWidget didn't delete the old model when setting a new one. This
means filterAcceptsRow was called for models which aren't even used anymore.
- setChild was used instead of appendRow for the BaseCompletionModel, which
caused Qt to call filterAcceptsRow once for every item of the completion
model instead of only once.
2015-09-06 16:59:43 +02:00
Alexander Cogneau
d36c701b07
Fixed comments
2015-09-04 11:44:59 +02:00
Florian Bruhin
9521da3c73
Fix error output with --no-err-windows.
2015-09-04 08:04:18 +02:00
Florian Bruhin
9b1d0af20d
ipc: Simplify exception handling.
2015-09-04 07:16:16 +02:00
Florian Bruhin
ea0cbea1dd
ipc: Use a custom class for exceptions.
2015-09-04 07:12:23 +02:00
Florian Bruhin
2a4cd02704
100% coverage for misc.ipc.
2015-09-04 06:58:46 +02:00
Florian Bruhin
0d0e704b6b
ipc: Reduce logging on Windows.
...
Otherwise the tests fail there...
2015-09-03 23:33:41 +02:00
Florian Bruhin
fab6e2eafc
ipc: Fix exception handling on AddressError.
2015-09-03 23:13:55 +02:00
Florian Bruhin
a6b9d28b96
ipc: Fix sleep time on AddressError.
2015-09-03 23:13:29 +02:00
Florian Bruhin
b40fb4dd43
ipc: Handle None-socket in slots correctly.
2015-09-03 20:48:51 +02:00
Alexander Cogneau
96e3a0b1f1
first cookie tests
2015-09-03 17:24:01 +02:00
Florian Bruhin
ab9c046d54
Adjust default keybinding to clear-keychain on Esc.
...
Fixes #917 .
2015-09-03 11:14:05 +02:00
Florian Bruhin
3a5cd8f3ff
Revert "Remove test_ipc workaround again."
...
This reverts commit f4d2e0746e
.
2015-09-03 06:51:15 +02:00
Florian Bruhin
f4d2e0746e
Remove test_ipc workaround again.
2015-09-03 06:36:33 +02:00
Florian Bruhin
efe40fa7e0
Try different workaround for test_ipc issues.
2015-09-03 06:12:36 +02:00
Florian Bruhin
e0c6a322c6
ipc: Pass socket to send_to_running_instance.
2015-09-02 23:32:06 +02:00
Florian Bruhin
82c647a87d
ipc: Mark on_ready_read cornercase as no-cover.
2015-09-02 23:32:06 +02:00
Florian Bruhin
1953bb8458
ipc: Disconnect on invalid data.
2015-09-02 23:32:06 +02:00
Florian Bruhin
6b4b65e585
ipc: Clarify comment.
2015-09-02 23:32:06 +02:00
Florian Bruhin
cbcd6261b1
ipc: Add got_invalid_data signal.
2015-09-02 23:32:06 +02:00
Florian Bruhin
0c3ee46fe0
Merge branch 'autoupdate_tests' of https://github.com/acogneau/qutebrowser into acogneau-autoupdate_tests
2015-09-01 08:48:52 +02:00
Florian Bruhin
16e3bad7af
Hide scroll buttons in vertical tab bar.
2015-08-31 22:00:26 +02:00
Alexander Cogneau
e499d8932f
100% misc.autoupdate coverage
2015-08-31 01:10:04 +02:00
Florian Bruhin
79c1867e6c
Don't save cookies when starting in private mode.
...
Whoops... :(
Fixes #903 .
2015-08-30 23:17:48 +02:00
Florian Bruhin
8913c1883e
ipc: Fix missing import.
2015-08-30 22:57:45 +02:00
Florian Bruhin
6dbd669efe
ipc: Disconnect properly from server.
2015-08-30 20:35:50 +02:00
Florian Bruhin
a1cb47936a
IPC: Fix shutdown when self._socket is None.
2015-08-30 20:35:34 +02:00
Florian Bruhin
39e40a7887
ipc: Pass args to send_to_running_instance.
2015-08-29 23:09:44 +02:00
Florian Bruhin
fe493f8565
ipc: Pass socket name to IPCServer.
2015-08-29 21:26:22 +02:00
Florian Bruhin
d5668dd687
ipc: Don't listen in IPCServer.__init__ already.
2015-08-27 23:09:25 +02:00
Florian Bruhin
a7bf0744e0
Move some IPC code from app.py to ipc.py.
2015-08-27 23:04:27 +02:00
Florian Bruhin
ff6e96347b
ipc: Refactor _get_socketname to take better args.
2015-08-27 22:32:29 +02:00
Florian Bruhin
8d7249ebc6
Implement statusbar padding.
2015-08-27 22:12:39 +02:00
Florian Bruhin
4891fe9457
Always expand ~ when starting scripts.
2015-08-27 20:30:41 +02:00
meles5
afddf75bae
Fixed license issue
2015-08-27 13:37:31 +02:00
Florian Bruhin
3e8136e353
Revert changes to cmdhistory.py.
2015-08-27 06:25:42 +02:00
Florian Bruhin
4fb3114af8
Merge branch 'cmdhistory_tests' of git://github.com/acogneau/qutebrowser into acogneau-cmdhistory_tests
2015-08-27 06:18:30 +02:00
Florian Bruhin
f78fb0c027
basekeyparser: Remove dead code.
...
We added this in 836a5e04a5
for the old INI-based
config, but this is not needed anymore as the keys.conf syntax does not allow
this.
2015-08-26 20:31:17 +02:00
Florian Bruhin
4f1c27d230
Merge branch 'basekeyparser_tests' of git://github.com/acogneau/qutebrowser into acogneau-basekeyparser_tests
2015-08-26 17:34:10 +02:00
Alexander Cogneau
3a4069667a
Remove test functions out of class
2015-08-26 12:07:47 +02:00
Alexander Cogneau
a1dff7d535
Final cmdhistory tests
2015-08-26 00:16:18 +02:00
Alexander Cogneau
18d42d1f0a
More tests for cmdhistory
2015-08-25 22:17:42 +02:00
Florian Bruhin
124099ac4c
Fix docstrings.
2015-08-25 21:18:45 +02:00
Florian Bruhin
8171a53478
Merge branch 'progressbar' of git://github.com/t-wissmann/qutebrowser into t-wissmann-progressbar
2015-08-25 21:18:02 +02:00
Alexander Cogneau
26058f4e80
A few cmdhistory tests
2015-08-25 18:46:49 +02:00
Alexander Cogneau
09161faca5
Refactor read_config for easier testing
2015-08-25 12:04:22 +02:00
Thorsten Wißmann
183a5910de
Fix progressbar height to statusbar height.
...
Formerly, the statusbar height changed when the progressbar was visible.
This was caused by the default font-size of the progressbar text (though
invisible). Overriding the minimumSizeHint() method ignores the
font-size of the hidden text and the statusbar height does not change
anymore.
This fixes the first issue of #886 .
2015-08-25 11:14:52 +02:00
Thorsten Wißmann
830136540d
Hide the border of the completionwidget
...
Having a light Qt theme but a dark qutebrowser theme, one can see an
ugly white border around the completion widget which is some relict from
the underlying Qt widget QTreeView. As qutebrowser has its own theming
settings for the mainwindow, it should hide the Qt theme as far as
possible.
2015-08-25 11:01:25 +02:00
Florian Bruhin
1a062035eb
Log IPC server name to debug log.
2015-08-24 19:28:09 +02:00
Alexander Cogneau
af9647221a
Add tests for BaseKeyParser
2015-08-24 18:12:12 +02:00
Florian Bruhin
201f2f67d3
sessions: Logging/error message improvements.
2015-08-24 17:12:20 +02:00
Florian Bruhin
4577659342
Fix crash when there's no completion.
2015-08-24 00:08:55 +02:00
Florian Bruhin
b783069f48
SessionManager: Factor out name handling in save.
2015-08-23 21:54:55 +02:00
Florian Bruhin
2556e2e27b
Remove unused import.
2015-08-23 18:29:02 +02:00
Florian Bruhin
17215822bc
sessions: Use try/except to create base-path.
2015-08-23 18:17:10 +02:00
Florian Bruhin
6d8854bc07
Simplify usage of tabhistory.TabHistoryItem.
2015-08-23 18:16:19 +02:00
Alexander Cogneau
193a8d5242
Add unit tests for KeyInput.BaseKeyParser
2015-08-22 23:26:13 +02:00
Florian Bruhin
fc6c49f57c
Cleanup
2015-08-22 22:59:41 +02:00
Florian Bruhin
2a5d352c7b
Merge branch 'separate_completion_filters' of git://github.com/acogneau/qutebrowser into acogneau-separate_completion_filters
2015-08-22 22:53:35 +02:00
Florian Bruhin
3d5599facb
Move session dir handling out of SessionManager.
2015-08-22 22:53:03 +02:00
Alexander Cogneau
7ed4977d64
Change parent of filter models
2015-08-21 16:56:36 +02:00
Alexander Cogneau
729c10e0a9
Fix PEP issue
2015-08-21 16:23:28 +02:00
Alexander Cogneau
387c84beff
Completion model filters are now per-window (via completer.py)
2015-08-21 16:05:33 +02:00
Florian Bruhin
355074f248
Add a . for spatial-navigation docs.
2015-08-20 11:11:31 +02:00
Florian Bruhin
ed70d636d0
argparser: Check for unknown types.
2015-08-20 07:09:09 +02:00
Florian Bruhin
506917882e
argparser: Style fixes.
2015-08-20 07:08:59 +02:00
Florian Bruhin
a79c139aa4
Revert "style: Check for QColor when setting in ColorDict."
...
This reverts commit 9b82fae6fb
.
2015-08-19 20:48:19 +02:00
Florian Bruhin
1d5cae3146
style: Use a collection.UserDict.
2015-08-19 20:46:02 +02:00
Florian Bruhin
b3395a1a9c
style: Fix logging in ColorDict.
2015-08-19 20:39:31 +02:00
Florian Bruhin
9b82fae6fb
style: Check for QColor when setting in ColorDict.
2015-08-19 20:39:16 +02:00
Florian Bruhin
dc0e8b4626
Don't pass config to stylesheets.
2015-08-19 20:38:19 +02:00
Florian Bruhin
685bbaae6d
100% test coverage for misc.editor.
2015-08-19 09:34:44 +02:00
Florian Bruhin
45e7be4940
Increase default hint size a bit.
...
See #871 .
2015-08-19 06:40:43 +02:00
Florian Bruhin
07c6c40548
Set messagebox = None without Tk in checkpyver.
2015-08-19 06:39:22 +02:00
Florian Bruhin
1a61e53daa
100% test coverage for misc.checkpyver.
2015-08-19 05:58:52 +02:00
Florian Bruhin
e4a0f1972f
tests: Improve MessageMock and use it.
2015-08-18 21:38:18 +02:00
Florian Bruhin
d3d999e041
Show a confirmation when adding bookmarks.
2015-08-18 19:03:46 +02:00
Florian Bruhin
127514f719
Document cmdutils.aliases attribute.
2015-08-17 21:13:23 +02:00
Florian Bruhin
7ce78bb560
networkreply: Add is{Running,Finished} methods.
2015-08-17 07:15:55 +02:00
Florian Bruhin
d94c1736db
Use a proper file:// URL for dirbrowser icons.
2015-08-16 19:04:54 +02:00
Florian Bruhin
97a9255400
Don't import function in filescheme.
2015-08-16 18:52:54 +02:00
Florian Bruhin
fb1cffd158
Merge branch 'feature/directory-browser' of git://github.com/antoyo/qutebrowser into dirbrowser
2015-08-16 18:27:05 +02:00
Florian Bruhin
3bfd049a0a
Don't use inspect.getfullargspec().
...
It seems to be deprecated in Python 3.5.
2015-08-16 15:43:28 +02:00
Antoni Boucher
149ca68853
Renamed setReferer to set_referer.
2015-08-14 08:24:13 -04:00
Florian Bruhin
11502b7942
signalfilter: Remove annoying type check.
2015-08-14 06:43:23 +02:00
Antoni Boucher
abeb7e3390
Fixed issues.
2015-08-13 19:54:23 -04:00
Florian Bruhin
7b3de27b44
Add class="parent" in dirbrowser.html.
2015-08-13 21:56:22 +02:00
Antoni Boucher
814841200a
Fixes issues.
2015-08-12 17:24:01 -04:00
Antoni Boucher
77190554cc
Merge branch 'master' into feature/directory-browser
2015-08-12 16:57:45 -04:00
Florian Bruhin
6f4141956b
Merge branch 'dynamic-column-widths' of git://github.com/acogneau/qutebrowser into acogneau-dynamic-column-widths
2015-08-12 18:20:01 +02:00
Florian Bruhin
25b43d528c
Clear textbase text properly.
2015-08-12 07:41:06 +02:00
Florian Bruhin
8609663f40
statusbar.textbase: Fix broken text check.
2015-08-12 07:35:24 +02:00
Florian Bruhin
c55cb5b16b
config.textwrapper: Remove *args.
...
textwrap.TextWrapper only takes kwargs.
2015-08-12 07:01:21 +02:00
Florian Bruhin
44f8cf4b1a
Move :tab-focus documentation.
2015-08-11 22:01:18 +02:00
Florian Bruhin
705544cb05
Merge branch 'gt' of git://github.com/t-wissmann/qutebrowser into t-wissmann-gt
2015-08-11 21:58:53 +02:00
Florian Bruhin
2980bc808e
Remove dead configtypes code.
2015-08-11 20:15:42 +02:00
Florian Bruhin
2d8aaecd65
100% coverage for utils.debug.
2015-08-11 17:11:00 +02:00
Florian Bruhin
64a1cad604
Clean up output for get_all_objects().
2015-08-11 17:10:41 +02:00
Florian Bruhin
a3a7f8936b
Allow to pass a root object to _get_pyqt_objects.
2015-08-11 17:10:02 +02:00
Florian Bruhin
307bbde6e0
Fix utils.debug.get_all_children().
2015-08-11 17:09:20 +02:00
Florian Bruhin
0ca96740c9
Make utils.debug.format_args public.
2015-08-11 17:08:49 +02:00
Florian Bruhin
caedb57e56
Fix staticMetaObject handling in qenum_key.
...
Since we checked on klass instead of base, there never was a staticMetaObject
and the slower path was always taken - this corrects that.
2015-08-11 17:07:47 +02:00
Florian Bruhin
10298e9692
Don't connect destroyed signal in log_signals.
...
This causes weird segfaults and is probably not that important to log.
Fixes #867 .
2015-08-11 14:29:06 +02:00
Thorsten Wißmann
da6d12a657
Make tab-focus (bound to gt) behave as in VIM
...
If no count or index is given, tab-focus switches to the next tab (using
tab-next internally). So the keychain gt behaves as gt in vim:
- gt focuses the next tab
- 1gt focuses the first tab
- <n>gt (e.g. 5gt) focuses the n'th (e.g. fith) tab
2015-08-11 10:50:27 +02:00
Alexander Cogneau
8be433f5f6
Add tests:
...
- sum of column widths equals 100
- column widths tuple has 3 elements
2015-08-11 09:17:46 +02:00
Florian Bruhin
c8679d6544
100% coverage for browser.webelem.
2015-08-10 19:37:16 +02:00
Florian Bruhin
aed915b1ec
Handle invalid URLs when checking for same domain.
...
The old code only checked whether current_url is invalid, but the request URL
can be invalid as well, e.g. on http://www.playstation.com/
/cc @Carpetsmoker
2015-08-09 18:52:11 +02:00
Florian Bruhin
fe3eb30892
Reorganize exceptions in urlutils.
...
- Instead of ValueError, a new InvalidUrlError is raised with invalid URLs.
- FuzzyUrlError got removed as it's basically the same as InvalidUrlError.
2015-08-09 18:48:32 +02:00
Antoni Boucher
052d18147e
Added permission check.
2015-08-09 11:29:18 -04:00
Antoni Boucher
0896d7a8b3
Fixed file scheme handler.
2015-08-08 19:45:00 -04:00
Alexander Cogneau
753f87aa15
Default size of third column is now 0
2015-08-08 23:49:54 +02:00
Antoni Boucher
14ae308279
Added a file:// scheme.
2015-08-08 15:16:48 -04:00
Antoni Boucher
7e20d77bdf
Switch to SVG file and tango theme.
2015-08-08 14:43:55 -04:00
Antoni Boucher
2969599390
Use toLocalFile function instead of slicing.
2015-08-08 14:13:09 -04:00
Antoni Boucher
e6521b047d
Added get_file_list function and tests.
2015-08-08 14:10:27 -04:00
Antoni Boucher
b8809f879d
Added resource_filename function and tests.
2015-08-08 13:47:47 -04:00
Antoni Boucher
ec5049f801
Renamed url to urlstring.
2015-08-08 13:32:04 -04:00
Alexander Cogneau
e29c642bc2
Fix wrong propertyname
2015-08-08 18:12:51 +02:00
Alexander Cogneau
f2c3cc6a3e
Module import of completion.models instead of class.
2015-08-08 17:58:12 +02:00
Alexander Cogneau
0e9f268817
CompletionView:
...
- column_widths -> _column_widths
- removed if-statement to verify if source model has 'column_widths'-property
2015-08-08 17:47:18 +02:00
Alexander Cogneau
36372418ca
Added the default column_widths as a class attribute instead of a config option.
2015-08-08 17:27:21 +02:00
Alexander Cogneau
5c2d3ec96a
Add a column_widths property to the base class for completion models.
2015-08-08 16:46:57 +02:00
Florian Bruhin
f76b741fb6
Merge branch 'master' of git://github.com/Kingdread/qutebrowser into Kingdread-master
2015-08-08 15:14:08 +02:00
Antoni Boucher
2be0743378
Added images.
2015-08-07 23:28:24 -04:00
Antoni Boucher
fedf9d9c72
Replaced tuple by dict.
2015-08-07 22:45:54 -04:00
Antoni Boucher
4c1ed35390
Removed .. when in root folder.
2015-08-07 22:45:42 -04:00
Antoni Boucher
c8d3fc57c2
First version of directory browser.
2015-08-07 21:57:19 -04:00
Daniel
9e98ab181a
Add URL validity check + tests to incdec_number
2015-08-08 00:57:16 +02:00
Daniel
c4c3a83ac0
rename url_incdec_number to incdec_number
2015-08-08 00:57:16 +02:00
Florian Bruhin
3a85afe1f4
Use datetime.ctime().
2015-08-07 22:32:02 +02:00
Alexander Cogneau
43e0ac1844
Fix PEP8: line too long warning
2015-08-07 21:15:40 +02:00
Alexander Cogneau
73c28c12f3
Show launch time in crash logs.
2015-08-07 20:36:38 +02:00
Daniel
276b163e0d
Move logic from _navigate_incdec to urlutils
...
Also add unittests for url_incdec_number
2015-08-07 18:48:07 +02:00
Daniel
0f3aa0bd8c
Ctrl-A only increments number in path segment
...
This prevents a host like "myfoo42.bar" changing to "myfoo43.bar" when
pressing Ctrl-A. It further prevents increasing the port number, e.g.
going from "foo.bar:8080" to "foo.bar:8081".
2015-08-07 17:21:18 +02:00
Florian Bruhin
5f122759db
Fix config migration for tab position values.
2015-08-07 11:59:31 +02:00
Florian Bruhin
2ab7ad59ee
Fix lint.
2015-08-06 21:19:36 +02:00
Florian Bruhin
3f445ba6ca
Draw favicon at correct position/size.
2015-08-06 21:14:05 +02:00
Florian Bruhin
58a9677af8
Use QFontMetrics instead of QFontInfo.
2015-08-06 21:11:06 +02:00
Florian Bruhin
e1c2250690
Merge branch 'favicon-size-2' of git://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-favicon-size-2
2015-08-06 21:10:11 +02:00
Florian Bruhin
61df5fcd7a
Skip confirm-quit checks when crashing.
...
Fixes #853 .
2015-08-06 21:08:20 +02:00
Florian Bruhin
9c6782be1d
downloads: Fix size calculation with unknown size.
...
Fixes #854 .
2015-08-06 21:00:36 +02:00
Florian Bruhin
36adaf0cf3
Simplify argument handling for DownloadManager.
2015-08-06 20:41:57 +02:00
Florian Bruhin
5fca27ad02
Fix :adblock-update.
2015-08-06 20:38:51 +02:00
Florian Bruhin
46f3be2df7
Add rapid hinting for downloads.
2015-08-06 19:09:21 +02:00
Florian Bruhin
a34fa93f62
Wrap long lines.
2015-08-06 18:50:32 +02:00
Alexander Cogneau
8ffe73cc5f
Change 'prompt-download-location' setting to 'prompt-download-directory'
2015-08-06 16:44:58 +02:00
Alexander Cogneau
9a85b66452
Merge remote-tracking branch 'upstream/master'
2015-08-06 16:40:48 +02:00
Florian Bruhin
c6c14e967d
Change Position conftypes to top/bottom/left/right.
2015-08-05 23:37:51 +02:00
Martin Tournoij
58aa1a738d
Favicon sizing is messed up with tabs -> orientation = west #847
...
Here's a patch which seems to work well in my initial testing. We now use the
font size rather than the tabbar size, since the tabbar size is the window
size when it's vertical.
This also works nicer with the new tabs.padding setting (which didn't exist when
I wrote the first patch).
2015-08-05 22:33:24 +02:00
Florian Bruhin
5a25f0b98b
Don't crash on :completion-item-del with no item.
...
If :completion-item-del was invoked with no item selected (e.g. directly after
pressing 'o'), there was a crash because the currentIndex was invalid.
/cc @antoyo (but I believe one of my changes on top of yours caused this)
2015-08-05 06:55:39 +02:00
Florian Bruhin
15e854237e
Fix exception on ":set -p foo bar!".
2015-08-04 23:50:43 +02:00
Alexander Cogneau
3fa99abca8
Merge remote-tracking branch 'upstream/master'
2015-08-04 16:32:31 +02:00
Alexander Cogneau
e43a1e6444
Added config option for prompting the user for a download location.
2015-08-04 16:30:55 +02:00
Florian Bruhin
93d27cbb5f
Escape 0x00 in javascript_escape().
...
This is needed in older PyQt-versions.
2015-08-04 12:42:49 +02:00
Florian Bruhin
7e7fe9b4ce
Simplify utils.qualname, take two.
2015-08-04 10:39:34 +02:00
Florian Bruhin
c67f7b6b21
Simplify utils.qualname.
2015-08-04 10:36:35 +02:00
Florian Bruhin
43266ac08a
webelem: Add more tests.
2015-08-03 23:40:39 +02:00
Florian Bruhin
ed4fc4d1ba
webelem: Escape \r in javascript_escape().
2015-08-03 23:22:23 +02:00
Florian Bruhin
8011cefea6
webelem: Check if elem is writable with roles.
2015-08-03 23:21:45 +02:00
Florian Bruhin
0330adf284
Filter links for :navigate.
2015-08-03 23:21:20 +02:00
Florian Bruhin
21a60f06c0
webelem: Add <link> element to all/prevnext.
2015-08-03 23:17:54 +02:00
Florian Bruhin
c6a5731560
webelem: Check for vanished elem in is_text_input.
2015-08-02 23:49:22 +02:00
Florian Bruhin
3d9e4817f2
webelem: Fix return value for is_editable().
2015-08-02 23:49:12 +02:00
Florian Bruhin
5c58641c81
Fix WebElementWrapper.__delitem__.
2015-08-02 23:47:35 +02:00
Florian Bruhin
b850df090b
Add branch coverage workaround for coverage.py bug.
2015-08-02 23:47:22 +02:00
Florian Bruhin
2c7dd5c60c
rfc6266: Simplify ContentDisposition.
2015-08-02 19:48:31 +02:00
Florian Bruhin
aaf90d0fe3
Simplify RFC6266 error handling.
2015-08-02 18:09:01 +02:00
Florian Bruhin
cd7c3ec3a4
Fix docstring for http module.
2015-08-02 17:20:21 +02:00
Florian Bruhin
b4a695d5b8
Strip trailing slash when getting path from URL.
2015-08-02 17:18:59 +02:00
Florian Bruhin
c13f7e5f78
Remove dead ShellLexer code.
2015-08-02 13:05:19 +02:00
Florian Bruhin
dc4d4e70e4
Make sure state is valid in ShellLexer.
2015-08-02 12:44:54 +02:00
Florian Bruhin
49f017c0dd
Fix mainwindow.statusbar.percentage tests.
2015-08-02 01:53:30 +02:00
Florian Bruhin
d5888fea89
100% coverage for mainwindow.statusbar.progress.
2015-08-02 01:49:33 +02:00
Florian Bruhin
43db9d4526
Fix wrong pyqtSlot type.
2015-08-02 01:42:16 +02:00
Florian Bruhin
7f3070f793
Remove : for configexc.NoOptionError.
2015-08-02 01:29:24 +02:00
Florian Bruhin
d8017a04a8
Mark old tabbar hide settings as removed.
2015-08-01 22:36:59 +02:00
Florian Bruhin
6b98158d64
Fix lint.
2015-08-01 22:21:08 +02:00
Artur Shaik
e58735f1d7
'Tabs show' recommendations applied.
2015-08-01 22:21:08 +02:00
Artur Shaik
b4d5f9e7a6
Tabs->show option.
...
Issue #771
Implemted common option for tab bar show strategy.
Options: always, never, multiple, switching.
2015-08-01 22:21:08 +02:00
Florian Bruhin
2bd36e21f1
Merge branch 'download-cpu-2'
2015-08-01 14:57:47 +02:00
Florian Bruhin
8314f7f93c
Fix referer handling with generic download NAMs.
...
This broke e.g. :adblock-update as tab_id for those is set to None.
2015-08-01 14:54:46 +02:00
Florian Bruhin
d6585202fd
Remember the last used download directory.
...
Thanks to @Carpetsmoker for the original PR.
Closes #745 .
Closes #37 .
2015-08-01 14:19:06 +02:00
Florian Bruhin
52d7a5693f
Fix lint.
2015-08-01 13:47:42 +02:00
Florian Bruhin
81c3c2d15f
Small config rewording.
2015-08-01 13:35:30 +02:00
Florian Bruhin
44d109ca92
Save referer-header setting.
2015-08-01 13:32:11 +02:00
Florian Bruhin
976f758da1
Fix getting of the current URL.
2015-08-01 13:29:25 +02:00
Florian Bruhin
27f65be860
Merge branch 'referer-header' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-referer-header
...
Conflicts:
tests/utils/test_urlutils.py
2015-08-01 12:44:57 +02:00
Florian Bruhin
cc66feac09
Handle invalid history timestamps.
2015-08-01 00:57:34 +02:00
Florian Bruhin
d04848ac19
Remove unused import.
2015-08-01 00:34:09 +02:00
Florian Bruhin
451477593f
Always require 4 values for padding.
2015-08-01 00:34:09 +02:00
Florian Bruhin
22ae0c5bca
Don't call setIconSize if height doesn't change.
2015-08-01 00:26:37 +02:00
Florian Bruhin
2c716dbf6c
Merge branch 'favicon-size' of https://github.com/Carpetsmoker/qutebrowser into tabbar-height
2015-08-01 00:22:17 +02:00
Florian Bruhin
be88ba6f05
Remove indicator-space setting.
2015-07-31 18:55:17 +02:00
Florian Bruhin
fdcb69f5d4
Fix indicator layout and make it configurable.
2015-07-31 18:52:31 +02:00
Florian Bruhin
3083eaa27b
Clean up TabBarStyle._tab_layout.
2015-07-31 18:06:01 +02:00
Florian Bruhin
41eb36148d
Clean up TabBarStyle.drawControl.
2015-07-31 17:59:38 +02:00
Florian Bruhin
f5725ec11e
Use a namedtuple for _tab_layout.
2015-07-31 17:49:18 +02:00
Florian Bruhin
754c31850b
Add configurable tab padding.
2015-07-31 17:24:35 +02:00
Florian Bruhin
041315b65f
Honour right-padding in tabs correctly.
2015-07-31 17:02:42 +02:00
Florian Bruhin
8dcf9fd963
Separate padding/icon padding for tab bar.
2015-07-31 16:55:48 +02:00
Florian Bruhin
776ace2d3f
Clean up comparison.
2015-07-31 16:41:02 +02:00
Florian Bruhin
87d8bfd7a7
Use an enum for custom PixelMetrics.
2015-07-31 16:40:06 +02:00
Florian Bruhin
452c4115d3
Add a Padding config type.
2015-07-31 15:38:41 +02:00
Florian Bruhin
57e79db136
Fix undefined name error.
2015-07-29 15:04:07 +02:00
Florian Bruhin
d9d68db5df
Simplify delete_cur_item for UrlCompletionModel.
2015-07-29 12:44:38 +02:00
Florian Bruhin
08fe1d59e6
Get rid of bookmark_by_title completion.
2015-07-29 12:36:45 +02:00
Florian Bruhin
69ade32cb9
Get rid of quickmark_by_name completion.
2015-07-29 12:35:43 +02:00
Florian Bruhin
c016e8a4cf
Improve error handling for quick-/bookmarks.
2015-07-29 12:34:53 +02:00
Florian Bruhin
093b3cba25
Add a bookmark-del command.
2015-07-26 21:05:32 +02:00
Florian Bruhin
0acd1b8dc8
Use urlutils.fuzzy_url for loading bookmarks.
2015-07-26 18:52:15 +02:00
Florian Bruhin
b962fff7f1
Don't show message when deleting items.
2015-07-26 18:48:00 +02:00
Florian Bruhin
ecf3e166ff
Fix wrong column attribute.
2015-07-26 18:47:02 +02:00
Florian Bruhin
660b5531e5
Share code between on_{quick,book}mark_removed.
2015-07-26 18:43:01 +02:00
Florian Bruhin
b5a9467b5c
Get rid of _add_*mark_entry in urlmodel.
2015-07-26 18:35:49 +02:00
Florian Bruhin
2d2779d6f3
Clean up column handling in urlmodel.
2015-07-26 18:23:12 +02:00
Florian Bruhin
aaa523ce7c
Filter by cols_to_filter in CompletionFilterModel.
2015-07-26 17:41:32 +02:00
Florian Bruhin
3b0125e8cd
Rename cols_to_highlight to _filter and simplify.
2015-07-26 17:22:45 +02:00
Florian Bruhin
c7f88c93b2
Style fix.
2015-07-26 17:11:34 +02:00
Florian Bruhin
16ac877227
Add default keybindings for loading bookmarks.
...
See #13 , #681 .
2015-07-26 16:42:47 +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
c750ff3f50
configtypes: Handle invalid format syntax.
2015-07-26 13:56:46 +02:00
Florian Bruhin
4bdf00b148
configtypes: Handle {1} correctly.
2015-07-26 13:56:40 +02:00
Florian Bruhin
94b0f92b75
Fix tabs -> last-close = ignore.
...
See #822 / 71fee12b5b
.
Fixes #834 .
2015-07-26 12:08:19 +02:00
Florian Bruhin
cbed62cafc
Remove dead code.
...
This will already be checked by WebKitBytes._basic_validation.
2015-07-24 18:23:17 +02:00
Florian Bruhin
694fbe053d
Fix lint.
2015-07-24 18:11:52 +02:00
Florian Bruhin
44bf4ae883
configtypes: Fix ' ' value with Command.
2015-07-24 17:56:12 +02:00
Florian Bruhin
b19852b6e7
configtypes: Add _basic_validation() to BaseType.
...
This has a few implications:
- Checking for empty/none_ok is now easier as _basic_validation() does this.
- To make things easier, WebKitBytes and WebKitBytesList now need to have
none_ok passed as well instead of assuming True.
- _basic_validation() checks for unprintable chars and raises ValidationError
if they occur, so this gets checked for all types.
2015-07-24 17:39:02 +02:00
Florian Bruhin
1fd386e57e
configtypes: Get rid of typestr.
...
Closes #819 .
2015-07-24 14:18:41 +02:00
Florian Bruhin
730a8afc6b
configtypes: Handle empty values in ConfirmQuit
2015-07-24 00:24:04 +02:00
Florian Bruhin
e145d73852
configtypes: Add a MappingType base class.
2015-07-24 00:11:52 +02:00
Florian Bruhin
0b1704d829
configtypes: Add a __repr__ to ValidValues.
2015-07-24 00:11:52 +02:00
Florian Bruhin
a558f666bc
configtypes: Be case-insensitive for Position.
2015-07-23 23:13:58 +02:00
Florian Bruhin
85e748df4f
configtypes: Add else-branch to QtFont.
2015-07-23 16:57:28 +02:00
Florian Bruhin
b0c3f5381b
configtypes: Add none_ok param to UserStyleSheet.
2015-07-23 16:57:14 +02:00
Florian Bruhin
c46abd8f89
Fix none_ok for RegexList and PercList.
2015-07-23 14:08:34 +02:00
Florian Bruhin
88416db6a3
configtypes: Make none_ok work for IntList.
2015-07-21 15:20:23 +02:00
Florian Bruhin
073504abb4
configtypes: Make none_ok public.
2015-07-21 15:17:28 +02:00
Florian Bruhin
1b643ff55f
Handle empty values for ConfirmQuit conftype.
2015-07-21 13:00:01 +02:00
Florian Bruhin
b670c45381
Fix typo.
2015-07-20 11:23:43 +02:00
Florian Bruhin
5f10a12be9
Use keyword argument for newtab.
2015-07-17 06:39:53 +02:00
Florian Bruhin
ed1ba03c19
Merge branch 'last-tab' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-last-tab
2015-07-17 06:27:19 +02:00
Florian Bruhin
0972087e34
Add a note about #730 to :inspect docs.
...
Fixes #730 .
2015-07-16 20:54:10 +02:00
Martin Tournoij
71fee12b5b
Always remove the last tab, instead of opening a new page in it.
...
IMHO this makes much more sense; for example, if you close the last tab but then
press u to "undo" it, you'll actually load the second-last tab. To undo you need
H for "back". Other things like gC, session save, etc. also behave in a way that
is, IMHO, unexpected...
I can also make a new option out of this, if you prefer. But I don't think that
many people would expect the current behaviour...
2015-07-16 15:26:15 +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
91561e2c5b
Fixed style.
2015-07-12 20:46:40 -04:00
Antoni Boucher
5bca951c21
Removed casefold() function call when using a custom filter.
2015-07-12 20:29:40 -04:00
Antoni Boucher
1b24cfd618
Removed useless bookmark by title model.
2015-07-12 20:21:49 -04:00
Antoni Boucher
d4c91f7b0c
Fixed completion highlighting.
2015-07-12 20:18:32 -04:00
Antoni Boucher
523cb458a6
Merge remote-tracking branch 'upstream/master'
2015-07-12 10:52:32 -04:00
Florian Bruhin
ca5a78dfc7
Attach numerical code to Qt OSErrors and fix tests.
...
This fixes tests with tox < 2.0.0 on systems with a non-english locale, as it's
no longer the errorString which gets compared.
Fixes #806 .
2015-07-12 11:20:28 +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
8159c5f567
Fixed last merge.
2015-07-11 18:56:19 -04:00
Antoni Boucher
fe829699be
Merge remote-tracking branch 'upstream/master'
2015-07-11 17:40:43 -04:00
Florian Bruhin
c5b75b0b16
Merge remote-tracking branch 'origin/usertypes-tests'
2015-07-06 17:58:13 +02:00
Florian Bruhin
3f13c2bd3e
Add/improve tests for qutebrowser.utils.urlutils.
2015-07-06 17:10:57 +02:00
Florian Bruhin
e3fcc0e091
Move isabs check to top in fuzzy_url.
2015-07-06 17:10:24 +02:00
Florian Bruhin
47d5262cd9
Abort scrolling wen reaching min/max position.
...
Fixes #801 .
2015-07-06 15:13:18 +02:00
Florian Bruhin
11e88fbd12
Don't bind backspace by default.
...
Fixes #789 .
2015-07-06 13:18:05 +02:00
Florian Bruhin
4cef4012e5
Catch OSError when loading qute:help.
...
Fixes #763 .
2015-07-02 22:08:41 +02:00
Florian Bruhin
4e0d00098c
Improve NeighborList tests.
2015-07-02 21:10:56 +02:00
Martin Tournoij
aa909c0506
Fix warnings from tox
2015-07-02 21:07:38 +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
Florian Bruhin
b3cd31a808
Release v0.3.0.
2015-06-28 12:45:58 +02:00
Martin Tournoij
63dae3a885
Set favicon size to tabbar size.
...
Fixes #119 . Also see #754
2015-06-28 00:03:53 +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
bf4e968c67
Add new completion -> auto-open option.
...
Closes #557 .
2015-06-27 19:55:04 +02:00
Florian Bruhin
b3869fe42b
sessions: Store zoom/scroll-pos per history entry.
...
Also fixes #728 .
2015-06-27 18:06:18 +02:00
Florian Bruhin
ddf7f202d8
Set default for new-instance-open-target to tab.
2015-06-26 22:40:16 +02:00
Florian Bruhin
e9b5c355d2
Add a short=True argument to version.version().
...
Fixes #787 .
2015-06-26 22:33:29 +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
Franz Fellner
534a85cf8f
Create a new QStyleOptionTab object for each tab.
...
It seems under some circumstances (on Gentoo?), the existing QStyleOptionTab
object was reused, causing subsequent tabs to have the same title as the first
one.
Fixes #778 .
2015-06-24 21:27:37 +02:00
Florian Bruhin
75b894a186
Include DESKTOP_SESSION in qute:version.
2015-06-24 20:54:37 +02:00
Florian Bruhin
220ac021f0
Print style name in version info.
2015-06-24 20:37:48 +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
b7c3e7b959
Disallow {foo} in search engine URLs.
...
This causes an KeyError otherwise when trying to use str.format to insert the
search term.
2015-06-24 07:46:15 +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
9ca06ecfa2
Use pkg_resources instead of distutils for version
...
Fixes #767 . See #770 .
2015-06-18 20:54:05 +02:00
Florian Bruhin
1cc6a6669b
Bind <Alt-Backspace> to rl-unix-word-rubout.
2015-06-18 15:02:30 +02:00
Florian Bruhin
0350d19bd3
Load geometry after completion is initialized.
...
Fixes #766 .
2015-06-18 10:32:07 +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
b1334bcc22
Use repr() for unknown objects in utils.qualname.
2015-06-17 06:46:03 +02:00
Florian Bruhin
dfe98d1053
completion: Fix initial _cursor_part value.
...
Fixes #749 .
2015-06-16 13:22:55 +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
70699988ed
Fix context managers behavior on exceptions.
2015-06-15 06:19:14 +02:00
Florian Bruhin
f1ba14b496
Fix exception when using :set.
...
This is a regression introduced in 167faafff2
.
2015-06-13 13:26:29 +02:00
Florian Bruhin
f17131f6c2
Change Qt links to point to qt.io.
2015-06-12 16:59:33 +02:00
Florian Bruhin
84a269f36a
Add missing keys to key_to_string.
2015-06-12 16:37:17 +02:00
Florian Bruhin
425fcdf8e4
Merge branch 'util-tests-1'
2015-06-12 11:50:57 +02:00
Florian Bruhin
167faafff2
Fix command parsing for arguments containing _.
2015-06-12 11:42:16 +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
33ad0ab1fc
Fix startDetached return value for GUIProcess.
2015-06-11 23:02:47 +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
8a87b5d357
Rename GUIProcess.started to _started.
...
It's unneeded for this to be public, and it conflicts with the pyqtSignal.
2015-06-11 20:30:37 +02:00
Florian Bruhin
ad401e035f
Proxy QProcess signals.
2015-06-11 20:30:37 +02:00
Florian Bruhin
62d2018695
Add cmd/args/started to GUIProcess.
2015-06-11 20:30:28 +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
Austin Anderson
599f582c20
More specific statusbar styling: resolves #750 .
2015-06-11 08:07:59 -04:00
Florian Bruhin
9b7b97d626
Improve docs.
2015-06-10 21:10:59 +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
Florian Bruhin
67e895b6c7
Hide SetProcessDpiAwareness Qt warning.
...
This shows up on AppVeyor CI for some reason.
See https://bugreports.qt.io/browse/QTBUG-38993
2015-06-10 18:35:33 +02:00
Florian Bruhin
b57027f800
Fix pylint warnings on Windows.
2015-06-10 18:35:33 +02:00
Austin Anderson
3be9a9b051
Catalogued a configuration option change for updates.
2015-06-10 08:16:15 -04: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
108e722c85
Add config migration.
2015-06-08 20:48:35 +02:00
Florian Bruhin
3b4fe97dbc
Merge branch '3rd-party-cookies' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-3rd-party-cookies
2015-06-08 20:38:19 +02:00
Florian Bruhin
b6349437f7
Fix broken check for changing js on qute:settings.
...
See #727 .
2015-06-08 20:29:55 +02:00
Florian Bruhin
b5cd082e43
config: Make it possible to migrate values.
...
Needed for #729 .
2015-06-08 19:34:11 +02:00
Florian Bruhin
5a2d909607
Update user-stylesheet docs.
2015-06-08 18:50:09 +02:00
Florian Bruhin
171a0f201b
Merge branch 'relapaths' of https://github.com/lamarpavel/qutebrowser into lamarpavel-relapaths
2015-06-08 18:48:11 +02:00
Lamar Pavel
7f27c183be
Include expandvars in File.validate
...
I thought I put this in here before, but apparently I did not. So here it is,
together with a new test to verify it. Other tests needed to be updated with a
mock for os.path.expandvars.
2015-06-08 13:18:16 +02:00
Lamar Pavel
0e50760b70
Differentiate exceptions; remove obsolete test
...
In function File.validate the try-except block has been re-written to
differentiate raised errors.
In function File.transform there was a check for validity of the file path that
is alraedy performed by File.validate under the same conditions. This check has
been removed.
2015-06-08 12:53:59 +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
Austin Anderson
34d4c08374
Significantly reduced the size of the bar stylesheet.
2015-06-07 20:13:52 -04:00
Austin Anderson
ebc013ac2a
Removed redundant setter.
2015-06-07 20:13:52 -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
Antoni Boucher
57a72a7120
Refactored bookmark removal to use a command.
2015-06-07 19:36:19 -04:00
Florian Bruhin
e60f698615
Add/improve tests for qutebrowser.utils.standarddir.
2015-06-07 23:20:34 +02:00
Florian Bruhin
df53ccf426
Write tests for qutebrowser.utils.version.
2015-06-07 23:20:34 +02:00
Florian Bruhin
4204579c06
Add/improve tests for qutebrowser.utils.utils.
2015-06-07 22:53:30 +02: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
Florian Bruhin
6b94dc5279
Add continue to default next-regexes.
2015-06-07 17:20:52 +02: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
5310c60d58
Remove unused import.
2015-06-07 01:24:24 +02:00
Florian Bruhin
def41e70bf
Fix some spelling mistakes.
2015-06-07 01:24:02 +02:00
Lamar Pavel
5bacbc9d38
Remove obsolete try-except block
2015-06-06 14:07:57 +02:00
Lamar Pavel
de0686c50a
Error messages and explicit test for None
...
Error messages for validate() are more specific.
Return of standarddir.conf() is explicitly tested for None to avoid ambiguity
with other falsey values.
2015-06-06 14:04:45 +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
5fb23f1373
Also migrate older search calls.
2015-06-05 17:45:38 +02:00
Martin Tournoij
dfada850e0
Update code after refactor, and add migration
2015-06-05 16:52:33 +02:00
Martin Tournoij
a7b10a090f
Merge branch 'master' into issue-716
2015-06-05 16:45:52 +02:00
Martin Tournoij
fc4c7bd2e4
Merge the cookies-accept and third-party-cookie-policy settings
2015-06-05 16:20:50 +02:00
Lamar Pavel
402aa66756
Merge branch 'master' of github.com:The-Compiler/qutebrowser
2015-06-05 16:10:55 +02:00
Florian Bruhin
b55e22b5c3
Refactor key mode/parser handling in modeman.
2015-06-05 15:29:09 +02:00
Martin Tournoij
fa65f345ac
Perhaps fix it more properly after all :-)
2015-06-05 15:19:40 +02:00
Martin Tournoij
57ddd8e95e
Always handle the <Esc> key, even if it's bound.
...
This fixes #716 , which sufficiently annoyed me to make this quick fix. It's not
a great fix, but it's not worse than what we had already, and the current
behaviour is very surprising IMHO.
2015-06-05 14:26:17 +02:00
Florian Bruhin
728f06e797
Close context menu if another mode was entered.
...
Fixes #735 .
2015-06-05 11:15:22 +02:00
Florian Bruhin
7102459c81
Rename _get_modeman() to instance().
2015-06-05 11:15:18 +02:00
Florian Bruhin
622938e3d3
Fix completion performance with shrink=True.
...
Before, the completion was shrinked every time any item was removed/added to
the completion (rowsRemoved/rowsInserted signals), which was >3000 times when
completing history.
Also, the signals got connected multiple times if setting the same model, which
made the situation worse.
Fixes #734 .
2015-06-05 07:16:33 +02:00
Florian Bruhin
c907572557
Merge branch 'yank-domain' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-yank-domain
2015-06-05 06:38:22 +02:00
Florian Bruhin
9ec6e6da80
Fix exit status codes to be 0-based.
2015-06-04 15:13:20 +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
Antoni Boucher
8b14145a4d
Fixed style.
2015-06-03 19:31:31 -04:00
Martin Tournoij
78e159cb27
Add referer-header settng, #712
2015-06-04 01:26:00 +02:00
Martin Tournoij
472071c047
Add setting: 'content.third-party-cookie-policy', fixes #607
...
This sets the third-party cookie policy.
- I created a new ThirdPartyCookiePolicy() class, since this setting seems to be
unique in the way it is set...
- I set the default to 'never', which is the most secure/private setting, but
*may* break *some* features of a (very) limited number of sites; these are
usually "non-critical" features.
For example, on Stack Exchange sites you're logged in all 200+ sites if you
sign in on one of them, this features required 3rd party cookies. You can
still sign in with out, but you have to do so 200+ times (this is actually the
only example I've ever noticed).
AFAIK all "major" browsers accept 3rd-party cookies by default, except for
Safari. Firefox also made this change, but reversed it (see:
https://brendaneich.com/2013/05/c-is-for-cookie/ ), but they don't offer any
good arguments to *not* have it IMHO, at least not that I could find.
In any case, in my humble opinion "secure and private by default" is the best
way to ship. But you're of course free to change it if you disagree ;-)
2015-06-04 00:26:39 +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
f1874ff44f
Added possibility to remove bookmarks and quickmarks.
2015-06-01 20:00:21 -04:00
Antoni Boucher
c8bbef0ab0
Fixed bookmark command name in config.
2015-06-01 19:49:32 -04:00
Antoni Boucher
5085844550
Added highlighting for completion in name column.
2015-06-01 17:55:09 -04:00
Antoni Boucher
9582162927
Fixed bookmarks command names.
2015-06-01 17:52:23 -04:00
Florian Bruhin
d8e58b5886
Fix some typos.
2015-06-01 22:45:40 +02:00
Florian Bruhin
1bf036d1ba
Add setting for the webpage bg color to use.
...
Fixes #719 .
2015-06-01 22:27:15 +02:00
Martin Tournoij
e22ef776f9
Fix crash when executing "qutebrowser :set".
...
Fixes #720 .
See #721 .
2015-06-01 19:04:21 +02:00
Florian Bruhin
b5a70dbdec
Spelling fix.
2015-06-01 13:43:40 +02:00
Florian Bruhin
6c2fe3417e
Accept numpad-enter as return in default bindings.
...
See https://bbs.archlinux.org/viewtopic.php?pid=1523326#p1523326
2015-06-01 13:39:13 +02:00
Florian Bruhin
f1c0781a4c
Use sip.SIP_VERSION_STR to get sip version.
2015-06-01 09:09:10 +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
cdde1d7dfc
command: Add support for custom metavar for docs.
2015-05-31 15:10:12 +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
Lamar Pavel
b0bd8170e0
Merge branch 'master' of github.com:The-Compiler/qutebrowser
2015-05-31 10:34:30 +02:00
Florian Bruhin
81345eb17e
Hide some QXcbWindow warnings.
2015-05-31 00:11:33 +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
Florian Bruhin
5b891ecaca
Merge branch 'issue-401' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-issue-401
2015-05-30 22:48:11 +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
5c599879f8
Fixed a line-length error.
2015-05-30 16:03:36 -04:00
Austin Anderson
b59dc8e89b
Merge branch 'master' into more-color-settings
2015-05-30 15:56:11 -04:00
Austin Anderson
fed2cdad4e
Cleaned up download configuration options.
2015-05-30 15:22:00 -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
Florian Bruhin
b1dd649278
Replace _ by - in command flag names.
...
See #698 .
2015-05-30 19:30:08 +02: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
e92c493b07
Fixed bug making the application crash.
2015-05-30 12:37:21 -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
c1dadeff6f
Fix silly mistake...
2015-05-29 20:48:43 +02:00