Bugfix `spacemacs/avy-goto-url'.

- Use `avy-jump' instead of the deprecated `avy--generic-jump'.
- Add a keybinding to also open URLs (SPC j U).
This commit is contained in:
Dominik Schrempf 2019-08-09 16:24:32 +02:00 committed by duianto
parent 600ca198aa
commit 11ee097707
2 changed files with 5 additions and 1 deletions

View File

@ -823,6 +823,7 @@ Other:
- Font scaling ~SPC z x _~ scale down
- Frame transparency ~SPC T T _~ decrease transparency
- Zoom frame ~SPC z f _~ zoom frame out
- Added ~SPC j U~ for =spacemacs/avy-open-url= (thanks to Dominik Schrempf)
- Improvements:
- Rewrote window layout functions for ~SPC w 1~, ~SPC w 2~, ~SPC w 3~, and
~SPC w 4~ (thanks to Codruț Constantin Gușoi):
@ -1048,6 +1049,8 @@ Other:
- Required =ivy= to load =counsel-projectile= (thanks to Thanh Vuong)
- Make =search-engine= layer support custom keywords for =engine-mode= (thanks to Maximilian Wolff)
- Fixed =search-engine= layer customization issue (thanks to Haisheng Wu)
- Replaced deprecated =avy--generic-jump= with =avy-jump=
(thanks to Dominik Schrempf)
*** Layer changes and fixes
**** Agda
- Fixes

View File

@ -65,6 +65,7 @@
"jj" 'evil-avy-goto-char-timer
"jl" 'evil-avy-goto-line
"ju" 'spacemacs/avy-goto-url
"jU" 'spacemacs/avy-open-url
"jw" 'evil-avy-goto-word-or-subword-1
"xo" 'spacemacs/avy-open-url))
:config
@ -72,7 +73,7 @@
(defun spacemacs/avy-goto-url()
"Use avy to go to an URL in the buffer."
(interactive)
(avy--generic-jump "https?://" nil 'pre))
(avy-jump "https?://"))
(defun spacemacs/avy-open-url ()
"Use avy to select an URL in the buffer and open it."
(interactive)