Commit graph

6 commits

Author SHA1 Message Date
Aly Thobani
d2583078ac
Implement and provide default mappings for some Obsidian-specific Vim motions/commands (#222)
* feat: define and expose obsidian-specific vim commands

jumpToNextHeading: g]
jumpToPreviousHeading: g[

* Implement jumpToPreviousLink motion

* Refactoring and implementing jumpToNextLink

* refactor: new jumpToPattern function that can be used for motions

* refactor: renamed file and removed unneeded exports

* fix: return last found index even if fewer than n instances found, instead of undefined

* feat: implement moveUpSkipFold and moveDownSkipFold

* refactor: extract out helper functions for defining obsidian vim actions

* refactor: split vimApi.ts into two files

* refactor: add comment

* refactor: update names, types, etc

* feat: followLinkUnderCursor action

* feat: jumpToLink now jumps to both markdown and wiki links

* refactor: rename fns

* refactor: add docstrings / change var names

* feat: implement looping around

* refactor: cleaner implementation of jumpToPattern

* Change mappings for next/prev heading to [[ and ]]

* Tiny fixes

* docs: update docs now that some more motions are provided by default

---------

Co-authored-by: Erez Shermer <erezshermer@gmail.com>
2024-07-23 20:21:29 +03:00
jsrozner
89ae5fd0aa Add a jssnipped to skip folds 2024-03-21 16:42:30 -07:00
Maciej Wieczór-Retman
0895ca4d07
Update JsSnippets.md 2023-06-29 12:46:35 +02:00
Maciej Wieczór-Retman
dd1838a175
Update JsSnippets.md 2023-06-29 12:45:50 +02:00
Maciej Wieczór-Retman
a864306288
Update JsSnippets.md
Vimwiki style link navigation
2023-06-24 21:57:42 +02:00
Erez Shermer
50e18decbd Version 0.6.0 2022-04-03 21:28:17 +03:00