1
0
silverbullet/website/Plugs/Editor.md

46 lines
1.9 KiB
Markdown
Raw Normal View History

2023-10-03 15:59:33 +00:00
#plug
2023-08-29 19:17:29 +00:00
The `editor` plug implements foundational editor functionality for SilverBullet.
2023-12-19 15:18:33 +00:00
# Commands
2023-08-29 19:17:29 +00:00
* {[Editor: Toggle Dark Mode]}: toggles dark mode
* {[Editor: Toggle Vim Mode]}: toggle vim mode, see: [[Vim]]
* {[Stats: Show]}: shows some stats about the current page (word count, reading time etc.)
* {[Help: Getting Started]}: Open getting started guide
* {[Help: Version]}: Show version number
2023-12-19 15:18:33 +00:00
## Pages
2023-08-29 19:17:29 +00:00
* {[Page: New]}: Create a new (untitled) page. Note that usually you would create a new page simply by navigating to a page name that does not yet exist.
* {[Page: Delete]}: delete the current page
* {[Page: Copy]}: copy the current page
2023-12-19 15:18:33 +00:00
## Navigation
2023-08-29 19:17:29 +00:00
* {[Navigate: Home]}: navigate to the home (index) page
* {[Navigate To page]}: navigate to the page under the cursor
* {[Navigate: Center Cursor]}: center the cursor at the center of the screen
* {[Navigate: Move Cursor to Position]}: move cursor to a specific (numeric) cursor position (# of characters from the start of the document)
2023-12-19 15:18:33 +00:00
## Text editing
2023-08-29 19:17:29 +00:00
* {[Text: Quote Selection]}: turns the selection into a blockquote (`>` prefix)
* {[Text: Listify Selection]}: turns the lines in the selection into a bulleted list
* {[Text: Number Listify Selection]}: turns the lines in the selection into a numbered list
* {[Text: Link Selection]}: turns the selection into a link.
#ProTip You can can also select text and paste a URL on it via `Ctrl-v`/`Cmd-v` to turn it into a link)
* {[Text: Bold]}: make text **bold**
* {[Text: Italic]}: make text _italic_
* {[Text: Marker]}: mark text with a ==marker color==
* {[Link: Unfurl]}: “Unfurl” a link, see [[🔌 Editor/Link Unfurl]]
2023-12-19 15:18:33 +00:00
# Outlines
```template
2023-12-19 18:02:43 +00:00
page: "[[Outlines]]"
2023-12-19 15:18:33 +00:00
```
# Debug
2023-08-29 19:17:29 +00:00
Commands you shouldnt need, but are nevertheless there:
* {[Debug: Reset Client]}: clean out all cached data on the client and reload
* {[Debug: Reload UI]}: reload the UI (same as refreshing the page)
* {[Account: Logout]}: (when using built-in [[Authentication]]) Logout