Merge branch 'LadyClaire-master'
This commit is contained in:
commit
81ca5cbe44
@ -24,6 +24,7 @@ Changed
|
|||||||
already exists.
|
already exists.
|
||||||
- `:bookmark-load` now has a `--delete` flag which deletes the bookmark after
|
- `:bookmark-load` now has a `--delete` flag which deletes the bookmark after
|
||||||
loading it.
|
loading it.
|
||||||
|
- `:open` now also accepts quickmark names instead of URLs
|
||||||
|
|
||||||
Fixed
|
Fixed
|
||||||
-----
|
-----
|
||||||
|
@ -207,6 +207,7 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* Ismail
|
* Ismail
|
||||||
* Edgar Hipp
|
* Edgar Hipp
|
||||||
* Daryl Finlay
|
* Daryl Finlay
|
||||||
|
* Claire Cavanaugh
|
||||||
* adam
|
* adam
|
||||||
* Samir Benmendil
|
* Samir Benmendil
|
||||||
* Regina Hug
|
* Regina Hug
|
||||||
|
@ -249,12 +249,15 @@ class CommandDispatcher:
|
|||||||
"set!")
|
"set!")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
url = urlutils.fuzzy_url(url)
|
url = objreg.get('quickmark-manager').get(url)
|
||||||
except urlutils.InvalidUrlError as e:
|
except urlmarks.Error:
|
||||||
# We don't use cmdexc.CommandError here as this can be called
|
try:
|
||||||
# async from edit_url
|
url = urlutils.fuzzy_url(url)
|
||||||
message.error(self._win_id, str(e))
|
except urlutils.InvalidUrlError as e:
|
||||||
return
|
# We don't use cmdexc.CommandError here as this can be
|
||||||
|
# called async from edit_url
|
||||||
|
message.error(self._win_id, str(e))
|
||||||
|
return
|
||||||
if tab or bg or window:
|
if tab or bg or window:
|
||||||
self._open(url, tab, bg, window)
|
self._open(url, tab, bg, window)
|
||||||
else:
|
else:
|
||||||
|
@ -103,3 +103,8 @@ Feature: Opening pages
|
|||||||
history:
|
history:
|
||||||
- active: true
|
- active: true
|
||||||
url: http://localhost:*/data/numbers/7.txt
|
url: http://localhost:*/data/numbers/7.txt
|
||||||
|
|
||||||
|
Scenario: Opening a quickmark
|
||||||
|
When I run :quickmark-add http://localhost:(port)/data/numbers/8.txt quickmarktest
|
||||||
|
And I run :open quickmarktest
|
||||||
|
Then data/numbers/8.txt should be loaded
|
||||||
|
Loading…
Reference in New Issue
Block a user