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
Tobias Patzl
b858b6ac75
call e.ignore()
when the event is not handled
2015-05-26 10:24:32 +02: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
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
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
Florian Bruhin
99a4765e75
Fix confusing websetting log output.
2015-05-10 14:50:56 +02: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