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
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Florian Bruhin
fcf94fd527
Remove various deprecated commands/arguments.
2015-12-20 18:38:29 +01:00
Florian Bruhin
ea06c64ed4
Fix typos.
2015-11-23 11:17:26 +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
Florian Bruhin
9cfd96fcef
Make :follow-hint take a keystring.
2015-11-09 07:35:56 +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
749d7bfc3c
Add backticks to docs.
2015-10-08 10:47:36 +02:00
Peter Michely
bfccb91e42
Changed code and docs according to comments
2015-10-08 10:13:47 +02:00
Florian Bruhin
36adaf0cf3
Simplify argument handling for DownloadManager.
2015-08-06 20:41:57 +02:00
Florian Bruhin
46f3be2df7
Add rapid hinting for downloads.
2015-08-06 19:09:21 +02:00
Florian Bruhin
0330adf284
Filter links for :navigate.
2015-08-03 23:21:20 +02:00
Florian Bruhin
7b8490b6c0
Fix 'an user' spelling.
2015-06-29 17:49:19 +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
17bb9fc21c
Use QProcess instead of subprocess.
...
Closes #646 .
Fixes #688 .
2015-06-11 20:28:04 +02:00
Florian Bruhin
564a589bc6
Fix indent.
2015-05-06 23:36:01 +02:00
Florian Bruhin
9ceb43ec44
Make F
(:hint tab) honour background-tabs.
...
Fixes #621 .
2015-05-06 23:25:42 +02:00
Florian Bruhin
98596d439f
Emit ClickTarget from HintManager.start_hinting.
...
This is much clearer than transmitting a string which must match the
ClickTarget enum.
2015-05-06 23:17:23 +02:00
Florian Bruhin
2f0b976bca
Leave and re-enter hint mode when double-hinting.
...
See #613 .
2015-05-06 22:38:08 +02:00
Florian Bruhin
7439586334
Move special params to cmdutils.register decorator
...
See #637 .
2015-04-20 19:33:05 +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
7160a89cb9
Fix NameError in hints.py.
2015-04-09 17:47:09 +02:00
Florian Bruhin
2d8df76609
Add $QUTE_HTML and $QUTE_TEXT for userscripts.
2015-04-09 17:45:16 +02:00
Florian Bruhin
8ebac8d38c
Various spelling fixes.
2015-03-31 21:11:47 +02:00
Florian Bruhin
b2427701fa
Handle element webFrame being None when hinting.
2015-03-29 19:52:30 +02:00
Florian Bruhin
565303ebcd
Fix hinting when page has no URL set yet.
2015-03-20 08:35:33 +01:00
Florian Bruhin
d87a1bb2b4
Add a hints -> scatter option.
...
This is enabled by default to keep the same default behaviour which is like
Vimium - mixing e.g. single-char letters and double-char letters, and
scattering/shuffling the labels to have an uniform hint key distribution.
If disabled, the behaviour is more similiar to dwb, which has a fixed hint
string length and simply fills the string starting with the first possible hint
char.
2015-03-10 21:19:47 +01:00
Florian Bruhin
2f0522ebb0
Add a --rapid option to :hint, remove rapid target
...
This makes it possible to use rapid hinting for the run/hover/userscript/spawn
targets as well, and makes more sense anyways.
2015-03-10 19:40:30 +01:00
Florian Bruhin
a76868c0f4
Refactor how click/hint open targets are handled.
2015-02-26 20:41:04 +01:00
Florian Bruhin
a12dee8898
hints: Include button in buttons().
...
From the QMouseEvent::buttons documentation:
For mouse move events, this is all buttons that are pressed down. For mouse
press and double click events this includes the button that caused the
event. For mouse release events this excludes the button that caused the
event.
2015-02-26 20:12:48 +01:00
Florian Bruhin
ddb39275eb
Simulate Ctrl-click when hinting in new tab/win.
...
This works around the fact some pages (e.g. github) load their content via AJAX
on a normal left click, so we'll never get acceptNavigationRequest and thus
can't open them in a new tab.
Fixes #488 .
2015-02-26 20:11:13 +01:00
Florian Bruhin
0d9bf5e2c9
Fix lint.
2015-02-26 06:13:27 +01:00
Samir Benmendil
81af41d77f
Add option to set minimum number of chars in hints
2015-02-26 00:49:50 +00:00
Florian Bruhin
0fcd016427
Move cursor to end of textboxes when hinting.
2015-02-25 19:56:03 +01:00
Florian Bruhin
56b0ae2b6e
Get rid of mainwindow.MainWindow.spawn.
2015-02-16 22:56:12 +01:00
Florian Bruhin
18b58b2001
Set a higher z-index for hint labels.
...
This fixes hinting on the youtube top bar.
Fixes #496 .
2015-02-02 06:35:45 +01:00
Florian Bruhin
aae33a0308
Handle another webelem.IsNullError with hints.
2015-01-16 09:09:12 +01:00
Florian Bruhin
77df4c7241
Add !important to all hint properties.
2015-01-06 17:10:54 +01:00
Error 800
82ee78b3db
Added !important to hint styles
...
Prevents websites from overriding hint styles
2015-01-06 16:23:45 +01:00
Error 800
c008ee8dd7
Added !important to hint styles
...
Prevents websites from overriding hint styles
2015-01-06 16:13:28 +01:00
Error 800
ce5629eab3
Fixed uppercase hints option
...
Corrected CSS property from 'texttransform' to 'text-transform'
2015-01-05 16:20:45 +01:00
Florian Bruhin
efe96462c9
Pass more useful information to userscripts.
...
Closes #379 .
2015-01-04 20:16:15 +01:00
Florian Bruhin
013f906c3b
hints: Small cleanup (add _show_url_error method).
2015-01-04 20:15:45 +01:00
Florian Bruhin
450d1ab70d
Update copyright years
2015-01-03 15:51:31 +01:00
Florian Bruhin
03ac8874ff
Rewrite keymode handling to use only one mode.
...
Fixes #417 .
Fixes #418 .
See 4ab5d2df28
.
2014-12-28 00:01:27 +01:00
Florian Bruhin
67001665a2
Cleanups in hint.py.
2014-12-13 00:30:35 +01:00
Johannes Altmanninger
d0bed460eb
Hints: Use the src html attribute in addition to href in _resolve_url.
...
See issue #286
2014-12-12 18:40:12 +01:00
Johannes Altmanninger
582e3e57e9
Add hint target 'run' to execute a command based on a hint URL.
...
Fixes Issue #285 .
The command is not preceded by a colon because there is no need to
distinguish between a search and a command.
2014-12-12 18:17:58 +01:00
Florian Bruhin
841e31283c
hints: Store id() of destroyed frames.
...
Fixes #305 . #152 should still be okay.
2014-12-12 01:38:13 +01:00
Florian Bruhin
aefa637bc5
Check if command text is valid when hinting.
2014-12-11 22:16:56 +01:00
Florian Bruhin
d0b5f2087a
Fix un-hiding of hints.
2014-12-10 23:22:25 +01:00
Florian Bruhin
d94f848c82
Ignore isNullError while handling label elements.
...
Fixes #295 (hopefully for real this time!)
2014-12-02 21:27:06 +01:00
Florian Bruhin
99fb516aa3
Never disconnect signal from destroyed frames.
...
Fixes #152 - hopefully really this time!
2014-12-02 21:09:03 +01:00
Florian Bruhin
9fa036ecce
Remove logging for #152 .
...
This reverts a1ba05ff08
.
2014-12-01 22:29:32 +01:00
Florian Bruhin
e8a6238028
Clean up hint labels and frames before clicking link.
...
Fixes #152 .
Hopefully fixes #295 .
2014-12-01 19:15:17 +01:00
Florian Bruhin
655115858c
Handle OSError when using subprocess.
2014-11-23 18:07:05 +01:00
Florian Bruhin
ecbebba9e9
hints: Ignore TypeError when disconnecting contentsSizeChanged.
...
Fixes #263 .
2014-11-16 00:05:20 +01:00
Florian Bruhin
b502280c06
Make download-manager a per-window object.
...
Fixes #228 .
2014-11-11 21:36:47 +01:00
Florian Bruhin
326ce91eb7
Append hint elements inside body.
...
Fixes #226 .
2014-11-09 22:02:08 +01:00
Florian Bruhin
c3a83bc412
Add hover description to docstring ( #238 )
2014-11-02 20:08:40 +01:00
Florian Bruhin
7b670b134d
Small whitespace fix for #238
2014-11-02 20:04:41 +01:00
rikn00
4d101eea59
Improve hovering a hint
2014-11-02 16:37:34 +02:00
rikn00
84759a4928
Add support to hover mouse over a hint
2014-11-01 01:54:19 +02:00
Florian Bruhin
8e0e33e89a
Use QWebElement API to set hint elem style.
...
See #225 .
2014-10-29 22:50:29 +01:00
Florian Bruhin
2937fb9232
Use QWebElement API to set hint elem attributes.
...
Fixes #225 .
2014-10-29 21:01:32 +01:00
Florian Bruhin
a1ba05ff08
Add some logging for #152
2014-10-29 07:09:43 +01:00
Florian Bruhin
0c8b9fe095
Add vdebug logging for hints.
...
This hopefully helps with #225 .
2014-10-28 19:00:41 +01:00
Florian Bruhin
2d9425a0b7
Fix uppercase hint formatting.
2014-10-26 17:05:56 +01:00
Peter Vilim
ee875ba895
hints: Show uppercase hint chars #73
2014-10-26 03:04:48 -05:00
Florian Bruhin
c2daadf0bd
Fix exception when element has no web frame.
2014-10-22 20:18:58 +02:00
Florian Bruhin
5a5ff70703
hints: fix replacing of {hint-url}.
...
Fixes #200 .
2014-10-17 11:39:44 +02:00
Florian Bruhin
ee02f339d7
Draw hints correctly when page is zoomed.
...
Fixes #199 .
2014-10-17 11:32:41 +02:00
Florian Bruhin
d9213ecf17
Prevent double-entering hint mode. Fixes #160 .
2014-10-08 22:19:24 +02:00
Florian Bruhin
596afab1ac
Fix lint
2014-10-07 23:10:58 +02:00
Florian Bruhin
f9dc9f4acd
Fix rapid hinting. Closes #148 .
2014-10-07 07:45:29 +02:00
Florian Bruhin
d2b3f89d78
Remove frame signal workaround for hints. See #152 .
2014-10-07 07:15:14 +02:00
Florian Bruhin
105c25bc5f
Merge branch 'multiwin'
...
Conflicts:
qutebrowser/app.py
qutebrowser/browser/commands.py
qutebrowser/browser/hints.py
qutebrowser/keyinput/modeman.py
qutebrowser/network/networkmanager.py
qutebrowser/widgets/mainwindow.py
qutebrowser/widgets/statusbar/command.py
qutebrowser/widgets/statusbar/prompt.py
qutebrowser/widgets/statusbar/prompter.py
qutebrowser/widgets/tabbedbrowser.py
2014-10-06 22:03:58 +02:00
Florian Bruhin
fd9a3fc5e7
Clean up mainwindow import mess.
2014-10-06 21:24:07 +02:00
Florian Bruhin
8eb0489357
Add rapid window hinting.
2014-10-06 19:39:48 +02:00
Florian Bruhin
52e72a8bec
Fix window spawning with hints.
2014-10-06 18:47:55 +02:00
Florian Bruhin
6324751af6
More window support.
2014-10-06 17:58:40 +02:00
Florian Bruhin
85ead4273b
Register tab registry under window registry with ID.
2014-10-06 07:41:05 +02:00
Florian Bruhin
4dcaa1fdec
Be more forgiving when validating URLs. Fixes #141 .
2014-10-03 16:58:30 +02:00