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
Martin Tournoij
27fdf4903a
Implement :jseval (Issue #334 )
...
TODO:
- Tests
- Doesn't show errors
2015-05-29 18:36:39 +02:00
Martin Tournoij
c7dcaff025
Add navigate option to scroll_page()
...
So you can scroll down & navigate when you're at the bottom.
To bind this to space:
scroll-page 0 1 next
<Space>
Not sure if it's a good idea to bind this by default? May surprise some
people...
See #696
2015-05-29 18:35:15 +02:00
Martin Tournoij
f7b517f3aa
Revert some accidental changes >_<
2015-05-29 17:08:01 +02:00
Martin Tournoij
d20872d576
Fix feedback from #690
2015-05-29 14:50:15 +02:00
Martin Tournoij
c76221c14e
Use a specific 'qutebrowser_editor_' prefix for <C-e> instead of 'tmp'.
...
Why does this matter? In my vimrc I have this:
" When using dwb <C-e>; assume markdown, and don't store in viminfo since these are
" temporary files
autocmd BufRead,BufNewFile /home/martin/.cache/dwb/edit* setlocal ft=markdown viminfo=
I would like to do the same with qutebrowser, but this is not possible with a
file name like '/tmp/tmpSJsgSG4'
2015-05-29 02:07:20 +02:00
Antoni Boucher
cbc4ec6531
Added filter bookmarks by name as well as url.
2015-05-28 19:55:29 -04:00
Lamar Pavel
63c9e6a444
Another indentation-related fix
2015-05-28 13:20:00 +02:00
Lamar Pavel
f5d299d8c7
Fix intents
2015-05-28 13:05:12 +02:00
Lamar Pavel
b5eea81e2e
Fix File.validate and corresponding tests
...
There were no tests regarding the return value of standarddir.config() and thus
it wasn't caught that it returned None in some cases. This is now fixed by
checking the return of standdarddir.config before calling it and modifying the
corresponding test_validate_exists_rel as well as adding a new
test_validate_rel_config_none.
2015-05-28 12:14:12 +02:00
Lamar Pavel
4851a3d442
Replace isabs with exists in transform
...
In UserStyleSheet.transform os.path.isabs was replaced with os.path.exists, a
more fitting condition. Accordingly two test cases needed to include mocks for
os.path.exists and QUrl.fromLocalFile.
2015-05-27 15:39:58 +02:00
Lamar Pavel
e12dce9d55
Include expandvars in File.transform, adjust test
2015-05-27 14:40:07 +02:00
Lamar Pavel
f326fa28a6
Merge branch 'master' into relapaths
...
Sync with upstream/master before creating a pull request
2015-05-27 11:57:13 +02:00
Florian Bruhin
6452c8f883
PyQIODevice: Add context manager support.
2015-05-26 20:57:11 +02:00
Florian Bruhin
b8dd71a343
PyQIODevice: Add .open()/.close().
2015-05-26 20:57:11 +02:00
Florian Bruhin
460308f388
PyQIODevice: Don't use errorString for failed seek.
2015-05-26 20:57:11 +02:00
Florian Bruhin
6a26bc23ab
PyQIODevice: Remove unneeded check.
2015-05-26 20:57:11 +02:00
Florian Bruhin
48de8b145b
PyQIODevice: Properly fix read/readLine.
2015-05-26 20:57:01 +02:00
Florian Bruhin
0788054dd3
PyQIODevice: Expose underlying device.
2015-05-26 20:57:01 +02:00
Florian Bruhin
b2d763f993
PyQIODevice: Check if device is readable/writable.
2015-05-26 20:57:01 +02:00
Florian Bruhin
35f0b26f4a
PyQIODevice: Remove readinto().
...
Our implementation was broken, and the BufferedIOBase mixin does a better job
at doing this.
2015-05-26 20:57:01 +02:00
Florian Bruhin
ba9c782824
PyQIODevice: First attempt at fixing read().
...
This was completely broken because one read overload doesn't exist in PyQt and
apparently it was never tested...
2015-05-26 20:56:51 +02:00
Florian Bruhin
fa69786b0f
PyQIODevice: Raise ValueError when closed.
2015-05-26 20:49:58 +02:00
Florian Bruhin
e10da78a1a
urlutils: Remove some more dead code.
2015-05-26 20:49:43 +02:00
Florian Bruhin
27e82ce6c8
Improve exception handling in qsavefile_open.
...
Sometimes exceptions were shadowed with new exceptions because of the file
flushing.
2015-05-26 19:25:05 +02:00
Lamar Pavel
f1129460d8
Class File now validates relative paths
...
The code from function validate in class UserStyleSheet has been migrated to
class File. One test had to be modified due to different expected behaviour.
2015-05-26 13:54:27 +02:00
Lamar Pavel
c54c637ccc
Class File not transforms relative paths
...
The code from function transform in class UserStyleSheet is now migrated to
class File.
2015-05-26 12:38:04 +02:00
Tobias Patzl
b858b6ac75
call e.ignore()
when the event is not handled
2015-05-26 10:24:32 +02:00
Austin Anderson
a8d2dbfdfb
Added downloads bar fg customization, and refactored the download's color-picking.
2015-05-25 20:47:16 -04:00
Austin Anderson
0553094494
Added explanation of *.system values to settings page.
2015-05-25 19:20:33 -04:00
Tobias Patzl
61519e6383
move part of the logic to TabbedBrowser
2015-05-25 20:21:37 +02:00
Tobias Patzl
45dea54e3c
Add setting to disable mousewheel tab switching.
...
See #374 .
2015-05-25 15:23:14 +02:00
Florian Bruhin
a345b02729
Fix exception when downloading links without name.
...
We also set a default name to prevent "is a directory" errors.
This is a regression introduced in 8f33fcfc52cf598d0aa11a347992c87010d3e37a.
Fixes #682 .
2015-05-25 11:28:50 +02:00
Antoni Boucher
ad763685e5
Added bookmark command default key binding.
2015-05-24 19:26:23 -04:00
Florian Bruhin
120d2e12b0
Improve QtValueError wording for ensure_not_null.
2015-05-25 01:21:57 +02:00
Antoni Boucher
ece32e930c
Added bookmarks command.
2015-05-24 19:18:40 -04:00
Florian Bruhin
8d15bbdded
utils.version: Add SIP line on ImportError.
2015-05-24 21:00:46 +02:00
Antoni Boucher
aaf35536a7
Removed unused commands and renamed bookmark-save command.
2015-05-23 16:02:02 -04:00
Antoni Boucher
0ee7e40e69
Fixed broken quickmarks completion.
2015-05-23 15:57:52 -04:00
Lamar Pavel
ad7920dda1
Fix bug; all tox tests succeed
...
My logic in the validate function of class UserStyleSheet was faulty and
caused the check for encoding to be skipped. This is now fixed and all
tests run successfully.
2015-05-23 16:49:40 +02:00
Lamar Pavel
93b92f4aab
Fix tox failure regarding exceptions in transform
...
Function transform is not supposed to raise exceptions, so I wrapped the
call to os.path.join in an if-clause to test if standarddir.config
returns a valid value.
2015-05-23 16:09:44 +02:00
Lamar Pavel
61f32b3e9b
Revert some changes, trying to get rid of the tox failures
2015-05-22 18:40:56 +02:00
Lamar Pavel
14ba20670b
Fix potential bug with missing path-expansion
...
The last commit removed two lines in function validate of class
UserStyleSheet that were expanding the path. As it turns out those two
lines are needed by validate as well as transform, so I outsourced them
to the function they both call at that point.
2015-05-22 17:31:37 +02:00
Lamar Pavel
29b25206f6
Fix UserStyleSheet, roll back File
...
The former version of UserStyleSheet never actually loaded the css file,
this is now fixed. The changes to class File were rolled back as its
functions are overloaded by UserStyleSheet; a general solution in
classes File and Directory can be implemented when the changes in
UserStyleSheet meet the expectation.
2015-05-22 17:21:00 +02:00
Lamar Pavel
58f031630c
user-stylesheet can be read from relative paths
...
This ist just a first draft to approach issue622
(https://github.com/The-Compiler/qutebrowser/issues/622 ) and my very
first babysteps with python.
With this change it is possible to set a user-stylesheet with a relative
path, eg.:
:set ui user-stylesheet mystyle.css
where mystyle.css is in the ~/.config/qutebrowser/.
2015-05-22 14:44:04 +02:00
Antoni Boucher
2c0c2e220e
Fixed style issue.
2015-05-21 19:38:30 -04:00
Antoni Boucher
28caf45707
First version of bookmarks.
2015-05-21 18:17:22 -04:00
Florian Bruhin
aaab05793e
urlutils: Handle localhost correctly in all cases.
2015-05-20 13:36:40 +02:00
Florian Bruhin
ddb6743b26
urlutils: Clean up qurl_from_user_input in is_url.
2015-05-20 13:36:40 +02:00
Florian Bruhin
269676318b
urlutils: Raise exception on errors in host_tuple.
2015-05-20 13:36:40 +02:00
Florian Bruhin
6f904759b5
urlutils: Fix str() of FuzzyUrlError.
2015-05-20 13:36:40 +02:00
Florian Bruhin
f8db4b8147
urlutils: Improve debug logging.
2015-05-20 13:36:40 +02:00
Florian Bruhin
14df72a7a1
urlutils: Add get_errstring().
2015-05-20 13:36:40 +02:00
Florian Bruhin
e590bf26ad
urlutils: Check bogus IPs in _is_url_dns.
2015-05-20 13:36:40 +02:00
Florian Bruhin
40cc354030
urlutils: Pass URL string to _is_url_dns.
2015-05-20 13:36:40 +02:00
Florian Bruhin
c0b41d8c62
urlutils: Use utils.raises in _is_url_naive.
2015-05-20 13:36:40 +02:00
Florian Bruhin
1f048a38f8
urlutils: Remove dead code in _get_search_url.
...
term should always contain something.
2015-05-20 13:36:40 +02:00
Florian Bruhin
e187cda292
Sort attrs for utils.get_repr().
2015-05-19 16:23:50 +02:00
Florian Bruhin
b78d5f57aa
Make new-instance-open-target docs more clear.
2015-05-19 06:13:29 +02:00
Florian Bruhin
9a1cf2b03a
Fix deprecated config.
2015-05-18 22:36:10 +02:00
Florian Bruhin
f2e2748c59
Fix quotes.
2015-05-18 22:32:17 +02:00
Florian Bruhin
03e59051dc
Remove count for move-to-end-of-line.
2015-05-18 22:32:17 +02:00
Florian Bruhin
91ad91cc7b
Spelling fixes.
2015-05-18 22:27:44 +02:00
Florian Bruhin
8941b5dc96
Merge branch 'visual'
2015-05-18 21:43:25 +02:00
Florian Bruhin
8eb483d66b
Set Qt.ItemNeverHasChildren for leaf model items.
...
This allows Qt to do some optimizations.
2015-05-18 21:35:14 +02:00
Florian Bruhin
dd292b0781
Don't depend on objreg for CommandDispatcher.
...
See #640 .
2015-05-18 21:34:00 +02:00
Florian Bruhin
81ba49e79b
Fix tests on OS X, take two.
2015-05-17 18:59:40 +02:00
Florian Bruhin
10985c3505
Fix handling of Meta/Control on OS X.
...
Fixes #110 .
See #420 .
See http://doc.qt.io/qt-5.4/osx-issues.html#special-keys :
To provide the expected behavior for Qt applications on OS X, the Qt::Meta,
Qt::MetaModifier, and Qt::META enum values correspond to the Control keys
on the standard Apple keyboard, and the Qt::Control, Qt::ControlModifier,
and Qt::CTRL enum values correspond to the Command keys.
2015-05-17 18:44:36 +02:00
Florian Bruhin
b60f673468
Fix @pyqtSlot signature for on_config_changed.
2015-05-17 14:14:23 +02:00
Florian Bruhin
8ab2772dd9
Use atexit to remove temp basedir.
...
This hopefully fixes a PermissionError on Windows.
2015-05-17 01:29:47 +02:00
Florian Bruhin
7fc99f3d80
adblock: Don't show message with --basedir given.
2015-05-17 01:09:33 +02:00
Florian Bruhin
f6ad556f34
Get rid of --no-crash-dialog.
2015-05-17 01:03:34 +02:00
Florian Bruhin
b94fcf2c3c
Clean up sys.exit call.
2015-05-17 00:52:37 +02:00
Florian Bruhin
315725a3ac
Print info with --no-err-windows on earlyinit errs.
2015-05-17 00:48:15 +02:00
Florian Bruhin
002346a125
Clean up exception_hook.
2015-05-17 00:44:04 +02:00
Florian Bruhin
b619d835e6
Make usertypes.Exit an IntEnum.
2015-05-17 00:29:28 +02:00
Florian Bruhin
3f98bf372e
Merge branch 'smoke'
...
Conflicts:
doc/qutebrowser.1.asciidoc
qutebrowser/app.py
qutebrowser/config/config.py
qutebrowser/qutebrowser.py
tox.ini
2015-05-17 00:28:56 +02:00
Florian Bruhin
9be5992a9a
Smoke test WIP
2015-05-16 23:43:34 +02:00
Florian Bruhin
a1f7eed5a7
Add --temp-basedir option.
2015-05-16 23:26:15 +02:00
Florian Bruhin
d7999577dd
Fix shutdown from pdb.
2015-05-16 23:13:36 +02:00
Florian Bruhin
54131e9d3e
Add --basedir arg with multiple instance support.
...
Closes #510 .
2015-05-16 23:10:20 +02:00
Florian Bruhin
183049ef2e
Make sure self._opened is reset on exceptions.
2015-05-16 22:48:13 +02:00
Florian Bruhin
c762340a0c
Add --datadir/--cachedir arguments. Closes #136 .
2015-05-16 22:12:27 +02:00
Florian Bruhin
9b372de4a9
Use fake-key scrolling for :scroll-perc 0/100.
2015-05-16 15:51:41 +02:00
Florian Bruhin
ad338e7a17
Add setting to enable/disable hyperlink auditing.
...
See #612 .
2015-05-16 00:46:39 +02:00
Florian Bruhin
0cabedfeef
Add settings to enable/disable CSS regions.
...
See #612 .
2015-05-16 00:46:27 +02:00
Florian Bruhin
cd53318c7f
Add setting to enable/disable WebGL.
...
See #612 .
2015-05-16 00:31:13 +02:00
Florian Bruhin
f855d5f349
Add support for smooth scrolling.
...
See #612 .
2015-05-15 23:53:08 +02:00
Florian Bruhin
e3bfe73442
Fix :scroll-page.
2015-05-15 21:32:42 +02:00
Florian Bruhin
7e2c67a7e4
Fix tests/lint.
2015-05-15 20:25:29 +02:00
Florian Bruhin
12940eb542
Handle QtInfoMsg (Qt 5.5) in qt_message_handler.
2015-05-15 20:15:09 +02:00
Florian Bruhin
aaf09dc573
Add possibility to hide command args from docs.
2015-05-15 19:19:30 +02:00
Florian Bruhin
f49dba6e38
Use fake key events for scrolling.
...
Closes #669 .
Fixes #218 .
See #246 , #534 .
2015-05-15 19:02:33 +02:00
Florian Bruhin
c236046a73
Avoid double-opening LineParser.
...
Hopefully helps with diagnosing #670 .
2015-05-14 15:11:16 +02:00
Florian Bruhin
17fc6622bb
Strip NUL bytes when loading history.
...
This is a workaround so people can start qutebrowser again, but the real bug
should be found and fixed...
See #670 .
2015-05-13 23:46:22 +02:00
Florian Bruhin
d992caf8fc
Clean up statusbar caret handling.
2015-05-13 22:44:37 +02:00
Florian Bruhin
947dcd556b
Clean up CaretKeyParser.
2015-05-13 22:29:21 +02:00
Florian Bruhin
bc54eb8671
Make get_modeman private again.
2015-05-13 22:27:54 +02:00
Florian Bruhin
222627b08d
Clean up caret initialisation.
2015-05-13 22:25:21 +02:00
Florian Bruhin
a728704cce
toggle-selection cleanup
2015-05-13 21:52:42 +02:00
Florian Bruhin
f8f8699ab8
Fix key config migration for rapid hinting.
2015-05-13 10:45:20 +02:00
Florian Bruhin
f6ef657952
Fix default search binding.
2015-05-13 08:26:56 +02:00
Florian Bruhin
a93bf184aa
Fix lint.
2015-05-13 08:05:33 +02:00
Florian Bruhin
f59a147589
Leave mode when yanking by default.
...
See #653 .
2015-05-13 07:58:33 +02:00
Florian Bruhin
866b299fef
Fix adding of new default section to keyconf.
...
When trying to add a new binding with multiple values, the bindings were added
immediately and the next _is_new() check returned False because the command was
already bound.
With this change, the new bindings first get added to a temporary dict so
_is_new() returns the correct result.
See #653 .
2015-05-13 07:55:49 +02:00
Florian Bruhin
a74a9c8a21
Fix adding of new default section to keyconf.
...
When trying to add a new binding with multiple values, the bindings were added
immediately and the next _is_new() check returned False because the command was
already bound.
With this change, the new bindings first get added to a temporary dict so
_is_new() returns the correct result.
See #653 .
2015-05-13 07:54:06 +02:00
Florian Bruhin
88fc186402
Add tmux-like Enter binding.
...
See #653 .
2015-05-13 07:29:59 +02:00
Florian Bruhin
ce1b82616d
Fix spelling.
2015-05-13 07:29:59 +02:00
Florian Bruhin
dd0e230a32
Re-add v keybinding for toggle-selection.
...
See #653 .
2015-05-13 07:29:59 +02:00
Florian Bruhin
e62ba57291
Always save last window session.
...
len(objreg.window_registry) can actually lag behind because single-shot QTimers
are used to remove the windows from the registry - but actually it doesn't even
matter if this is the last window or not. We just always save to
SessionManager._last_window_session, and it gets used in SessionManager.save.
Fixes #650 .
2015-05-12 21:04:18 +02:00
Florian Bruhin
54ae6a63ee
Fix lint.
2015-05-12 17:58:53 +02:00
Florian Bruhin
a960658617
js: Fix more lint.
2015-05-12 07:16:16 +02:00
Florian Bruhin
28ec7b4698
js: Fix radix parameters.
2015-05-12 07:16:13 +02:00
Florian Bruhin
d1e88c5e8d
js: Add 'var'.
2015-05-12 07:16:10 +02:00
Florian Bruhin
3f21ac6b6a
js: Use an IIFE.
2015-05-12 07:16:10 +02:00
Florian Bruhin
7a67af24f0
js: Fix some lint.
2015-05-12 07:16:08 +02:00
Austin Anderson
229733f1b0
Properly distinguish between statusbar modes when styling line input.
2015-05-11 22:46:26 -04:00
Austin Anderson
0d66647918
Set extra foreground colors to match the default by default.
2015-05-11 22:35:44 -04:00
Austin Anderson
14c1332017
Reordered statusbar stylesheet to match configuration ordering.
2015-05-11 22:28:12 -04:00
Austin Anderson
1a2a57d59e
Added command mode color configuration options.
...
Including necessary tracker variable _command_active.
2015-05-11 22:27:21 -04:00
Florian Bruhin
418934644b
Improve docstrings.
2015-05-11 22:29:44 +02:00
Florian Bruhin
1f94e0fee6
js: Remove obsolete argument to createTreeWalker.
...
"createNodeIterator() and createTreeWalker() now have optional arguments and
lack a fourth argument which is no longer relevant given entity references
never made it into the DOM."
2015-05-11 20:33:42 +02:00
Florian Bruhin
a36c0fcd4c
Fix lint.
2015-05-11 20:32:27 +02:00
Florian Bruhin
d3c6ebcf15
Rename caret_selection to caret-selection.
2015-05-11 20:21:01 +02:00
Florian Bruhin
6f620a6a9e
Handle title correctly for pages without title.
...
Fixes #667 .
2015-05-11 19:11:49 +02:00
Austin Anderson
244d2753df
Reordered fg/bg statusbar color options
...
Options are now all fg, bg for each variant.
2015-05-10 15:33:58 -04:00
Florian Bruhin
99a4765e75
Fix confusing websetting log output.
2015-05-10 14:50:56 +02:00
Austin Anderson
69f729dbe5
Added foreground color settings for statusbar messages.
2015-05-09 18:07:40 -04:00
Florian Bruhin
3b5b49daac
Move quitter/signal/crash_handler out of qApp.
2015-05-07 09:23:34 +02:00
Artur Shaik
57cad14714
Move JS snippet in external js file.
2015-05-07 12:41:02 +06:00
Artur Shaik
778ad5df3a
Comment clean.
2015-05-07 12:23:33 +06:00
Artur Shaik
d936be450b
Add jumps through text blocks in caret mode.
2015-05-07 12:19:35 +06:00
Artur Shaik
178d0dfa58
Add count for actions. Zero key treat as command.
2015-05-07 11:51:10 +06:00
Florian Bruhin
564a589bc6
Fix indent.
2015-05-06 23:36:01 +02:00
Florian Bruhin
9ceb43ec44
Make F
(:hint tab) honour background-tabs.
...
Fixes #621 .
2015-05-06 23:25:42 +02:00
Florian Bruhin
98596d439f
Emit ClickTarget from HintManager.start_hinting.
...
This is much clearer than transmitting a string which must match the
ClickTarget enum.
2015-05-06 23:17:23 +02:00
Florian Bruhin
21dfcf1e1b
Add some bindings to switch hint modes.
...
Fixes #613 .
2015-05-06 22:38:41 +02:00
Florian Bruhin
2f0b976bca
Leave and re-enter hint mode when double-hinting.
...
See #613 .
2015-05-06 22:38:08 +02:00
Florian Bruhin
9a5839650c
Allow 'yes' value for geolocation/notifications.
...
Fixes #655 .
2015-05-06 22:21:11 +02:00
Florian Bruhin
deb3c31f2f
Merge branch 'refactor'
2015-05-06 21:51:04 +02:00
Florian Bruhin
2d91ff3f5d
Fix line lengths.
2015-05-06 16:47:52 +02:00
Fritz V155 Reichwald
b98bafaefe
Add C-M and C-J for every command that got Return as key
2015-05-06 16:33:12 +02:00
Fritz V155 Reichwald
8806aac362
Add Ctrl-M as keybind for command-accept
2015-05-06 16:11:30 +02:00
Florian Bruhin
024549e3b0
Use a namedtuple for authentication prompts.
2015-05-06 11:05:17 +02:00
Florian Bruhin
842c69dfdd
Cache proxy authentication credentials.
2015-05-06 10:46:42 +02:00
Florian Bruhin
2777e4113e
Fix shutdown
2015-05-06 07:35:11 +02:00
Florian Bruhin
8aec5244de
Fix crash restart.
2015-05-06 07:11:14 +02:00
Artur Shaik
d594798db8
Implement caret selection and positioning
...
Added option to webview for selection enabled caret mode.
In status bar checking value of this option to identificate about it.
Added bindings: <Space> for toggle selection mode, <Ctrl+Space> drop
selection and keep selection mode enabled.
In webview added javascript snippet to position caret at top of the
viewport after caret enabling. This code mostly was taken from cVim sources.
2015-05-05 10:18:24 +06:00
Artur Shaik
aeaa20c3b7
Disable support count for CaretKeyParser
...
Allow using '0' for move caret to beginnig of the line.
2015-05-04 18:00:40 +06:00
Florian Bruhin
f499fd85d0
Fix IPC.
2015-05-01 14:46:17 +02:00
Florian Bruhin
d3a7b2e4ca
Big refactoring of app.py.
2015-04-30 07:37:25 +02:00
Florian Bruhin
32562c6878
Fix lint.
2015-04-28 16:50:42 +02:00
Florian Bruhin
9e8c781871
Use clearFocus/setFocus as workaround.
2015-04-28 16:12:23 +02:00
Florian Bruhin
640f758605
Merge branch 'master' into visual
...
Conflicts:
qutebrowser/browser/commands.py
2015-04-28 15:54:26 +02:00
Florian Bruhin
844473e47a
Fix /-foo searches.
2015-04-24 17:25:53 +02:00
Florian Bruhin
07552dddfe
Merge pull request #648 from hackebrot/sync-2
...
Sync pytest changes
2015-04-22 06:40:04 -07:00
Florian Bruhin
e1f2259e98
Fix typo.
2015-04-22 07:46:01 +02:00
Florian Bruhin
4925091ede
Merge branch 'master' of github.com:The-Compiler/qutebrowser
2015-04-22 07:43:01 +02:00
Florian Bruhin
c21ae0b651
Add a :debug-webaction command.
2015-04-22 07:13:56 +02:00
Florian Bruhin
6ca39dd851
Handle --relaxed-config for keys.conf as well.
2015-04-21 22:48:45 +02:00
Florian Bruhin
6c8e073dc8
Merge branch 'caret_visual_mode' of https://github.com/artur-shaik/qutebrowser into visual
...
Conflicts:
qutebrowser/browser/commands.py
qutebrowser/browser/webview.py
qutebrowser/config/configdata.py
2015-04-21 21:29:00 +02:00
Florian Bruhin
3164ee06eb
Handle new sections in KeyConfgParser._is_new().
2015-04-21 18:32:32 +02:00
Florian Bruhin
9ee74253e4
Remove name annotation for cmdutils.register.
...
See #637 .
2015-04-20 22:25:27 +02:00
Florian Bruhin
b805f903c9
Fix lint.
2015-04-20 20:50:51 +02:00
Florian Bruhin
f7cf33b596
Remember web inspector geometry in state file.
2015-04-20 20:40:03 +02:00
Florian Bruhin
7439586334
Move special params to cmdutils.register decorator
...
See #637 .
2015-04-20 19:33:05 +02:00
Florian Bruhin
0195cb31bb
Don't set scope in cmdutils.register w/o instance.
2015-04-20 18:55:22 +02:00
Florian Bruhin
8f1b074595
Show commandline being executed with :spawn.
...
Closes #616 .
2015-04-20 18:44:58 +02:00
Florian Bruhin
94d49b4801
Add :message-{info,error,warning} commands.
2015-04-20 18:32:15 +02:00
Florian Bruhin
f93eef848c
Store QUTE_TEXT/QUTE_HTML in files for userscripts.
...
Fixes #644 .
2015-04-20 07:50:47 +02:00
Florian Bruhin
9442fd4b75
Release v0.2.1
2015-04-19 20:04:14 +02:00
Florian Bruhin
5b48b0a7fe
Release v0.2.0
2015-04-19 18:29:27 +02:00
Florian Bruhin
42577b454b
Fix download view popping up as window on start.
...
This is a regression introduced in cc2c7c09ea
as
show() was called before the downloadview was added to the mainwindow vbox.
See #575 .
2015-04-19 17:30:58 +02:00
Florian Bruhin
43df32949d
Refactor IPC exceptions handling.
...
Also fixes an IPC error when qutebrowser was started twice without delay
between the invocations.
2015-04-17 19:24:27 +02:00
Florian Bruhin
38d34e1dea
Fix deprecation message for :cancel-download.
2015-04-17 14:33:45 +02:00
Florian Bruhin
4436941d97
Clean up unused imports.
2015-04-17 08:00:56 +02:00
Florian Bruhin
006b7716c8
Move WebPage init out from QWebView's __init__.
2015-04-17 08:00:15 +02:00
Florian Bruhin
ffd1e673b3
Get rid of SearchRunner.
...
A SearchRunner was per-mainwindow, which caused bugs when searching in a tab
and in another before clearing the search.
Instead we now split it between WebView/CommandDispatcher.
Fixes #638 .
2015-04-17 07:51:21 +02:00
Florian Bruhin
71ffe8f656
Use config.get() for qute:settings.
...
Fixes #628 .
2015-04-16 22:20:38 +02:00
Florian Bruhin
508993ac68
Add a special <unbound> command for the keyconf.
...
When a default keybinding is unbound it'd get readded, so we add a new special
<unbound> "command" to the config, and keys listed there won't get rebound
automatically.
Also, :unbind now maps the key to <unbound> if it exists in the default config.
See #525 .
2015-04-16 07:49:27 +02:00
Florian Bruhin
980b3506a3
Don't unnecessarily mark the key config as dirty.
2015-04-16 07:48:57 +02:00
Florian Bruhin
3cf6d1c185
Add missing new keybindings to config.
...
See #525 .
2015-04-16 06:41:00 +02:00
Florian Bruhin
f313bcaf13
Fix for cache never being saved.
...
This is a regression introduced in 76c5c8bf8e
.
See #43 .
2015-04-15 06:54:55 +02:00
Florian Bruhin
d8d29449ca
Improve error message on duplicate keychains.
2015-04-14 07:13:52 +02:00
Florian Bruhin
987bab9960
Merge pull request #19 from hackebrot/parametrize-sub-tests
...
Parametrize sub tests
2015-04-14 07:01:53 +02:00
Florian Bruhin
a6e3199616
Fix binding of special keys with lower-case mods.
2015-04-13 22:08:57 +02:00
Florian Bruhin
982733e1f4
Allow commands with ;; with :bind.
2015-04-13 21:21:26 +02:00
Florian Bruhin
4e18e54803
Fix handling of flags with args with maxsplit #2 .
...
Fixes #614 .
We only added the long variant of the flag, but not the short one.
2015-04-13 21:12:14 +02:00
Florian Bruhin
501138d5a0
Fix splitting of flags with args with maxsplit.
...
See #614 .
flags_with_args was set on keyword-only arguments, but an argument (like
--force for :bind) can also be keyword-only *and* bool.
2015-04-13 21:07:58 +02:00
Florian Bruhin
b609f993c3
Add a timeout to HTTPClient.
...
Fixes #629 .
2015-04-13 20:59:05 +02:00
Florian Bruhin
9381aac501
Merge {Pastebin,PyPIVersion}Client into HTTPClient.
2015-04-13 20:42:28 +02:00
Artur Shaik
e603d9a2d0
Slight modify of autofocus caret
...
Make mouseclick event point slightly down.
Add commented tries of more reliable methods of caret focusing.
2015-04-13 19:55:45 +06:00
Artur Shaik
a6443231e5
Add statusbar coloring for caret and visual modes
2015-04-13 19:50:27 +06:00
Artur Shaik
941eac848e
Remove "c" key from normal -> caret mode key bindings
2015-04-13 18:37:33 +06:00
Florian Bruhin
3e1d62171f
Ignore -psn_0_* argument on OS X.
...
See #384 .
2015-04-13 14:33:46 +02:00
Florian Bruhin
39f7850942
Fix lint.
2015-04-13 08:52:58 +02:00
Florian Bruhin
c071bcbec8
Clean up loggers.
2015-04-13 08:49:04 +02:00
Florian Bruhin
f85ba8645f
Handle a missing session folder at some places.
2015-04-13 08:38:12 +02:00
Florian Bruhin
d700d18780
Fix handling of no_cmd_split cmds with args.
...
When we have something like ":bind x foo;;bar" it wasn't recognized "bind" is a
no_cmd_split command because we tried to look up "bind x foo" in cmd_dict.
See #615 .
2015-04-13 07:39:18 +02:00
Florian Bruhin
e24b06cdf9
Refactor and fix split commands in CommandRunner.
...
- split() now returns a ParseResult namedtuple with (cmd, args, cmdline)
arguments instead of only returning cmdline and setting self._cmd/self._args.
- Handling of split commands (;;) is now done in a separate parse_all()
function instead of run() to make testing easier.
See #615 .
2015-04-13 07:38:25 +02:00
Florian Bruhin
6b0c16f109
Fix default 'ga' binding.
2015-04-11 13:20:56 +02:00
Florian Bruhin
31bcc70efb
Treat commands using ;; in key config as valid.
2015-04-10 19:45:59 +02:00
Florian Bruhin
f865b87a74
Show a message and update notifier on reports.
...
Fixes #340 .
Fixes #447 .
See #429 .
2015-04-10 08:09:18 +02:00
Florian Bruhin
e294e325f0
Ignore invalid history entries on start.
2015-04-10 06:40:48 +02:00
Bruno Oliveira
29c51c288b
Fix small typo in docstring
2015-04-09 18:47:25 -03:00
Florian Bruhin
8d98868ccd
Fix deprecated default keybindings.
...
Those were auto-corrected with the next run, but still are bad...
2015-04-09 20:36:11 +02:00
Florian Bruhin
83dbe48469
Refactor EventFilter.
2015-04-09 20:22:00 +02:00
Florian Bruhin
f77ba5744b
Add a ui -> hide-mouse-cursor option.
2015-04-09 19:59:16 +02:00
Artur Shaik
695712e50c
Basic caret and visual modes implementation
...
Allow user switch in caret mode for browsing with caret, and visual mode
for select and yank text with keyboard.
Default keybindings is c or v for caret mode, and again v for visual mode. All
basic movements provided by WebAction enum implemened with vim-like
bindings. Yanking with y and Y for selection and clipboard respectively.
There is bug/feature in WebKit that after caret enabled, caret doesn't
show until mouse click (or sometimes Tab helps). So I add some workaround
for that with mouse event. I think should be better aproach.
Signed-off-by: Artur Shaik <ashaihullin@gmail.com>
2015-04-09 22:55:42 +06:00
Florian Bruhin
7160a89cb9
Fix NameError in hints.py.
2015-04-09 17:47:09 +02:00
Florian Bruhin
2d8df76609
Add $QUTE_HTML and $QUTE_TEXT for userscripts.
2015-04-09 17:45:16 +02:00
Joel Torstensson
12c83b721f
Fixed some style errors.
2015-04-09 12:49:32 +02:00
Joel Torstensson
cc2c7c09ea
Changing position without restart now possible.
2015-04-09 11:47:35 +02:00
Joel Torstensson
2fa66ba250
Added option for downloadview placement.
2015-04-09 11:44:59 +02:00
Florian Bruhin
76651822bd
Merge pull request #16 from hackebrot/layout
...
Adopt test layout to pytest.
2015-04-08 14:03:02 +02:00
Florian Bruhin
1345a13a71
Add startpage/default-page to tabs -> last-close.
2015-04-07 17:36:19 +02:00
Florian Bruhin
4e2ef45cd8
Ignore Qt warning about WOFF/zlib.
2015-04-07 13:00:26 +02:00
Florian Bruhin
b1c475c61d
Use **kwargs to simplify cmdutils.register.
2015-04-06 17:25:42 +02:00
Florian Bruhin
20f0ef7ccc
Ignore ;; for splitting with some commands.
...
Fixes #405 .
2015-04-06 17:00:52 +02:00
Florian Bruhin
46d1760798
Keep progress bar height fix on multiline text.
...
See #364 and #63 .
2015-04-06 14:27:41 +02:00
Florian Bruhin
2876ba5cfa
Pass a parent to global QObjects.
2015-04-06 00:10:37 +02:00
Florian Bruhin
d83da987ae
Move SessionManager init to sessions.py.
2015-04-05 23:44:25 +02:00
Florian Bruhin
9b8f5e3ff0
Make the default session name configurable.
...
See #523 .
2015-04-05 23:30:43 +02:00
Florian Bruhin
476ccd8fe1
Add tab-bg{,-silent} to new-instance-open-target.
2015-04-05 21:34:41 +02:00
Bruno Oliveira
3864eff0be
Merge remote-tracking branch 'origin/master' into layout
2015-04-05 12:27:55 -03:00
Florian Bruhin
8bbff689b4
Add a -t/--temp flag to :session-load.
...
See #523 .
2015-04-05 16:06:41 +02:00
Florian Bruhin
17ebbc37c5
Add a -c/--current parameter to :session-save.
...
See #523 .
2015-04-05 16:04:03 +02:00
Bruno Oliveira
3de584f02c
Moving testfile used by test_utils into qutebrowser.utils
2015-04-04 19:15:23 -03:00
Florian Bruhin
84d2556863
Merge branch 'master' of github.com:The-Compiler/qutebrowser
2015-04-04 22:05:31 +02:00
Florian Bruhin
1fdd7051c3
config: Filter docs for change_filter.
2015-04-04 22:03:28 +02:00
Florian Bruhin
57158e7191
Don't make default config a mutable global.
...
Before, configdata.DATA only existed once - that means when something
manipulated it, instantiating a new ConfigManager actually gave us the
*modified* rather than the default data.
There's still a (now readonly) configdata.DATA for performance reasons -
before, the settings completion model called data() many times, which caused
initializing of it taking a few (instead of nearly 0) seconds.
See https://github.com/hackebrot/qutebrowser/pull/16#discussion-diff-27770433
2015-04-04 22:01:02 +02:00
Bruno Oliveira
4fa2294805
Merge remote-tracking branch 'origin/master' into layout
...
Conflicts:
qutebrowser/test/keyinput/test_basekeyparser.py
qutebrowser/test/utils/test_standarddir.py
test/browser/http/test_content_disposition.py
test/config/test_configtypes.py
test/misc/test_editor.py
test/utils/test_debug.py
test/utils/test_utils.py
tox.ini
2015-04-04 14:29:49 -03:00
Florian Bruhin
cef88d6e19
test_log_time: Prettify duration assertion.
...
As suggested by @nicoddemus in #13 .
2015-04-04 16:33:10 +02:00
Florian Bruhin
b2df5a5b47
docs: Make it clear cache settings are global.
...
Closes #602 .
2015-04-04 15:31:12 +02:00
Florian Bruhin
18dea8c7cb
Add note about about:blank to default-page docs.
2015-04-04 15:10:22 +02:00
Florian Bruhin
217e788f4b
Add 'cd' shortcut to clear downloads.
2015-04-04 15:02:08 +02:00
Florian Bruhin
f1ebbda7a0
test_signal: Add docstring for signal().
2015-04-04 12:08:22 +02:00
Florian Bruhin
8e93747040
test_log_time: Fix/simplify duration assert.
...
See #13 .
2015-04-04 12:07:15 +02:00
Raphael Pierzina
dd4096b5a4
Merge remote-tracking branch 'upstream/master'
2015-04-04 11:12:39 +02:00
Florian Bruhin
e23c9401f2
Merge branch 'convert-debug-signal-tests'
2015-04-04 01:18:38 +02:00
Florian Bruhin
cd7319de1e
Merge branch 'convert-logtime-tests'
2015-04-04 01:12:18 +02:00
Florian Bruhin
80b0692971
Remove blank line to make pep257 happy.
2015-04-04 01:11:57 +02:00
Florian Bruhin
1c9f116370
Merge branch 'convert-qflags-key-tests'
2015-04-03 23:52:53 +02:00
Florian Bruhin
2ac0c7b8f0
Remove now unused import from test_debug.
2015-04-03 23:52:13 +02:00
Florian Bruhin
05087b976a
test_qflags_key: Improve xfail message.
2015-04-03 23:43:06 +02:00
Florian Bruhin
544dc650e7
Remove now unused imports from test_debug.
2015-04-03 23:23:31 +02:00
Florian Bruhin
0e76f9b1f1
Whitespace adjustments
2015-04-03 23:19:49 +02:00
Florian Bruhin
e94a8a80f1
test_qenum_key: Use hasattr() for attribute checks.
2015-04-03 23:18:56 +02:00
Florian Bruhin
fba0ae69ce
Remove test_reconverted from qenum_key tests.
...
The test didn't really seem to test anything useful, and also uses a QFlags
instead of a QEnum.
2015-04-03 23:05:08 +02:00
Raphael Pierzina
231feda2c8
Use logger with name of local var logger_name
2015-04-03 22:45:26 +02:00
Raphael Pierzina
efbc8e0cbf
Remove former unittest module test_debug.py
2015-04-03 21:55:19 +02:00
Raphael Pierzina
7540a5bbf4
Convert test_dbg_signal_newline
2015-04-03 21:54:24 +02:00