mirror of
https://github.com/esm7/obsidian-vimrc-support.git
synced 2026-07-22 05:00:25 +00:00
refactor: renamed file and removed unneeded exports
This commit is contained in:
parent
128f1834e9
commit
7ca0e78ebc
3 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { MotionFn } from "./utils/defineObsidianVimMotion";
|
||||
import { jumpToPattern } from "./utils/getNthInstanceOfPattern";
|
||||
import { jumpToPattern } from "./utils/jumpToPattern";
|
||||
|
||||
const HEADING_REGEX = /^#+ /gm;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { MotionFn } from "./utils/defineObsidianVimMotion";
|
||||
import { jumpToPattern } from "./utils/getNthInstanceOfPattern";
|
||||
import { jumpToPattern } from "./utils/jumpToPattern";
|
||||
|
||||
const LINK_REGEX = /\[\[[^\]\]]+?\]\]/g;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ export function jumpToPattern({
|
|||
* Returns the index of (up to) the n-th instance of a pattern in a string after a given starting
|
||||
* index. If the pattern is not found at all, returns undefined.
|
||||
*/
|
||||
export function getNthNextInstanceOfPattern({
|
||||
function getNthNextInstanceOfPattern({
|
||||
content,
|
||||
regex,
|
||||
startingIdx,
|
||||
|
|
@ -59,7 +59,7 @@ export function getNthNextInstanceOfPattern({
|
|||
* Returns the index of (up to) the nth-last instance of a pattern in a string before a given
|
||||
* starting index. If the pattern is not found at all, returns undefined.
|
||||
*/
|
||||
export function getNthPreviousInstanceOfPattern({
|
||||
function getNthPreviousInstanceOfPattern({
|
||||
content,
|
||||
regex,
|
||||
startingIdx,
|
||||
Loading…
Reference in a new issue