Commit graph

144 commits

Author SHA1 Message Date
esm7
2a5fffa2d1 Fix to https://github.com/esm7/obsidian-vimrc-support/issues/232
(and a version bump)
2024-08-08 21:09:40 +03:00
Aly Thobani
2795bb62b1
Fix: jumpToHeading shouldn't match within codeblocks (also improve jumpToLink a bit) (#233)
* fix: jumpToHeading should not jump to "headings" within codeblocks

jumpToPattern now accepts an optional filterMatch param to make this
happen

* jumpToLink can now jump to standalone hyperlinks

* Adjust/clarify docstring for `jumpToNextLink`
2024-08-04 20:50:54 +03:00
esm7
b5b50320d7 README updates and version bump 2024-07-23 20:31:44 +03:00
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
esm7
89cd8c71b8 1. Added LICENSE file (https://github.com/esm7/obsidian-vimrc-support/issues/202)
2. Fixed errors when Vim mode is not active in Obsidian (https://github.com/esm7/obsidian-vimrc-support/issues/228)
2024-07-23 20:12:48 +03:00
esm7
5867e784f5
Merge pull request #219 from WATA-Haru/fix-readme-gt-gT
fix README , validate gt and gT command without Tab Switcher plugin
2024-07-01 06:45:08 +03:00
WATA-Haru
b9625acc80 fix README , validate gt and gT command without Tab Switcher plugin 2024-04-08 21:56:14 +09:00
esm7
4657923eb3
Merge pull request #218 from jsrozner/navigate_folds
Add a jssnippet to skip folds
2024-03-25 17:15:29 +02:00
jsrozner
89ae5fd0aa Add a jssnipped to skip folds 2024-03-21 16:42:30 -07:00
esm7
9ccf52a590
Merge pull request #184 from twio142/patch-1
Improve `surround`
2023-07-01 15:30:59 +03:00
esm7
224425bb6c
Merge pull request #193 from MaciejWieczor/patch-1
Update JsSnippets.md
2023-07-01 15:30:21 +03: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
05b3a43a8e Readme update 2023-06-13 10:26:24 +03:00
twio142
1c7ff072df Debug 2023-05-13 02:01:03 +02:00
twio142
5d36a519d6
Improve surround
When no text selected, use `editor.wordAt` to get word at cursor position. If no word available, place cursor between prefix and suffix.
2023-05-13 00:51:14 +02:00
esm7
bdf41a370f
Merge pull request #183 from stechermichal/chore/update-readme-installation-instructions
chore: update readme installation instructions
2023-05-07 13:12:25 +03:00
Michal Štecher
af7a99d54e chore: update readme installation instructions 2023-05-07 11:44:50 +02:00
esm7
de354d654a
Merge pull request #181 from rscircus/patch-1
Add surround backticks to README.md
2023-05-01 10:21:38 +03:00
Roland Siegbert
b48f0155ae
Add surround backticks to README.md
Extending the vim-surround example with backticks as it is used a lot.
2023-04-29 09:24:57 +02:00
esm7
d9dd46efd1
Merge pull request #178 from SPiCaRiA/master
Allow customized Vim mode prompt text on status bar
2023-04-10 15:41:49 +03:00
SPiCaRiA
02bc1bf173
Add screenshots 2023-04-09 19:23:54 -07:00
SPiCaRia
0d0a562f6e Add CSS showcase to README 2023-04-09 19:21:27 -07:00
SPiCaRia
b6d258f807 Remove status bar CSS class 2023-04-09 19:10:38 -07:00
SPiCaRia
00c1a0ee39 Merge branch 'dev-status-bar-css' 2023-04-04 14:11:07 -07:00
SPiCaRia
ec6de70c35 Polish settings page - replace the duplicate break line with a section title 2023-04-04 14:11:01 -07:00
SPiCaRia
5bff2b81a5 Merge branch 'dev-status-bar-css' 2023-04-04 13:36:18 -07:00
SPiCaRia
bf7b373f23 Fix nits: add missing data mode when initialization 2023-04-04 13:35:47 -07:00
SPiCaRiA
7fb79e6faf
Add the missing line break 2023-04-02 22:37:24 -07:00
Weixuan Lin
f8e9893126 Merge branch 'dev-status-bar-css' 2023-04-02 22:34:45 -07:00
Weixuan Lin
99b379952b Update README 2023-04-02 22:34:31 -07:00
Weixuan Lin
edace4ee7a Merge branch 'dev-status-bar-css' 2023-04-02 22:28:35 -07:00
Weixuan Lin
a1e9406450 Use .vimrc-support-vim-mode class name and data-vim-mode instead 2023-04-02 22:28:23 -07:00
SPiCaRiA
eb8926a476
Merge pull request #6 from SPiCaRiA/dev-status-bar-css
Add option for updating CSS class names to status bar as well
2023-03-27 21:18:20 -07:00
Weixuan Lin
93ee168b7d Add option for updating CSS class names to status bar as well 2023-03-27 21:16:53 -07:00
SPiCaRiA
97868caed8
Merge pull request #5 from SPiCaRiA/dev-fix-settings
Fix: use default values when setting values are empty strings
2023-03-27 16:29:00 -07:00
Weixuan Lin
210269dbdb Fix settings 2023-03-27 16:26:11 -07:00
SPiCaRiA
c6ee5570dc
Merge pull request #4 from SPiCaRiA/dev-readme
Add a break line in settings tab and update readme
2023-03-27 15:51:59 -07:00
Weixuan Lin
3f58d4db7e Update README 2023-03-27 15:50:52 -07:00
Weixuan Lin
1a1cd75dcc Add a break line in settings tab 2023-03-27 15:47:11 -07:00
SPiCaRiA
4d91711fcd
Merge pull request #3 from SPiCaRiA/dev-clean-up
Clean-up: use tabs instead of soft tabs
2023-03-27 15:27:40 -07:00
Weixuan Lin
5f82041bb1 Clean-up: use tabs instead of soft tabs 2023-03-27 15:25:47 -07:00
SPiCaRiA
9c20fb513f
Merge pull request #2 from SPiCaRiA/dev-custom-prompt-css
Add corresponding CSS class when changing status bar
2023-03-27 15:22:35 -07:00
Weixuan Lin
3776b54d9f Add corresponding CSS class when changing status bar 2023-03-27 15:14:31 -07:00
SPiCaRiA
0ab972cc70
Merge pull request #1 from SPiCaRiA/dev-custom-prompt
Allow setting custom prompt text for status bar
2023-03-27 14:53:23 -07:00
Weixuan Lin
0c8d9f12f4 Add custom prompt text settings for status bar 2023-03-27 14:49:34 -07:00
Weixuan Lin
72696afe11 Add .DS_Store to .gitignore 2023-03-27 14:40:11 -07:00
Erez Shermer
5093dca6dc Version 0.9.0 2023-01-25 20:27:50 +02:00
esm7
6756ac2b63
Merge pull request #159 from jiyee/master
fix: Vim Chord and Vim Mode display freeze / stop working when switch…
2023-01-25 15:27:40 +02:00