Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

surround: backward selection gives range error #91

Closed
acidghost opened this issue Apr 5, 2022 · 3 comments
Closed

surround: backward selection gives range error #91

acidghost opened this issue Apr 5, 2022 · 3 comments

Comments

@acidghost
Copy link

When doing a backward selection (i.e. v, then b a couple of times and then [[) I get the following error:

Screenshot 2022-04-05 at 14 40 31

Here's my vimrc:

" Have j and k navigate visual lines rather than logical ones
nmap j gj
nmap k gk
" Quickly remove search highlights
nmap @ :nohl

" Yank to system clipboard
set clipboard=unnamed

" Go back and forward with Ctrl+O and Ctrl+I
" (make sure to remove default Obsidian shortcuts for these to work)
exmap back obcommand app:go-back
nmap <C-o> :back
exmap forward obcommand app:go-forward
nmap <C-i> :forward

" Surround text
exmap wiki surround [[ ]]
map [[ :wiki
exmap paren surround ( )
map [( :paren

Obsidian version: v0.14.2
Plugin version: 0.6.0

@esm7
Copy link
Owner

esm7 commented Apr 6, 2022

I did not take backward selection into account when writing the part of this functionality that was incompatible with CM6. Will fix.

@esm7
Copy link
Owner

esm7 commented Apr 10, 2022

Should be fixed in 0.6.1.

@esm7 esm7 closed this as completed Apr 10, 2022
@acidghost
Copy link
Author

Can confirm it is, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants