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,421
downloads
10
forks
2,013
days
396
days
396
days
11
total PRs
0
open PRs
0
closed PRs
11
merged PRs
85
total issues
26
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.
Omnisearch
4 years ago by Simon Cambier
A search engine that "just works" for Obsidian. Supports OCR and PDF indexing.
Tag Wrangler
5 years ago by PJ Eby
Rename, merge, toggle, and search tags from the Obsidian tag pane
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.
Paste URL into selection
6 years ago by Denis Olehov
Paste URLs into selected text "notion style"
Buttons
5 years ago by Sam Morrison
Buttons in Obsidian
Quick Switcher++
6 years ago by darlal
Enhanced Quick Switcher plugin for Obsidian.md
Auto Link Title
5 years ago by Matt Furden
Automatically fetch the titles of pasted links
Text Extractor
3 years ago by Simon Cambier
A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.
Breadcrumbs
5 years ago by SkepticMystic
Add typed-links to your Obsidian notes
Quiet Outline
4 years ago by the_tree
Improving experience of outline in Obsidian
Metadata Menu
4 years ago by mdelobelle
For data management enthusiasts : type and manage the metadata of your notes.
Colored Text
3 years ago by Erinc Ayaz
Book Search
4 years ago by anpigon
Obsidian plugin that automatically creates notes by searching for books
Text Format
5 years ago by Benature
Format seleted text in Obsdidian.md
Find orphaned files and broken links
5 years ago by Vinzent
Find files, which are nowhere linked, so they are maybe lost in your vault.
Settings Search
4 years ago by Jeremy Valentine
Adds a search bar to Obsidian.md's settings
Colored Tags
3 years ago by Pavel Frankov
Colorizes tags in different colors.
Another Quick Switcher
5 years ago by tadashi-aikawa
This is an Obsidian plugin which is another choice of Quick switcher.
Consistent attachments and links
5 years ago by Dmitry Savosh
Obsidian plugin. Move note with attachments.
Simple CanvaSearch
3 years ago by ddalexb
Link Embed
4 years ago by SErAphLi
This plugin allow you to convert URLs in your notes into embeded previews.
Auto Card Link
4 years ago by Nekoshita Yuki
Links
3 years ago by MiiKey
manipulate & manage obisidian links
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.
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.
Link Favicons
4 years ago by Johannes Theiner
See the favicon for a linked website.
Floating Search
3 years ago by Boninall
A plugin for searching text by using Obsidian default search view.
Text Snippets
5 years ago by Ariana Khitrova
Snippets plugin for obsidian
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
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.
Text Transporter
5 years ago by TfTHacker
Text Transporter - advanced text management for Obsidian.
Jump to link
6 years ago by MrJackphil
Quick jump between links using hotkeys
Core Search Assistant
4 years ago by qawatake
An Obsidian plugin to enhance built-in search: keyboard interface, card preview, bigger preview
Link Exploder
3 years ago by Ben Hughes
Rich Links
5 years ago by dhamaniasad
Virtual Linker / Glossary
2 years ago by Valentin Schröter
Plugin for obsidian that automatically generates virtual links for text within your notes that match with the titles or aliases of other notes in your vault.
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.
Vantage - Advanced search builder
5 years ago by ryanjamurphy
Vantage helps you build complex queries using Obsidian's native search tools.
2Hop Links Plus
3 years ago by Tokuhiro Matsuno, L7Cy
Related links up to 2 hops away are displayed in a card format.
Fuzzy Chinese Pinyin
3 years ago by lazyloong
Unicode Search
3 years ago by BambusControl
Simple Unicode character search for Obsidian.md
Emoji Magic
3 years ago by simplgy
Makes it easier to add emojis using an improved keyword search
Open Link With
5 years ago by MamoruDS
Open external link with specific brower in Obsidian
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 Link
2 years ago by Jose Elias Alvarez
Intelligently paste Markdown links in Obsidian.
Canvas Links
3 years ago by aqav
Show the links between "Canvas" and "File"
Obsidian Query Language
5 years ago by Joost Plattel
An Obsidian plugin allowing you to query your notes
Translator
4 years ago by Haifeng Lu
A plugin for Obsidian to translate selected text.
Zotero Link
4 years ago by Shmavon Gazanchyan
Obsidian plugin to insert link to Zotero item
Better Markdown Links
2 years ago by mnaoumov
Obsidian plugin that adds support for angle bracket links and manages relative links properly
Short Internal Links to Headings
3 years ago by Scott Moore
An Obsidian plugin to display short internal links.
Paste As Html
3 years ago by maotong06
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.
Nifty Links
3 years ago by x-Ai
Generating elegant, Notion-styled rich link cards to enhance your note-taking experience.
Pending notes
3 years ago by Ulises Santana
Obsidian plugin for searching links without notes in your vault.
Modal Opener
2 years ago by Muuxi
Open files and links in modal windows, or create and edit compatible files in modal windows.
Card View Switcher
4 years ago by qawatake
An Obsidian plugin to provide a quick switcher with card view
2Hop Links
5 years ago by Tokuhiro Matsuno
Linkify
4 years ago by Matthew Chan
Regex Mark
2 years ago by Mara-Li
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.
Search In Canvas
2 years ago by Boninall
URL Namer
4 years ago by zfei
Hover External Link
5 years ago by Jamie Brynes
Small plugin to add tooltips on hovering external links
Remove Newlines
2 years ago by Elias Jaffe
A plugin for Obsidian.md which removes newlines and blank lines from selected or pasted text.
Search Everywhere
4 years ago by Mom0
Obsidian Search Everywhere Plugin
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.
Update Relative Links
4 years ago by val
Text Finder
a year ago by hafuhafu
Provides a find/replace window in edit mode similar to VSCode (supports regular expressions and case sensitivity).
Enhance YouTube Links
2 years ago by GitSum
Take a YouTube link and get the title and optionally channel name, channel URL, and thumbnailURL.
Persistent Links
3 years ago by Ivan Lednev
More robust internal links for Obsidian!
Search++
5 years ago by Noureddine Haouari
Allow inserting text context search results on the active note.
Semantic Search
3 years ago by bbawj
Semantic search for Obsidian.md
Link Archive
5 years ago by Tamás Deme
Link Archive plugin for Obsidian
Toggle Case
3 years ago by automattech
Obsidian plugin to toggle between `lowercase` `UPPERCASE` and `Title Case`
Media Companion
a year ago by Nick de Bruin
Publish and GitHub URL
4 years ago by kometenstaub
Copy or open the Obsidian Publish URL of a note. You can also open its Git commit history on GitHub.
Jelly Snippets
3 years ago by Spencer Gouw
A simple text snippets plugin for Obsidian.md. BACKUP SNIPPETS BEFORE UPDATING.
Link Preview
a year ago by Felipe Tappata
Obsidian plugin that previews external links on hover.
Power Search
4 years ago by Aviral Batra
Shukuchi
3 years ago by tadashi-aikawa
Shukuchi is an Obsidian plugin that enables you to teleport to links (URL or internal link).
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.
External Link Opener
3 years ago by zorazrr
Obsidian plugin to open external links in modals or tabs
Insert Heading Link
4 years ago by Signynt
Add a Link to a Heading.
Lemons Search
2 years ago by Moritz Jung
An Obsidian plugin that offers a fast fuzzy finder based quick switcher with preview.
Just Share Please
3 years ago by Ellpeck
An Obsidian plugin that allows quickly and easily sharing individual notes online using an anonymized link
LinkShelf
3 years ago by Joel Sequeira
Effortlessly save and organize your web links in Obsidian
Relative Find
5 years ago by phibr0
Account Linker
4 years ago by qwegat
Plugin for posting links to various SNS accounts on Obsidian
Canvas Link Optimizer
2 years ago by khaelar
An Obsidian plugin that optimizes canvas links by displaying a page thumbnail.
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.
External Link Helper
3 years ago by Jhonghee Park
Obsidian plugin for link suggestion
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
Testing Vault
3 years ago by Michael Pedersen
Text Transform
3 years ago by ipshing
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.
Markdown Link Space Encoder
3 years ago by Ron Kosova
Obsidian plugin to automatically encode spaces to %20 in Markdown-style links
Fill in the Blank (FITB)
3 years ago by Shawn McGee
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.
Node Factor
a year ago by CalfMoon
Customize factors effecting node size in obsidian graph.
Text Conversions
3 years ago by Juan D Frias
Text conversions for Obsidian
Title As Link Text
a year ago by Lex Toumbourou
An Obsidian plugin to set the Link Text using the document title
Timestamp Link
2 years ago by wenlzhang
An Obsidian plugin to copy timestamped links to blocks, headings and notes.
Spotify Links
2 years ago by Dillon Cutaiar
For those that get inspired to write by music, a small plugin connecting Spotify to Obsidian.md
Next Link
3 years ago by Juan Luque
Colorizelt
2 years ago by Artsem Holub (WiNE-iNEFF)
Easy color and clear selected text
Image Picker
a year ago by ari.the.elk
Note Batcher
2 years ago by MrAnyx
Create all unresolvered links with a single click on your Obsidian vault
Paste From History
2 years ago by Daniel Karakka
Obsidian plugin that adds the ability to paste text from Obsidian's clipboard history.
Tree Search
a year ago by catacgc
Line Commands
2 years ago by charliecm
Adds commands to quickly select, copy, cut, and paste lines under the selection or cursor.
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.
复制图文 (Copy Image Text)
a year ago by msgk
obsidian插件,复制笔记内容(包括文本和图片)到剪贴板
Paste transform
2 years ago by Timofey Koolin
Link Navigation
2 years ago by xRyul
Navigate between incoming links (inlinks), outgoing links (outlinks) N levels deep. Links from Canvas are also supported.
Giphy
2 years ago by LuCrypto
New Note Fixer
a year ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
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.
Blockreffer
2 years ago by tyler.earth
An Obsidian plugin to search and embed blocks with ^block-references (aka ^block-ids)
Textgrams
a year ago by Akop Kesheshyan
Create and store ASCII graphics in your Obsidian
EasyLink
9 months ago by isitwho
Select text in your obsidian editor to find the most similar content from other notes and easily create links.
Text Focus
2 years ago by usysrc
Focus the text area when opening a new note.
Note Codes
8 months ago by Ezhik
Reference your Obsidian notes from anywhere with simple 4-character codes.
TG Emoji Search
a year ago by MarsBatya
Tag Links
2 years ago by Zacchary Dempsey-Plante
A plugin for Obsidian that allows tags to be opened as links using a hotkey.
Share as ZIP
a year ago by Till Friebe
CmdSearch
a year ago by SpaceshipCaptain
Alias Picker
2 years ago by rostunic
Snippetsaurus
a year ago by Christian Humbert
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
Clipboard Manager
9 months ago by Ayush Raj
The clipboard obsidian plugin
Arcane Obfuscate
2 years ago by Shusako
Obfuscate text in Obsidian.md with an arcane runic effect.
Abbrlink
a year ago by Q78KG
mpv links
2 years ago by patsh90
Obisidian plugin for creating and using video links
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
8 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
Ghost Text
8 months ago by lawrencefeng17
GH Links Shortener
6 months ago by David Barnett
Obsidian plugin to set shortened link text for pasted GitHub URLs
Segerlab
a month ago by Semyon Kononchuk
Renders calculator views within notes from JSON data copied from the Segerlab app.