MCPcopy Index your code
hub / github.com/czottmann/obsidian-blockquote-levels

github.com/czottmann/obsidian-blockquote-levels @1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.0 ↗ · + Follow
22 symbols 41 edges 3 files 0 documented · 0% updated 7mo ago1.1.0 · 2022-09-28★ 511 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Plugin logo thingie: a chevron, a plus, a chevron

Blockquote Levels

This plugin for Obsidian adds commands for increasing/decreasing the blockquote level of the current line or selection(s).

Usage

The plugin introduces two new commands, "Blockquote Levels: Increase" and "Blockquote Levels: Decrease".

"Increase" adds a Markdown blockquote prefix (>) to the current line, the current selection or selections. Subsequent calls will add subsequent prefixes, thus increasing the quote levels.

"Decrease" removes the first Markdown blockquote prefix (>) from the current line, the current selection or selections. Mix'n'match is fine as each line is processed individually; when the selected lines sport different quote levels, only one prefix (>) is removed from each line (where present).

Out of the box the plugin doesn't set hotkeys, set them yourself as you see fit, or trigger the commands using the command palette. The World is your oyster!

Showcase

Showcase GIF

Installation

  1. Search for "Blockquote Levels" in Obsidian's community plugins browser.
  2. Enable the plugin in your Obsidian settings under "Community plugins".

That's it.

Installation via BRAT (for pre-releases or betas)

  1. Install BRAT.
  2. Add "Blockquote Levels" to BRAT:
    1. Open "Obsidian42 - BRAT" via Settings → Community Plugins
    2. Click "Add Beta plugin"
    3. Use the repository address czottmann/obsidian-blockquote-levels
  3. Enable "Blockquote Levels" under Settings → Options → Community Plugins

Development

Clone the repository, run pnpm install OR npm install to install the dependencies. Afterwards, run pnpm dev OR npm run dev to compile and have it watch for file changes.

Thanks to …

  • the obsidian-tasks crew for the "starter templates" for the GitHub Action workflow and the handy release.sh script

Author

Carlo Zottmann, carlo@zottmann.org, https://zottmann.org/

License

MIT, see LICENSE.md.

Extension points exported contracts — how you extend this code

BlockquoteLevelsSettings (Interface)
(no doc)
main.ts
LineProcessor (Interface)
(no doc)
types.d.ts
SelectionProcessor (Interface)
(no doc)
types.d.ts
SelectionLineNumbers (Interface)
(no doc)
types.d.ts

Core symbols most depended-on inside this repo

getLineNumbersOfSelection
called by 3
main.ts
increaseLevelForSelections
called by 2
main.ts
decreaseLevelForSelections
called by 2
main.ts
processSelections
called by 2
main.ts
processLine
called by 2
main.ts
loadSettings
called by 1
main.ts
saveSettings
called by 1
main.ts
expandAndSortSelections
called by 1
main.ts

Shape

Method 14
Class 4
Interface 4

Languages

TypeScript100%

Modules by API surface

main.ts19 symbols
types.d.ts3 symbols

For agents

$ claude mcp add obsidian-blockquote-levels \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page