项目作者: mrjackphil

项目描述 :
Quick jump between links using hotkeys
高级语言: TypeScript
项目地址: git://github.com/mrjackphil/obsidian-jump-to-link.git
创建时间: 2020-10-28T15:33:51Z
项目社区:https://github.com/mrjackphil/obsidian-jump-to-link

开源协议:

下载


Quickly navigate between links, or jump to any word on the page using hotkeys.

Jump to Anywhere (RegEx based navigation)

Lightspeed

Settings

  • Open command palette (Ctrl+P), find and choose Jump to link command
  • You can use hotkey (Ctrl + ' by default)
  • If there are any links in opened file you should see letters over them which should be pressed to open the link
  • Hold Shift while pressing link letters should open note in a new pane

How to use Jump to Anywhere (Editor Navigation)

  • Use the command palette, or press the hotkey (Ctrl + ; by default) to instantly jump to any word on the page!
  • If you hold Shift while pressing the hotkey, you will select to the word you jump to.
  • Jump to Anywhere is a RegEx based navigation feature, similar to vim-easymotion.
  • Jump to Anywhere works both in regular editor mode, and in VIM mode!
  • Custom RegEx can be configured to user preference
  • Default configuration adds a label on words 3 characters or greater: [Regex: \b\w{3,}\b]
  • Suggested Characters used for link hints setting for Jump to Anywhere: asdfghhjklqwertyuiopzxcvbnm
    • These settings ensure that all 26 letters are available for jumping in documents with large amounts of text.
    • If there are more matches than available letters, the label will show undefined and it will not be possible to jump there.

How to use Lightspeed

Lightspeed is originally a vim plugin similar to vim-sneak or easymotion. See this issue for videos.

You can either assign a hotkey, or use it in combination with the Obsidian vimrc plugin:

  1. exmap jumpToLink obcommand mrj-jump-to-link:activate-lightspeed-jump
  2. nmap gs :jumpToLink<CR>

The idea and original code is from @kohane27.

The look of it when invoked can be modified with CSS. By default, it is:

  1. .theme-dark, .theme-light {
  2. --jump-to-link-lightspeed-color: var(--text-muted);
  3. }

Lightspeed is only supported in the new Codemirror 6 editor.

How to install the plugin

Install plugin from the Community Plugins section.

Known issues

Support