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

"Avoid unfolding folded sections" JS is not working #256

Open
strangerinusall opened this issue Dec 22, 2024 · 0 comments
Open

"Avoid unfolding folded sections" JS is not working #256

strangerinusall opened this issue Dec 22, 2024 · 0 comments

Comments

@strangerinusall
Copy link

strangerinusall commented Dec 22, 2024

Hello! For some reason the Avoid unfolding folded sections does not work for me. Each time I type j or k it just starts typing :upSkipFol... and so on, instead of actually moving lines.

I have mdHelpers.js file in the root vault folder.

❯ cat mdHelpers.js
function moveUpSkipFold() {
  view.editor.exec('goUp');
}
function moveDownSkipFold() {
  view.editor.exec('goDown');
}

In my .obsidian.vimrc I have this:

" Fix for unfolding of folded lines when curor is hovered over
exmap upSkipFold jsfile mdHelpers.js {moveUpSkipFold()}
exmap downSkipFold jsfile mdHelpers.js {moveDownSkipFold()}
nmap k :upSkipFold
nmap j :downSkipFold

In Vimrc Support settings I have Support JS command optional enabled.

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

1 participant