Text expand

by MrJackphil
5
4
3
2
1
Score: 60/100

Description

Category: File Management

The Text expand plugin is a game-changer for Obsidian users who struggle with lengthy notes and want to streamline their workflow. This plugin allows you to define abbreviations that can be expanded into longer text snippets, making it easy to insert frequently used phrases or sentences into your notes. With Text Expand, you can save time and reduce the clutter in your notes by avoiding repetitive typing. The plugin also supports custom formatting options, so you can tailor the output to fit your writing style. Whether you're a busy professional or a student looking to boost your productivity, Text Expand is an essential tool for anyone who wants to work smarter, not harder.

Reviews

No reviews yet.

Stats

194
stars
36,929
downloads
10
forks
2,059
days
441
days
441
days
11
total PRs
0
open PRs
0
closed PRs
11
merged PRs
86
total issues
27
open issues
59
closed issues
0
commits

Latest Version

README file from

Github

Text expand

This plugin will search files using Obsidian search functionality and then paste the result. The output can be customized using template feature.

Table of Contents

How to use

  • You should wrap your search request like that
    ```expander
    SEARCH_QUERY
    ```
  • Open command palette (Ctrl + P)
  • Find and run Text expand: expand command
  • It should search and put results below the wrapped request

Search functionality

First line in expander code block is always a search request. You can leave it empty to use results from search panel as is.

Once searching, plugin waits some time (configurable) and extract results from search panel to template engine.

Template engines

eta template engine

You can use eta template engine for managing results.

## <%= it.current.frontmatter.title %>

<% it.files.forEach(file => { %>
   - <%= file.link %> 
<% }) %>

Use it object to access search results and fields for current file.

Path Type Description
it.current FileParameters Info about current file
it.files Array Info about files in search panel

FileParameters type has those fields.

