mrjackphil / obsidian-text-expand

A simple text expand plugin for Obsidian.md
186 stars 12 forks source link

[feature request]Add some basic replacement #76

Closed dentistfrankchen closed 1 year ago

dentistfrankchen commented 2 years ago

So far this plugin has shown to be very great. However, I hope you can add some replacement for it. For example I get: 1.yyy 2.uii … I hope I can replace all * with blank since I do not want them. Also, this feature can be used to change format.

Hope it can look like:

replace: *
with: 
dentistfrankchen commented 2 years ago

Also I want to point out that this is for the result, not for the original place.

mrjackphil commented 1 year ago

@dentistfrankchen I think what using eta template feature can help you with that.

‎```expander
path:"Obsidian Plugin -" -path:"DEPRECATED" -path:"ARCHIVE"
<% it.files.forEach(file => { %>
   - <%= file.link %> 
<% }) %>
‎```
- [[Obsidian Plugin - Add link to the current note]] 
- [[Obsidian Plugin - Expander - Search and include list of notes]] 
- [[Obsidian Plugin - Jump to links]] 
- [[Obsidian Plugin - Copy note URI]] 
- [[Obsidian Plugin - Eleanor plugin]] 
- [[Obsidian Plugin - Extract text in a separate note]] 
- [[Obsidian Plugin - Insert Date - Jump to link - Toggle TODO]] 
- [[Obsidian Plugin - Move backlinks from sidepanel to the root document]] 
- [[Obsidian Plugin - name as heading in note]] 
- [[Obsidian Plugin - Put current line in global search]] 
- [[Obsidian Plugin - QNote - fast note creation]] 
- [[Obsidian Plugin - Retreave notes by interval repetition]] 
- [[Obsidian Plugin - Table editor]] 
- [[Obsidian Plugin - Unmap Vim Ctrl-C combination]] 
- [[Obsidian Plugin - Zoom in header]] 

<-->

‎```expander
path:"Obsidian Plugin -" -path:"DEPRECATED" -path:"ARCHIVE"
<% it.files.forEach(file => { %>
   - <%= "[[" + file.name + "|" + file.name.replace('Obsidian Plugin - ', '') + "]]" %> 
<% }) %>
‎```
- [[Obsidian Plugin - Add link to the current note.md|Add link to the current note.md]] 
- [[Obsidian Plugin - Expander - Search and include list of notes.md|Expander - Search and include list of notes.md]] 
- [[Obsidian Plugin - Jump to links.md|Jump to links.md]] 
- [[Obsidian Plugin - Copy note URI.md|Copy note URI.md]] 
- [[Obsidian Plugin - Eleanor plugin.md|Eleanor plugin.md]] 
- [[Obsidian Plugin - Extract text in a separate note.md|Extract text in a separate note.md]] 
- [[Obsidian Plugin - Insert Date - Jump to link - Toggle TODO.md|Insert Date - Jump to link - Toggle TODO.md]] 
- [[Obsidian Plugin - Move backlinks from sidepanel to the root document.md|Move backlinks from sidepanel to the root document.md]] 
- [[Obsidian Plugin - name as heading in note.md|name as heading in note.md]] 
- [[Obsidian Plugin - Put current line in global search.md|Put current line in global search.md]] 
- [[Obsidian Plugin - QNote - fast note creation.md|QNote - fast note creation.md]] 
- [[Obsidian Plugin - Retreave notes by interval repetition.md|Retreave notes by interval repetition.md]] 
- [[Obsidian Plugin - Table editor.md|Table editor.md]] 
- [[Obsidian Plugin - Unmap Vim Ctrl-C combination.md|Unmap Vim Ctrl-C combination.md]] 
- [[Obsidian Plugin - Zoom in header.md|Zoom in header.md]] 

<-->
mrjackphil commented 1 year ago

Feel free to reopen this issue if there are more questions!