Skip to content

XZSt4nce/note-placeholder

Repository files navigation

Note Placeholder

Obsidian plugin developed by XZSt4nce

[ English | Русский ]

With Note Placeholder, you can add text that will be automatically inserted in place of the link in view mode.

Installation

  1. Go to the Obsidian settings
  2. Go to the "Community plugins" tab
  3. Enable community plugins (if not already enabled)
  4. Click the "Browse" button
  5. Enter "Note Placeholder" in the search and go to the plugin
  6. Click on "Install" and then on "Enable"
how-to-install-plugin.webm

Usage

how-to-simply-use-plugin.webm

Features

Placeholder

You can add a placeholder for the note link by adding the placeholder (if it has not been redefined in the settings) property to it.

placeholderProperty

So this:

noteLink

Will be displayed (in view mode) like this:

placeholderedNoteLink

Always using placeholder instead of link name

You can disable the use of link names if the note has a placeholder To do this, you need to set the Use link name instead of placeholder setting to Always off

using-placeholder-instead-of-link-name.webm

Changing placeholder property name

In the settings, you can change the name of the property whose value will be used as a placeholder

changing-placeholder-property-name.webm

Separator

You can specify separator for a headers and a specific block by specifying the special header sep

Example 1:

Link in source mode:

headerSource

Link in view mode:

headerView

Example 2:

Link in source mode:

blockSource

Link in view mode:

blockView

Video example

customizing-headers-separator.webm

Disabling placeholder

By default, to disable the use of placeholder, you need to specify !dp!' as the link name if the value has not been changed in the settings

disabling-placeholder.webm

Settings

  • Placeholder property name : the name of the property, the text of which will be substituted for the link
  • Use link name instead of placeholder
    • default on, but off when specified : the placeholder will only be shown if the link name is not specified
    • always off : the placeholder will always be shown instead of link name
  • Text to disable placeholder : if you insert this text as the link name, the note name will be displayed (default: !dp!)
  • Default header separator : text between the placeholder and headers/block (default: >)

License

MIT License

Bug Report, Feature Request

If you find any bugs or have any feature requests, please report them on the GitHub Issues. Thank you!

Changelog

Versions are controlled by the rule below.

  • Version x.y.z
    • x : increased when huge changes are made(ex. change of logic, etc.)
    • y : increased when features are newly added or changed
    • z : increased when bug fixes are made

About

Replaces text of note link to placeholder in view mode.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 26