Name Type Description Example
basename string Name of the file Obsidian
name string Full name of the file with extension Obsidian.md
content string Content of the file Obsidian\nContent of the file.
extension string Extension of the file .md
link string Wiki or MD link (depends on Obsidian's settings) [[Obsidian]]
path string Relative to vault root path to the file resources/Obsidian.md
frontmatter Object Returns all values from frontmatter { title: "Obsidian", author: MrJackphil }
stat Object File stats returned by Obsidian { ctime: 1654089929073, mtime: 1654871855121, size: 1712 }
links Array Array with links in the file
headings Array Array with headings in the file
sections Array Array with section of the file
listItems Array Array with list items of the file

sequence template engine (LEGACY)

Using template feature you can customize an output.

  • Put template below the SEARCH_QUERY line
  • Put a cursor inside code block with a template
  • Open command palette (Ctrl+P) and find Text expand: expand command

To create a list:

```expander
SEARCH_QUERY
- [[$filename]]
```

or to create a table:

```expander
SEARCH_QUERY
^|Filename|Content|
^|---|---|
|$filename|$lines:1|
```

Syntax looks like that:

```expander
SEARCH_QUERY
^This is a header
This line will be repeated for each file
Also, [[$filename]] <- this will be a link
>This is a footer
```
  • Line prepended with ^ is a header. It will be added at the top of the list
  • Line prepended with > is a footer. It will be added at the bottom of the list
  • Line with no special symbol at start will be repeated for each file. Also, all special sequences will be replaced.
Special sequences
Regexp Description Usage example
$filename a basename of a file $filename
$link wikilink $link
$searchresult the context displayed in the Obsidian search, depending on the amount of context that is selected in the search window $searchresult
$matchline the line which contains the search query $matchline
$matchline:NUMBER the line which contains the search query and NUMBER lines after and before matched line $matchline:10
$matchline:+NUMBER the line which contains the search query and NUMBER lines after matched line $matchline:+10
$matchline:COUNT:LIMIT the line which contains the search query and NUMBER lines around and limit line by LIMIT characters $matchline:0:10
$lines the full content of the file $lines
$lines:NUMBER NUMBER lines from the file $lines:10
$ext extension of the file
$created
$size
$parent parent folder
$path path to file
$frontmatter:NAME frontmatter value from field NAME
$header:## all headers as links
$header:###HEADER headers as links $header:##Ideas $header:"## Plugins for Obsidian"
$blocks all blocks paths from the note as links

Settings

  • Delay (default: 100ms) - the plugin don't wait until search completed. It waits for a delay and paste result after that.
  • Line ending (default: <-->) - how will looks like the line below the expanded content
  • Default template (default: - [[$filename]]) - how will look the expanded content when no template provided
  • Prefixes - which prefix to use to recognize header/footer in template section

Install

  • Just use built-in plugin manager and find Text expand plugin

Manually

  • You need Obsidian v0.9.18+ for latest version of plugin
  • Get the Latest release
  • Extract files and place them to your vault's plugins folder: <vault>/.obsidian/plugins/
  • Reload Obsidian
  • If prompted about Safe Mode, you can disable safe mode and enable the plugin. Otherwise, head to Settings, third-party plugins, make sure safe mode is off and enable the plugin from there.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
2Hop Links
5 years ago by Tokuhiro Matsuno
2Hop Links Plus
3 years ago by Tokuhiro Matsuno, L7Cy
Related links up to 2 hops away are displayed in a card format.
Abbrlink
2 years ago by Q78KG
Account Linker
4 years ago by qwegat
Plugin for posting links to various SNS accounts on Obsidian
Alias Picker
2 years ago by rostunic
Another Quick Switcher
5 years ago by tadashi-aikawa
This is an Obsidian plugin which is another choice of Quick switcher.
Arcane Obfuscate
2 years ago by Shusako
Obfuscate text in Obsidian.md with an arcane runic effect.
Auto Card Link
4 years ago by Nekoshita Yuki
Auto Link Title
5 years ago by Matt Furden
Automatically fetch the titles of pasted links
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Better Markdown Links
2 years ago by mnaoumov
Obsidian plugin that adds support for angle bracket links and manages relative links properly
Blockreffer
2 years ago by tyler.earth
An Obsidian plugin to search and embed blocks with ^block-references (aka ^block-ids)
Book Search
4 years ago by anpigon
Obsidian plugin that automatically creates notes by searching for books
Boost Link Suggestions
3 years ago by Jacob Levernier
An Obsidian (https://obsidian.md) plugin for altering the order of inline link suggestions by link count and manual boosts.
Bulk open selected links
3 years ago by Steven Jin
This plugin would work by extending Obsidian's functionality to detect when multiple notes or files are being dragged onto its interface
Buttons
5 years ago by Sam Morrison
Buttons in Obsidian
Canvas Link Optimizer
2 years ago by khaelar
An Obsidian plugin that optimizes canvas links by displaying a page thumbnail.
Canvas Links
3 years ago by aqav
Show the links between "Canvas" and "File"
Card View Switcher
4 years ago by qawatake
An Obsidian plugin to provide a quick switcher with card view
Clipboard Manager
10 months ago by Ayush Raj
The clipboard obsidian plugin
Clipper Catalog
a year ago by Greg K.
A catalog view that provides a powerful interface for all your clipped web articles and content. Easily organize, search, and manage your web clippings within your vault.
CmdSearch
a year ago by SpaceshipCaptain
Colored Tags
3 years ago by Pavel Frankov
Colorizes tags in different colors.
Colored Text
3 years ago by Erinc Ayaz
Colorizelt
2 years ago by Artsem Holub (WiNE-iNEFF)
Easy color and clear selected text
Consistent attachments and links
5 years ago by Dmitry Savosh
Obsidian plugin. Move note with attachments.
Contacts
3 years ago by vbeskrovnov
With this plugin, you can easily organize and manage your contacts within Obsidian. Simply create a note with contact information and use the plugin's features to quickly search, and sort through your contacts. Contacts plugin also helps you to remember birthdays of your contacts and keeps track of the last time you met them.
Copy Search URL
4 years ago by Carlo Zottmann
A plugin for Obsidian (https://obsidian.md) that adds a menu entry to its search view for copying the Obsidian search URL.
Core Search Assistant
4 years ago by qawatake
An Obsidian plugin to enhance built-in search: keyboard interface, card preview, bigger preview
Dynamic Text Concealer
2 years ago by Matt Cole Anderson
Obsidian.md Plugin to conceal or replace user configured text patterns in Live Preview and Read Mode.
EasyLink
a year ago by isitwho
Select text in your obsidian editor to find the most similar content from other notes and easily create links.
Emoji Magic
3 years ago by simplgy
Makes it easier to add emojis using an improved keyword search
Enhance YouTube Links
3 years ago by GitSum
Take a YouTube link and get the title and optionally channel name, channel URL, and thumbnailURL.
External Link Helper
3 years ago by Jhonghee Park
Obsidian plugin for link suggestion
External Link Opener
3 years ago by zorazrr
Obsidian plugin to open external links in modals or tabs
Find orphaned files and broken links
6 years ago by Vinzent
Find files, which are nowhere linked, so they are maybe lost in your vault.
Floating Search
3 years ago by Boninall
A plugin for searching text by using Obsidian default search view.
Fuzzy Chinese Pinyin
3 years ago by lazyloong
GH Links Shortener
8 months ago by David Barnett
Obsidian plugin to set shortened link text for pasted GitHub URLs
Ghost Text
9 months ago by lawrencefeng17
Giphy
2 years ago by LuCrypto
Global Search and Replace
3 years ago by Mahmoud Fawzy Khalil
A plugin to do a global search and replace in all your Obsidian vault files.
Hover External Link
5 years ago by Jamie Brynes
Small plugin to add tooltips on hovering external links
Image Picker
a year ago by ari.the.elk
Image to HTML
a year ago by 0x1DA9430
A plugin for Obsidian that converts pasted images to HTML format instead of Obsidian's wikilink or Markdown format
Insert Heading Link
4 years ago by Signynt
Add a Link to a Heading.
Jelly Snippets
3 years ago by Spencer Gouw
A simple text snippets plugin for Obsidian.md. BACKUP SNIPPETS BEFORE UPDATING.
Jump to link
6 years ago by MrJackphil
Quick jump between links using hotkeys
Just Share Please
3 years ago by Ellpeck
An Obsidian plugin that allows quickly and easily sharing individual notes online using an anonymized link
Khoj
3 years ago by Debanjum Singh Solanky
Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (gpt, claude, gemini, llama, qwen, mistral). Get started - free.
Lemons Search
2 years ago by Moritz Jung
An Obsidian plugin that offers a fast fuzzy finder based quick switcher with preview.
Line Commands
2 years ago by charliecm
Adds commands to quickly select, copy, cut, and paste lines under the selection or cursor.
Link Archive
5 years ago by Tamás Deme
Link Archive plugin for Obsidian
Link Converter
5 years ago by Ozan Tellioglu
Obsidian Plugin to scan all your links in your vault and convert them to your desired format.
Link Embed
4 years ago by SErAphLi
This plugin allow you to convert URLs in your notes into embeded previews.
Link Exploder
3 years ago by Ben Hughes
Link Favicons
5 years ago by Johannes Theiner
See the favicon for a linked website.
Link Navigation
2 years ago by xRyul
Navigate between incoming links (inlinks), outgoing links (outlinks) N levels deep. Links from Canvas are also supported.
Link Preview
2 years ago by Felipe Tappata
Obsidian plugin that previews external links on hover.
Linkify
4 years ago by Matthew Chan
Links
3 years ago by MiiKey
manipulate & manage obisidian links
LinkShelf
3 years ago by Joel Sequeira
Effortlessly save and organize your web links in Obsidian
Markdown Link Space Encoder
3 years ago by Ron Kosova
Obsidian plugin to automatically encode spaces to %20 in Markdown-style links
Media Companion
a year ago by Nick de Bruin
Metadata Menu
4 years ago by mdelobelle
For data management enthusiasts : type and manage the metadata of your notes.
Modal Opener
2 years ago by Muuxi
Open files and links in modal windows, or create and edit compatible files in modal windows.
mpv links
2 years ago by patsh90
Obisidian plugin for creating and using video links
NetClip
a year ago by Elhary
this plugin is for Obsidian that allows you to browse the web and clip webpages directly into your vault.
New Note Fixer
a year ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Next Link
3 years ago by Juan Luque
Nifty Links
3 years ago by x-Ai
Generating elegant, Notion-styled rich link cards to enhance your note-taking experience.
Node Factor
a year ago by CalfMoon
Customize factors effecting node size in obsidian graph.
Note Batcher
3 years ago by MrAnyx
Create all unresolvered links with a single click on your Obsidian vault
Note Codes
9 months ago by Ezhik
Reference your Obsidian notes from anywhere with simple 4-character codes.
Omnisearch
4 years ago by Simon Cambier
A search engine that "just works" for Obsidian. Supports OCR and PDF indexing.
Open Link With
5 years ago by MamoruDS
Open external link with specific brower in Obsidian
Paste as Embed
2 years ago by Matt Laporte
Obsidian plugin to paste contents of clipboard into a new note, and embed it in the active note.
Paste as file link
9 months ago by Matthias Büge
This plugin is used to paste a text from the clipboard as a link to an existing obsidian note
Paste As Html
3 years ago by maotong06
Paste From History
2 years ago by Daniel Karakka
Obsidian plugin that adds the ability to paste text from Obsidian's clipboard history.
Paste Mode
5 years ago by Jacob Levernier
Obsidian Notes plugin for pasting text and blockquotes to the cursor's current level of indentation.
Paste Reformatter
a year ago by Keath Milligan
A plugin for Obsidian that reformats pasted HTML and plain text content, giving you precise control over how content is transformed when pasted into your notes.
Paste transform
2 years ago by Timofey Koolin
Paste URL into selection
6 years ago by Denis Olehov
Paste URLs into selected text "notion style"
Pending notes
3 years ago by Ulises Santana
Obsidian plugin for searching links without notes in your vault.
Persistent Links
3 years ago by Ivan Lednev
More robust internal links for Obsidian!
Power Search
4 years ago by Aviral Batra
Publish and GitHub URL
5 years ago by kometenstaub
Copy or open the Obsidian Publish URL of a note. You can also open its Git commit history on GitHub.
Quiet Outline
4 years ago by the_tree
Improving experience of outline in Obsidian
Regex Mark
2 years ago by Mara-Li
Relative Find
5 years ago by phibr0
Remove Newlines
2 years ago by Elias Jaffe
A plugin for Obsidian.md which removes newlines and blank lines from selected or pasted text.
Rich Links
5 years ago by dhamaniasad
Search Everywhere
4 years ago by Mom0
Obsidian Search Everywhere Plugin
Search In Canvas
2 years ago by Boninall
Search Templates Library
3 years ago by Pentchaff
Obsidian plugin that allows to store searches templates for later use, and displays search results both in the search view and graph view.
Segerlab
2 months ago by Semyon Kononchuk
Renders calculator views within notes from JSON data copied from the Segerlab app.
Semantic Search
3 years ago by bbawj
Semantic search for Obsidian.md
Settings Search
4 years ago by Jeremy Valentine
Adds a search bar to Obsidian.md's settings
Share as ZIP
2 years ago by Till Friebe
Short Internal Links to Headings
3 years ago by Scott Moore
An Obsidian plugin to display short internal links.
Shukuchi
3 years ago by tadashi-aikawa
Shukuchi is an Obsidian plugin that enables you to teleport to links (URL or internal link).
Simple CanvaSearch
3 years ago by ddalexb
Snippetsaurus
2 years ago by Christian Humbert
Spotify Links
3 years ago by Dillon Cutaiar
For those that get inspired to write by music, a small plugin connecting Spotify to Obsidian.md
Tag Links
2 years ago by Zacchary Dempsey-Plante
A plugin for Obsidian that allows tags to be opened as links using a hotkey.
Tag Wrangler
5 years ago by PJ Eby
Rename, merge, toggle, and search tags from the Obsidian tag pane
Testing Vault
3 years ago by Michael Pedersen
Text Conversions
3 years ago by Juan D Frias
Text conversions for Obsidian
Text Dataset Aid Plugin
3 years ago by Conner Ohnesorge
This is a obsidian plugin to help with the creation of personal jsonl datasets for text generation models.
Text Extractor
3 years ago by Simon Cambier
A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.
Text Finder
2 years ago by hafuhafu
Provides a find/replace window in edit mode similar to VSCode (supports regular expressions and case sensitivity).
Text Focus
2 years ago by usysrc
Focus the text area when opening a new note.
Text Format
5 years ago by Benature
Format seleted text in Obsdidian.md
Text Generator
4 years ago by Noureddine Haouari
Text Generator is a versatile plugin for Obsidian that allows you to generate text content using various AI providers, including OpenAI, Anthropic, Google and local models.
Text Snippets
5 years ago by Ariana Khitrova
Snippets plugin for obsidian
Text Transform
3 years ago by ipshing
Text Transporter
5 years ago by TfTHacker
Text Transporter - advanced text management for Obsidian.
Textgrams
2 years ago by Akop Kesheshyan
Create and store ASCII graphics in your Obsidian
TG Emoji Search
a year ago by MarsBatya
Timestamp Link
3 years ago by wenlzhang
An Obsidian plugin to copy timestamped links to blocks, headings and notes.
Title As Link Text
a year ago by Lex Toumbourou
An Obsidian plugin to set the Link Text using the document title
Toggle Case
3 years ago by automattech
Obsidian plugin to toggle between `lowercase` `UPPERCASE` and `Title Case`
Translator
4 years ago by Haifeng Lu
A plugin for Obsidian to translate selected text.
Tree Search
2 years ago by catacgc
Unicode Search
3 years ago by BambusControl
Simple Unicode character search for Obsidian.md
Update Relative Links
4 years ago by val
URL Namer
4 years ago by zfei
Vantage - Advanced search builder
5 years ago by ryanjamurphy
Vantage helps you build complex queries using Obsidian's native search tools.
Version History Diff (Sync, File Recovery & Git)
4 years ago by kometenstaub
Get a diff view of your Obsidian Sync, File Recovery and Git version history
Zotero Link
4 years ago by Shmavon Gazanchyan
Obsidian plugin to insert link to Zotero item