-
Notifications
You must be signed in to change notification settings - Fork 11
LSP features
Please see the cheat sheet for a reference on how to trigger the following features from inside your text editor.
The extract note action enables the creation of a new document from a section (header). This involves:
The reverse operation, known as inline, allows you to:
- Embed the content into the document with Block-reference.
- Remove the link and injected file.
Both operations automatically adjust the header levels as needed to maintain proper document structure.
IWE supports multiple ways to navigate your documents, including:
- Links Navigation: Implemented as Go To Definition LSP command.
- Table of Contents: Provided as Document Symbols to the editor.
- Backlinks List: A backlinks list compiles references or citations linking back to the current document.
Search is one of the key features. IWE creates all possible document paths by considering the block-references structure. This means it can come up with lists like:
Readme - Features
Readme - Features - Navigation
Readme - Features - Search
And provide this list to your text editor as Workspace Symbols.
This allows for context-aware fuzzy searching, making it easier for you to find what you need.
The search results are ordered by page-rank which is based on the number of references to the target note.
LSP offers auto-formatting, which typically kicks in when you save your work. This feature helps tidy things up. Here's what gets cleaned up:
- Updating link titles to the header of the linked document.
- Adjusting header levels to ensure tree structure.
- Updating the numbering of the ordered lists.
- Fixing newlines, indentations in lists, and much more.
Note header inlay hint shows parent document title and links counter
Block reference hint includes indicator ⎘
with a counter of document usages ⎘³

IWE can suggest links as you type using the standard LSP code completion feature.
IWE offers a range of actions to help you perform context-aware transformations on your notes. The actions can be called with the "code actions" LSP menu of your editor. Some of the actions available are:
- Transforming lists to headers/sections and vice-versa.
- Changing list type (bullet/ordered).
IWE reads and understands nested structures based on headers. It identifies sub-header relationships. Markdown allows header structures where the nesting isn't clear, like:
## First Header
# Second Header
IWE automatically fixes the header levels to ensure they're nested correctly. So the example above corrects to:
# First Header
# Second Header
IWE can normalize the headers structure by dropping unnecessary header levels, for example:
# First header
### Second header
Will be normalized by dropping unnecessary levels and will look like:
# First header
## Second header
With IWE, you can rename the note file and automatically update all the references throughout your entire library using the rename
LSP refactoring feature.