Florian Bruhin
776c4c4400
Ensure -t/-b/-w are exclusive in :edit-url
...
Otherwise those would be passed as-is to :open and an unhandled
cmdexc.CommandError would be raised there.
2016-04-06 06:44:50 +02:00
Florian Bruhin
9db697452d
Remove self._editor in CommandDispatcher
...
This was needed before there was editor.ExternalEditor as there were
various commands which needed to access the editor object.
Since this is encapsulated in ExternalEditor now, no need to keep a
reference to the object around.
2016-04-05 18:48:58 +02:00
Florian Bruhin
6b3ee53064
Fix lint
2016-04-05 18:37:50 +02:00
Florian Bruhin
fc92137706
Handle count correctly for :edit-url
2016-04-05 18:37:03 +02:00
Ryan Roden-Corrent
e0d1e527d0
Fix up edit-url implementation.
...
Remove spaces around '=' for kwargs, don't set the _editor member.
2016-04-05 07:49:01 -04:00
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
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
Florian Bruhin
f2f0f429fb
Update docs
2016-03-25 11:10:38 +01:00
Tarcisio Fedrizzi
8f593d948c
Fixing flake8 error
2016-02-28 23:56:23 +01:00
Tarcisio Fedrizzi
25bc2dc1db
Changes formatters to print multiline text on one line
2016-02-28 23:45:02 +01:00
Tarcisio Fedrizzi
0ab44c4f4a
Reformats code as requested
2016-02-28 23:41:20 +01:00
Tarcisio Fedrizzi
702b235981
Fixes formatting to make pylint happy.
2016-02-27 11:54:23 +01:00
Tarcisio Fedrizzi
006d8760c4
Adds path checking to the multiline url heuristic
2016-02-27 11:54:23 +01:00
Tarcisio Fedrizzi
4aa7649c0a
Implemented heurisitc on multiline paste
2016-02-27 11:54:23 +01:00
Florian Bruhin
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
14042403f6
Fix pasting of empty URLs.
2016-02-02 06:37:49 +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
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
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
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
Tarcisio Fedrizzi
4bbc1e2d8a
Changes line as suggested in review
2016-01-12 09:58:08 +01:00
Tarcisio Fedrizzi
1b31a3fee4
Allows to paste multiple URLs
...
- The paste command will now open one tab/window per url if multiple
URLs (separated by newline) are present in the clipboard
- Adds the tests for the new multitab functionality
- Changes test/integration/conftest.py to be able to insert newlines in
the clipboard for the test
2016-01-09 11:32:12 +01:00
Florian Bruhin
3f15186a64
Add some coverage pragmas for caret workarounds.
2016-01-06 17:52:44 +01:00
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
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
31265b80b6
pylint: Add WORKAROUND to some comments.
2015-12-01 21:56:38 +01:00
Artur Shaik
c9d47ae92a
More win32
workarounds
2015-12-01 16:53:07 +06:00
Artur Shaik
25545617a0
Try workaround for win32
platform.
2015-12-01 16:19:13 +06:00
Artur Shaik
3a5ce22eac
Remove unnecessary actions in block jumps.
2015-12-01 13:17:28 +06:00
Artur Shaik
d00f999dcf
move_to_end_of_prev_block
without unnecessary command.
2015-11-30 22:27:24 +06:00
Florian Bruhin
b79049261e
Delay :yank notification until message was yanked.
...
This should make yankpaste tests more reliable.
2015-11-27 18:32:17 +01:00
Florian Bruhin
23068e9679
Don't log yanked test with :yank-selected.
...
It makes our tests fail (invalid log line) and is probably not needed.
2015-11-26 21:23:11 +01:00
Florian Bruhin
8e7a76280b
Use cmdutils.check_exclusive for :tab-clone.
2015-11-26 20:11:53 +01:00
Florian Bruhin
7f5e07d7cc
bdd: Add some tests for :tab-move.
2015-11-26 18:37:47 +01:00
Florian Bruhin
f56e7b1220
Simplify :tab-move code.
2015-11-26 17:44:34 +01:00
Florian Bruhin
987ee59f58
:tab-move: Fix tab index shown in error message.
2015-11-26 16:37:54 +01:00
Florian Bruhin
5a95cfdc7a
Change CommandError to ValueError for :tab-move.
...
This should never happen.
2015-11-26 16:37:29 +01:00
Daniel Schadt
d082c248a8
Disallow empty values in url-incdec-segments
2015-11-25 19:35:37 +01:00
Florian Bruhin
a6045ab551
Handle invalid select-on-remove case.
2015-11-25 18:47:36 +01:00
Florian Bruhin
027a10c04b
bdd: Add some tests for :navigate.
2015-11-24 21:32:45 +01:00
Florian Bruhin
35de87f973
Expand ~ with :dump-page.
2015-11-24 18:04:10 +01:00
Florian Bruhin
b37dac7bfa
Handle errors in :dump-page.
2015-11-24 18:03:39 +01:00
Florian Bruhin
922fdc0526
Fix :fake-key with no focused webview.
2015-11-24 16:28:56 +01:00
Florian Bruhin
607ca0f478
tests: Wait until page is dumped for header check.
...
If we don't do this, it's possible for the test process to delete the temporary
directory before qutebrowser actually writes the file.
2015-11-23 20:12:52 +01:00
Florian Bruhin
31892b437e
Add :debug-dump-page command.
...
This can probably be merged into :download later, when the mess is cleaned up.
2015-11-23 14:35:46 +01:00
Florian Bruhin
16e1a65448
Merge branch 'download-page' of https://github.com/Kingdread/qutebrowser into Kingdread-download-page
2015-11-23 13:16:16 +01:00
Daniel Schadt
c12011c84d
Style fixes
2015-11-21 00:10:49 +01:00
Florian Bruhin
af875f4b8f
Add a :fake-key command.
...
Closes #556 .
See #551 .
2015-11-20 19:06:06 +01:00
Daniel Schadt
d5bc962046
mhtml: Current index != Current tab_id
2015-11-20 18:15:03 +01:00
Daniel Schadt
b38a3caa4c
Hide dest-old in the documentation of download
2015-11-20 16:34:27 +01:00
Daniel Schadt
3438a45b19
Merge branch 'master' into download-page
2015-11-18 19:27:26 +01:00
Florian Bruhin
726525b26a
bdd: Add some more tests for scrolling with floats.
2015-11-17 06:57:33 +01:00
Florian Bruhin
40e2258ef3
Don't accept floats for :scroll-px.
2015-11-17 06:57:13 +01:00
Florian Bruhin
b68adf1245
Merge _scroll_percent into scroll_perc.
2015-11-16 19:05:05 +01:00
Florian Bruhin
a4d15b550e
Abort :back/:forward at beginning/end of history.
2015-11-16 19:03:07 +01:00
Florian Bruhin
7de206e350
Fix :scroll-perc 0/100 0.
2015-11-15 16:38:56 +01:00
Daniel Schadt
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
4e3cd8b9e8
Don't prompt if not storage->prompt-download-dir
2015-11-11 20:39:35 +01:00
Daniel
a1bc020fec
mhtml: Sanitize default filename suggestion
2015-11-09 17:01:08 +01:00
Daniel
f34161423c
Fix "line too long"
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
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
6601df14a3
mhtml: ask before overwriting dest
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
8593144fa7
Make _path_suggestion public
2015-11-09 16:59:16 +01:00
Daniel
6b086d159d
Ask for filename when none is given
2015-11-09 16:59:16 +01:00
Daniel
49a32f0041
First round of lint fixes
2015-11-09 16:59:16 +01:00
Daniel
fbe5386e56
Initial version of website downloader
...
Saving websites as MHTML via :download-whole
Still needs some cleanup and a "ask for save path".
2015-11-09 16:59:16 +01:00
Florian Bruhin
85608a8b8d
Make :scroll error message deterministic.
2015-11-03 22:36:08 +01:00
Florian Bruhin
4f2dbb3a72
Don't show icons when cloning tabs if turned off.
...
Fixes #1007 .
2015-10-10 12:48:45 +02:00
Florian Bruhin
749d7bfc3c
Add backticks to docs.
2015-10-08 10:47:36 +02:00
Peter Michely
bfccb91e42
Changed code and docs according to comments
2015-10-08 10:13:47 +02:00
Florian Bruhin
005753e83e
Remove some dead code.
...
See #973 .
2015-10-04 20:43:29 +02:00
Daniel
4881d81444
Add new configtype: FlagList
...
This class contains validation code shared by ConfirmQuit and
URLSegmentList, that is it checks for duplicate values and compares
each value to valid_values.
2015-10-01 00:40:21 +02:00
Daniel
1bdb012b2c
Add a config option for navigate_incdec
...
Also known as Ctrl-A/Ctrl-X. You can now specify which parts of the URL
should be searched for numbers.
The setting is general->url-incdec-segments and it's a set with valid
values of 'host', 'path', 'query' and 'anchor'.
2015-09-30 19:18:00 +02:00
Florian Bruhin
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
4891fe9457
Always expand ~ when starting scripts.
2015-08-27 20:30:41 +02:00
Florian Bruhin
d3d999e041
Show a confirmation when adding bookmarks.
2015-08-18 19:03:46 +02:00
Florian Bruhin
44f8cf4b1a
Move :tab-focus documentation.
2015-08-11 22:01:18 +02:00
Thorsten Wißmann
da6d12a657
Make tab-focus (bound to gt) behave as in VIM
...
If no count or index is given, tab-focus switches to the next tab (using
tab-next internally). So the keychain gt behaves as gt in vim:
- gt focuses the next tab
- 1gt focuses the first tab
- <n>gt (e.g. 5gt) focuses the n'th (e.g. fith) tab
2015-08-11 10:50:27 +02:00
Florian Bruhin
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
Daniel
c4c3a83ac0
rename url_incdec_number to incdec_number
2015-08-08 00:57:16 +02:00
Daniel
276b163e0d
Move logic from _navigate_incdec to urlutils
...
Also add unittests for url_incdec_number
2015-08-07 18:48:07 +02:00
Daniel
0f3aa0bd8c
Ctrl-A only increments number in path segment
...
This prevents a host like "myfoo42.bar" changing to "myfoo43.bar" when
pressing Ctrl-A. It further prevents increasing the port number, e.g.
going from "foo.bar:8080" to "foo.bar:8081".
2015-08-07 17:21:18 +02:00
Florian Bruhin
36adaf0cf3
Simplify argument handling for DownloadManager.
2015-08-06 20:41:57 +02:00
Florian Bruhin
c016e8a4cf
Improve error handling for quick-/bookmarks.
2015-07-29 12:34:53 +02:00
Florian Bruhin
0acd1b8dc8
Use urlutils.fuzzy_url for loading bookmarks.
2015-07-26 18:52:15 +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
0972087e34
Add a note about #730 to :inspect docs.
...
Fixes #730 .
2015-07-16 20:54:10 +02:00
Florian Bruhin
704c5ff919
Make :yank-selected work in all modes.
2015-07-16 13:57:53 +02:00
Antoni Boucher
5dbaea7a83
Fixed empty title.
2015-07-11 20:28:31 -04:00
Antoni Boucher
4bc2f63608
Renamed bookmark_add to add in bookmark manager.
2015-07-11 19:18:45 -04:00
Antoni Boucher
fe829699be
Merge remote-tracking branch 'upstream/master'
2015-07-11 17:40:43 -04:00
Florian Bruhin
47d5262cd9
Abort scrolling wen reaching min/max position.
...
Fixes #801 .
2015-07-06 15:13:18 +02:00
Florian Bruhin
7b8490b6c0
Fix 'an user' spelling.
2015-06-29 17:49:19 +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
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
efcea65596
Add --quiet argument to :jseval.
2015-06-12 11:24:04 +02:00
Florian Bruhin
8ecc3a3bb0
Fix lint.
2015-06-12 11:22:37 +02:00
Florian Bruhin
ea1921defd
Merge branch 'jseval' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-jseval
2015-06-12 11:21:10 +02:00
Florian Bruhin
d3b727d0c7
Fix lint.
2015-06-11 20:32:27 +02:00
Florian Bruhin
5828bbafe9
Add -v (not -q) to :spawn and make it work with -u.
2015-06-11 20:30:37 +02:00
Florian Bruhin
84dacc9bc8
Remove double output for :spawn.
2015-06-11 20:30:37 +02:00
Florian Bruhin
163bc2e12e
Add GUIProcess.
...
This aims to unify the code which spawns a process and then shows statusbar
notifications when it exited, etc.
2015-06-11 20:30:03 +02:00
Florian Bruhin
1a9bc64776
Display an error on non-zero :spawn exit.
2015-06-11 20:28:05 +02:00
Florian Bruhin
231f1d90ce
Add a -d/--detach argument to :spawn.
2015-06-11 20:28:05 +02:00
Florian Bruhin
17bb9fc21c
Use QProcess instead of subprocess.
...
Closes #646 .
Fixes #688 .
2015-06-11 20:28:04 +02:00
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
cf4b89efe3
Merge remote-tracking branch 'upstream/master'
2015-06-07 14:38:17 -04: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
d60d4d756c
Also yank port number
2015-06-04 13:20:39 +02:00
Martin Tournoij
0132bea42b
Add --domain to yank to yank only the domain
...
... As I want to copy only the domain fairly frequently.
I also changed the message in the statusline to show the actual text being
copied, which I find helpful. But if you disagree, then just undo it (it's not
that important or anything).
2015-06-04 12:20:43 +02:00
Martin Tournoij
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
Antoni Boucher
9582162927
Fixed bookmarks command names.
2015-06-01 17:52:23 -04:00
Antoni Boucher
1698c60124
Merge remote-tracking branch 'upstream/master'
2015-05-31 15:59:46 -04:00
Florian Bruhin
4c8b1be19c
Merge branch 'issue-401' of https://github.com/antoyo/qutebrowser into antoyo-issue-401
2015-05-31 19:46:17 +02:00
Antoni Boucher
3d0721afea
Fixed error messages.
2015-05-31 12:56:08 -04:00
Antoni Boucher
27cbe618f0
Added hasSelection check before trying to click on a selected link.
2015-05-31 12:53:14 -04:00
Antoni Boucher
c0b6aef774
Fixed command name.
2015-05-31 12:50:28 -04:00
Antoni Boucher
d0eda3336c
Added a page variable.
2015-05-31 12:18:27 -04:00
Antoni Boucher
1cd64481de
Fixed for relative url.
2015-05-31 12:13:37 -04:00
Antoni Boucher
87e9888167
Added exception handling for href attribute.
2015-05-31 12:07:08 -04:00
Antoni Boucher
c5c145320c
Fixed exception handling in select_follow command.
2015-05-31 12:02:15 -04:00
Antoni Boucher
4ff9d585ea
Fixed to use qualified import.
2015-05-31 11:56:27 -04:00
Florian Bruhin
54c1cd7c05
Add link to issue.
2015-05-31 15:11:37 +02:00
Florian Bruhin
6b550defae
scroll-page: Add custom metavar for navigate-*.
2015-05-31 15:10:35 +02:00
Florian Bruhin
11b258568d
Improve docstring.
2015-05-31 15:02:09 +02:00
Antoni Boucher
b1f8a70c02
Added try/except for parse error.
2015-05-30 18:03:39 -04:00
Antoni Boucher
989e3b7291
Added a fallback for when JavaScript is disabled.
2015-05-30 13:56:36 -04:00
Antoni Boucher
a56a14fb70
Added the possibility to open a selected link in a new tab.
2015-05-30 13:15:53 -04:00
Antoni Boucher
6ca541d359
Fixed issue #401 .
2015-05-30 10:37:25 -04:00
Martin Tournoij
70956aaeca
oops
2015-05-29 23:57:57 +02:00
Martin Tournoij
9c99c22f1b
Fix issue #701
2015-05-29 23:49:48 +02:00
Martin Tournoij
8c80f99a32
Improve navigate option to scroll_page()
2015-05-29 21:18:44 +02:00
Martin Tournoij
c7dcaff025
Add navigate option to scroll_page()
...
So you can scroll down & navigate when you're at the bottom.
To bind this to space:
scroll-page 0 1 next
<Space>
Not sure if it's a good idea to bind this by default? May surprise some
people...
See #696
2015-05-29 18:35:15 +02:00
Antoni Boucher
ece32e930c
Added bookmarks command.
2015-05-24 19:18:40 -04:00
Antoni Boucher
aaf35536a7
Removed unused commands and renamed bookmark-save command.
2015-05-23 16:02:02 -04:00
Antoni Boucher
2c0c2e220e
Fixed style issue.
2015-05-21 19:38:30 -04:00
Antoni Boucher
28caf45707
First version of bookmarks.
2015-05-21 18:17:22 -04:00
Florian Bruhin
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
dd292b0781
Don't depend on objreg for CommandDispatcher.
...
See #640 .
2015-05-18 21:34:00 +02:00
Florian Bruhin
9b372de4a9
Use fake-key scrolling for :scroll-perc 0/100.
2015-05-16 15:51:41 +02:00
Florian Bruhin
e3bfe73442
Fix :scroll-page.
2015-05-15 21:32:42 +02:00
Florian Bruhin
f49dba6e38
Use fake key events for scrolling.
...
Closes #669 .
Fixes #218 .
See #246 , #534 .
2015-05-15 19:02:33 +02:00
Florian Bruhin
a728704cce
toggle-selection cleanup
2015-05-13 21:52:42 +02:00
Florian Bruhin
f59a147589
Leave mode when yanking by default.
...
See #653 .
2015-05-13 07:58:33 +02:00
Florian Bruhin
88fc186402
Add tmux-like Enter binding.
...
See #653 .
2015-05-13 07:29:59 +02:00
Florian Bruhin
54ae6a63ee
Fix lint.
2015-05-12 17:58:53 +02:00
Florian Bruhin
418934644b
Improve docstrings.
2015-05-11 22:29:44 +02:00
Florian Bruhin
a36c0fcd4c
Fix lint.
2015-05-11 20:32:27 +02:00
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
Artur Shaik
489c913e58
Implement caret selection and positioning
...
Added option to webview for selection enabled caret mode.
In status bar checking value of this option to identificate about it.
Added bindings: <Space> for toggle selection mode, <Ctrl+Space> drop
selection and keep selection mode enabled.
In webview added javascript snippet to position caret at top of the
viewport after caret enabling. This code mostly was taken from cVim sources.
2015-05-05 12:21:48 +06:00
Florian Bruhin
32562c6878
Fix lint.
2015-04-28 16:50:42 +02:00
Florian Bruhin
640f758605
Merge branch 'master' into visual
...
Conflicts:
qutebrowser/browser/commands.py
2015-04-28 15:54:26 +02:00
Florian Bruhin
e1f2259e98
Fix typo.
2015-04-22 07:46:01 +02:00
Florian Bruhin
c21ae0b651
Add a :debug-webaction command.
2015-04-22 07:13:56 +02:00
Florian Bruhin
6c8e073dc8
Merge branch 'caret_visual_mode' of https://github.com/artur-shaik/qutebrowser into visual
...
Conflicts:
qutebrowser/browser/commands.py
qutebrowser/browser/webview.py
qutebrowser/config/configdata.py
2015-04-21 21:29:00 +02:00
Florian Bruhin
f7cf33b596
Remember web inspector geometry in state file.
2015-04-20 20:40:03 +02:00
Florian Bruhin
7439586334
Move special params to cmdutils.register decorator
...
See #637 .
2015-04-20 19:33:05 +02:00
Florian Bruhin
8f1b074595
Show commandline being executed with :spawn.
...
Closes #616 .
2015-04-20 18:44:58 +02:00
Florian Bruhin
f93eef848c
Store QUTE_TEXT/QUTE_HTML in files for userscripts.
...
Fixes #644 .
2015-04-20 07:50:47 +02:00
Florian Bruhin
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
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
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
a38c3ae1e1
Add a :tab-detach command.
...
See #62 .
2015-03-30 12:14:15 +02:00
Florian Bruhin
adb11360db
Disallow tab=None with objreg.get(scope='tab').
...
This would've made it a lot easier to detect #563 .
2015-03-19 22:28:24 +01:00
Florian Bruhin
34b24aafa8
Fix lint
2015-03-11 22:22:49 +01:00
Jimmy
59948a038c
Add new UrlCompletion model which includes web history and quickmarks.
...
I went to some effort to avoid duplipcating code which which leads to some
arguably ugly class method calling.
2015-03-11 21:50:16 +01:00
Jimmy
f6a7ef3985
Add url history completion for open.
...
Adds a basic completion model implementation around the global browser
history and registers that for the open command.
Modifies WebHistory to add an __iter__ method and to use a dict instead of a
set to store an entire HistoryEntry for each archived item instead of just the
URL. Brief tests showed that the lookup time for set and dict are very
similar. They are at least on the same order of magnitude. Testing membership
of a list on the other hand, as was the case before a set was used, was four
orders of magnitude slower on my machine.
2015-03-11 21:50:16 +01:00
Florian Bruhin
e8e6d8409b
Adjust pylint exceptions.
2015-03-11 20:14:39 +01:00
Florian Bruhin
ee8beb174d
Fix :tab-clone -w (i.e. back -w). Fixes #536 .
2015-03-08 15:02:18 +01:00
Florian Bruhin
cd34562d34
Fix :tab-clone with tabs -> tabs-are-windows=true.
...
See #536 .
2015-03-08 14:54:42 +01:00
Florian Bruhin
561ebd07f9
Make it possible to use :open -[twb] without url.
2015-02-27 08:10:00 +01:00
Florian Bruhin
56b0ae2b6e
Get rid of mainwindow.MainWindow.spawn.
2015-02-16 22:56:12 +01:00
Florian Bruhin
8e2e996369
Merge branch 'download_cmd_interface' of https://github.com/oed/qutebrowser into oed-download_cmd_interface
2015-02-14 19:06:47 +01:00
Florian Bruhin
66d3ec1c08
Make it possible to configure tab titles.
2015-02-13 23:57:31 +01:00
Joel Torstensson
6e3d5867f9
Fixed docs.
2015-02-09 17:38:50 +01:00
Joel Torstensson
767ca42e46
Some style fixes.
2015-02-09 12:06:49 +01:00
Joel Torstensson
9428338389
Merged :download and :download-page.
...
Fix #449
2015-02-08 22:08:16 +01:00
Florian Bruhin
bc380fca61
Clone zoom factor when cloning tab.
2015-01-26 07:20:03 +01:00
Florian Bruhin
ab2d2d79ca
Clone text/icon as well when cloning tabs.
...
Closes #316 .
2015-01-26 07:18:07 +01:00
Florian Bruhin
5c92144f6b
Fix spawn --userscript with multiple args.
...
This is a regression introduced in 4485e4ee1b
.
We didn't unpack the argument list properly before passing it to
run_userscripts.
Fixes #476 .
See #448 .
2015-01-22 07:10:32 +01:00
Florian Bruhin
4485e4ee1b
Merge :run-userscripts into :spawn.
...
:run-userscripts is now marked as deprecated, and :spawn has a new
-u/--userscript option instead.
Closes #448 .
2015-01-15 22:29:06 +01:00
Florian Bruhin
efe96462c9
Pass more useful information to userscripts.
...
Closes #379 .
2015-01-04 20:16:15 +01:00
Florian Bruhin
b8a04f5309
Don't raise CommandError in TabbedBrowser.current_url.
...
TabbedBrowser.current_url used to process the qtutils.QtValueError exception
and raise a cmdexc.CommandError based on it. While this was useful for some
callers, it made handling it in others weird, and it doesn't really belong
there - so now the caller handles this.
2015-01-04 20:13:25 +01:00
Florian Bruhin
04c8a17b2e
Merge branch 'userscript-runner'
2015-01-04 15:21:31 +01:00
Florian Bruhin
450d1ab70d
Update copyright years
2015-01-03 15:51:31 +01:00
Florian Bruhin
4471f81c11
Expand ~ to home dir with :run-userscript.
2014-12-29 22:17:58 +01:00
Florian Bruhin
0cd0f97587
Call triggerAction on page, not view.
2014-12-29 22:12:09 +01:00
Florian Bruhin
0ea25c6ef0
Add missing imports
2014-12-29 22:04:09 +01:00
HalosGhost
0a1fa87ac9
Add -f option to reload
2014-12-29 22:03:54 +01:00
Florian Bruhin
b01041e455
Set zoom to default instead of 100% with :zoom/=.
2014-12-22 18:04:28 +01:00
Florian Bruhin
512d7c4448
Simplify config exception tree and handling.
...
Also make sure we catch all config-related errors in all related places.
Fixes #324 .
2014-12-17 11:17:18 +01:00
Florian Bruhin
05e6515aad
Allow min-/maximizing of print preview on Windows.
...
Fixes #327 .
2014-12-16 15:08:28 +01:00
Florian Bruhin
512e51eeb4
Fix type annotation for :zoom. Fixes #332 .
2014-12-15 22:59:45 +01:00
Florian Bruhin
06ec1a3885
Big file tree reorganisation.
...
Closes #255 .
Should make a lot more sense now ;)
2014-12-13 17:28:50 +01:00
Florian Bruhin
39cd36c8cd
Don't use maxsplit=0 with :spawn.
2014-12-11 21:27:44 +01:00
Florian Bruhin
b7ea8e7979
Support a maxsplit argument for commands.
2014-12-11 20:32:52 +01:00
Florian Bruhin
ec07e4f8be
Handle OSError exceptions where appropriate.
...
Fixes #25 .
2014-12-10 18:00:49 +01:00
Florian Bruhin
655115858c
Handle OSError when using subprocess.
2014-11-23 18:07:05 +01:00
Florian Bruhin
75d1f072c2
Add a raise_cmdexc_if_invalid to urlutils.
2014-11-18 19:49:31 +01:00
Florian Bruhin
b502280c06
Make download-manager a per-window object.
...
Fixes #228 .
2014-11-11 21:36:47 +01:00
Florian Bruhin
904d84db7e
Set split=False for :quickmark-load.
...
See #231 .
The completion still hides on the space and reappears on the first letter of
the second word, but it's a start.
2014-10-29 22:55:03 +01:00
Florian Bruhin
fd6e56d7af
Convert all function annotations to dicts.
2014-10-20 17:20:39 +02:00
Florian Bruhin
eb7d12445b
Fix indent
2014-10-20 00:29:19 +02:00
Claude
ecbe5c071d
match urls with open, names with quickmark-load
2014-10-19 22:25:21 +02:00
Claude
9613cc0eab
Merge remote-tracking branch 'florian/master' into quickmark-completion
2014-10-17 20:46:00 +02:00
Florian Bruhin
74839d7aff
Use a QObject for quickmarks and add a changed signal.
...
See #189 .
2014-10-15 16:55:55 +02:00
Claude
777e93bd3f
quickmarks completion
...
It works, but:
* terrible performance (5s for ~1600 marks)
* split and join operations in the loop - i want direct access to name +
url in the marks dict! how?
2014-10-15 11:54:10 +02:00
Florian Bruhin
0e771db7f1
Use annotation instead of special argument names.
...
Explicit is better than implicit.
Fixes #161 .
2014-10-09 06:33:24 +02:00
Florian Bruhin
6202477db5
Add --left/--right arguments to :tab-only. Closes #46 .
2014-10-07 20:56:47 +02:00
Florian Bruhin
d8a917575d
Add a cmdutils.check_exclusive function.
2014-10-07 20:39:02 +02:00
Florian Bruhin
8ca5c09e69
Add --left/--right/--opposite to :tab-close.
...
This fixes the updated version of #46 .
2014-10-07 20:30:31 +02:00
Florian Bruhin
3e31e88921
Only close window (instead of quitting) when closing last tab.
...
This also renames the 'quit' value for tabs->last-close to 'close' to avoid
confusion.
Fixes #154 .
2014-10-07 17:09:24 +02:00
Florian Bruhin
f0990aec32
Fix loading of quickmarks with fuzzy URLs
2014-10-07 07:04:49 +02:00
Florian Bruhin
a19b6bf563
Fix :view-source
2014-10-06 22:23:12 +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
ecd31a6450
Add tab/window support to :help
2014-10-06 20:40:00 +02:00
Florian Bruhin
9281fa3992
Fix lint/bugs
2014-10-06 19:53:50 +02:00
Florian Bruhin
796dce86ae
Remove go_back() and go_forward() from WebView.
...
If we use these in commands.py, we spawn a new window before checking if we can
go back/forward - but we want to check that before opening a new window.
2014-10-06 19:47:35 +02:00
Florian Bruhin
6324751af6
More window support.
2014-10-06 17:58:40 +02:00
Florian Bruhin
4dcaa1fdec
Be more forgiving when validating URLs. Fixes #141 .
2014-10-03 16:58:30 +02:00
Florian Bruhin
c75563907a
Fix getting URL in :view-source.
...
Fixes #128 .
2014-10-02 06:06:08 +02:00
Florian Bruhin
42a1d7028d
Move :later back from commands to utilcmds.
2014-09-29 19:56:25 +02:00
Florian Bruhin
895f51083d
Some more objreg fixes for multi-window.
2014-09-29 07:17:01 +02:00
Florian Bruhin
16c067e32d
Simplify showing of main windows.
2014-09-28 22:46:37 +02:00
Florian Bruhin
cc0e164dcf
First attempt at adding a --window to commands.
2014-09-28 22:41:43 +02:00
Florian Bruhin
dc7b32e460
Fix lint
2014-09-28 22:23:37 +02:00
Florian Bruhin
fb6cb62f93
First attempt at multi-window support.
2014-09-28 22:13:14 +02:00
Florian Bruhin
8635dc8848
Make it possible to go back/forward in a new tab.
2014-09-27 23:14:39 +02:00
Florian Bruhin
17f2241bc0
Add a :tab-clone command.
2014-09-27 23:13:11 +02:00
Florian Bruhin
4410536f69
Refactor :undo and save/restore history.
2014-09-27 22:56:50 +02:00
Florian Bruhin
36fd2e5c7f
Improve __repr__ methods.
2014-09-26 15:48:24 +02:00
Florian Bruhin
55e2ccabf5
Fix lint
2014-09-25 07:58:08 +02:00
Florian Bruhin
78949a8c1b
Use object registry for hintmanager.
2014-09-25 07:49:45 +02:00
Florian Bruhin
4783df8c32
Avoid download_get signal.
2014-09-25 00:29:29 +02:00
Florian Bruhin
b119100321
Get rid of _tabs attribute in CommandDispatcher.
2014-09-24 20:21:43 +02:00
Florian Bruhin
5e8144fafa
Move cntwidget to commands.
2014-09-24 19:53:31 +02:00
Florian Bruhin
fd9c4b860a
Use object registry for url_stack.
2014-09-24 07:32:05 +02:00
Florian Bruhin
3f02451828
Move object registry to its own file.
2014-09-24 07:06:45 +02:00
Florian Bruhin
b121ceef21
Use object registry for last focused tab.
2014-09-24 06:41:51 +02:00
Florian Bruhin
908a69af18
Better __repr__s
2014-09-23 23:31:17 +02:00
Florian Bruhin
f5b1d3ce4d
Use object registry for command-dispatcher.
2014-09-23 21:35:08 +02:00
Florian Bruhin
a4079bb39e
Split :navigate into several functions
2014-09-22 22:36:31 +02:00
Florian Bruhin
d5a294ae55
commands: Move tab opening to _open functions.
2014-09-22 22:27:19 +02:00
Florian Bruhin
207bb00c50
Add increment/decrement to :navigate
2014-09-22 21:51:09 +02:00
Florian Bruhin
4213550206
Add :navigate up
2014-09-22 21:16:21 +02:00
Florian Bruhin
4615d22a5a
browser.commands: Refactor :navigate.
2014-09-22 21:08:11 +02:00
Florian Bruhin
9145ba9656
Adjust comment
2014-09-22 21:03:01 +02:00
Florian Bruhin
51413094bf
Merge prev-page/next-page into a navigate command.
2014-09-22 21:01:52 +02:00
Florian Bruhin
812a0fdd41
Merge branch 'newcmd'
...
Conflicts:
.flake8
pkg/PKGBUILD.qutebrowser-git
qutebrowser/browser/commands.py
qutebrowser/browser/hints.py
qutebrowser/config/configdata.py
qutebrowser/network/qutescheme.py
qutebrowser/test/config/test_configtypes.py
qutebrowser/utils/utils.py
2014-09-22 19:09:48 +02:00
Florian Bruhin
d1ddc8c6cb
Fix lint
2014-09-15 22:01:13 +02:00
Florian Bruhin
19afa69d87
view_source: Add line numbers.
2014-09-15 18:19:56 +02:00
Florian Bruhin
715aec991e
Add view_source command.
2014-09-15 17:59:54 +02:00
Florian Bruhin
4d3b3616a6
Fix lint
2014-09-14 23:56:19 +02:00
Florian Bruhin
b9216bca15
Fix hint command arguments.
2014-09-14 23:16:35 +02:00
Florian Bruhin
b2058e2f0e
cmdutils: Default to nargs='+' for *args.
2014-09-14 22:56:02 +02:00
Florian Bruhin
80ef0782d5
Improve some docstrings.
2014-09-13 00:22:27 +02:00
Florian Bruhin
070d5ae300
Add more documentation.
2014-09-08 12:21:47 +02:00
Florian Bruhin
1220f0c5fd
Move webelem from utils to browser.
2014-09-08 10:30:05 +02:00
Florian Bruhin
381b06e967
Fix lint
2014-09-08 07:44:32 +02:00
Florian Bruhin
5e6150e665
Add a :help command.
2014-09-08 07:36:18 +02:00
Florian Bruhin
4cf7e6e767
Add docstring for :quickmark-load.
2014-09-08 07:36:17 +02:00
Florian Bruhin
57d51ad9bb
Lots of fixes for new command system.
...
Squashed commit:
- Fix getting current URL
- Get rid of *args for hints.
- Make enums work.
- Fix moving commands to utilcmds.
- Fix enums in argparse
- Fix arg splitting for hints.
- Fix default enum args.
- Fix argument splitting for hints if None is given.
- Fix set_cmd_text with flags and fix {url}.
- Fix unittests
- Fix tuple types for arguments.
- Fix scroll-page.
- Fix lint
- Fix open_target.
- Others
2014-09-08 07:36:17 +02:00
Florian Bruhin
a811f8cb07
Start initial newcmd stuff.
2014-09-08 07:36:17 +02:00
Florian Bruhin
b856bf3a47
Improve webelement API
2014-09-04 20:30:59 +02:00
Florian Bruhin
3e904f4c52
Fix crash when using commands on startup which need a widget.
2014-09-03 11:32:56 +02:00
Florian Bruhin
ccfc0b3c19
Get rid of most @property's.
...
They were problematic because they're executing hidden code, and also PyQt
hides exceptions happening inside them.
2014-09-02 23:37:47 +02:00
Florian Bruhin
4caec2becb
Document and mark workarounds.
2014-09-02 20:44:58 +02:00
Florian Bruhin
ce4a5affa4
Rename commands.utils to commands.cmdutils.
2014-08-26 20:48:39 +02:00
Florian Bruhin
c72bfff306
Rename commands.exceptions to commands.cmdexc.
2014-08-26 20:38:10 +02:00
Florian Bruhin
5adf48ed3d
Rename utils.url to utils.urlutils.
2014-08-26 20:33:41 +02:00
Florian Bruhin
8bd64382bd
Rename utils.qt to utils.qtutils.
2014-08-26 20:25:11 +02:00
Florian Bruhin
d625cde28c
Clean up imports
2014-08-26 19:10:14 +02:00
Florian Bruhin
f452b02b24
Turn off repainting while moving tabs.
...
Before we had some flashing because we're removing the tab, inserting the new
one, and then focusing the new one.
2014-08-25 15:41:19 +02:00
Florian Bruhin
743cc47229
Default to delta=1 for gl/gr.
2014-08-25 15:40:48 +02:00
Florian Bruhin
03cb9c353b
Fix clipboard selection in :paste on windows.
2014-08-25 15:28:07 +02:00
Florian Bruhin
c7ee655750
Use pylint to check modelines and fix them.
2014-08-06 23:51:44 +02:00
Florian Bruhin
13b6fe24eb
Reorder tab stuff in config.
2014-08-06 08:10:32 +02:00
Florian Bruhin
1217ed26ad
Handle tab position of explicitely opened tab differently.
...
The default behaviour now should be the same as Chromium.
2014-08-06 07:58:07 +02:00
Florian Bruhin
ee1b136807
Clean up pylint/noqa comments.
2014-08-04 03:47:09 +02:00
Florian Bruhin
90f1d5851c
Fix lint.
2014-08-03 00:58:59 +02:00