Replace Pencil

by penyt
5
4
3
2
1
Score: 54/100

Description

The Replace Pencil plugin allows dynamic text replacement within code blocks by using placeholders. Users can define a custom prefix in the settings and wrap any text they want to replace in the chosen placeholder format, such as angle brackets. In Reading Mode, an input field and a clear button appear beside the code block, enabling on-the-fly updates. A copy button simplifies exporting the modified content to the clipboard, while a sidebar eraser button resets all changes instantly.

Reviews

No reviews yet.

Stats

5
stars
272
downloads
0
forks
333
days
6
days
6
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

6 days ago

Changelog

Changes

  • Updated minAppVersion to 1.8.7 for App.loadLocalStorage and App.saveLocalStorage compatibility.
  • Updated build dependencies and removed the deprecated builtin-modules package.
  • Fixed code quality warnings.
  • Fixed CSS hex color format consistency.
  • Added clipboard privacy disclosure to README.
  • Rebuilt main.js for this release.

Privacy

Replace Pencil only writes to the system clipboard when the user clicks the "Copy" button. It does not read clipboard contents.

README file from

Github

Replace Pencil -- Obsidian Plugin

This is a simple plugin for Obsidian that can let you easily replace the custom variable in the code block!

How to use?

  • Find and install replace-pencil plugin
  • In Settings -> Replace pencil, you can change placeholder prefix.
  • Just simply put any thing that you want to replace in <> (or any placeholder you set), in Reading Mode, the input slot and "Clear" button will appear.
  • Type into the input box, and it will automatically replace the words.
  • Press the "Copy" button at the right of the code block, the text that already replaced will be copied to your clipboard!
  • To reset everything, click the eraser button in the obsidian left sidebar. It will immediately reset everything.

DEMO

Initial Look: Initial Look

Replace Pencil Working: Replace Pencil Working

Privacy / Disclosure

Replace Pencil uses clipboard access only when you click the "Copy" button. It writes the replaced code block text to your system clipboard.

This plugin does not read your clipboard contents.

Donate

https://www.buymeacoffee.com/penyt

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
ABC Music Notation
6 years ago by Til Blechschmidt
Plugin which renders music notations from code blocks
Advanced Codeblock
4 years ago by Lijyze
An obsidian plugin that give additional features to code blocks.
Auto Journal
3 years ago by Evan Bonsignori
Opinionated journaling automation like daily notes but with backfills for the days that you didn't open Obsidian.
Auto Replacer
a year ago by Alecell
A live text replacement plugin that applies automatic formatting, corrections, or custom replacements in real-time. Define your own regex-based rules and transformation logic to modify text dynamically as you type.
Code Blocks commands
9 months ago by dragonish
Provide commands to insert code blocks with markup, and support triggering commands with backticks.
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
Codeblock Customizer
3 years ago by mugiwara
Codeblock Customizer plugin for Obsidian
CodeBlock Tabs
3 years ago by Jemin Mau
Create tab group for contiguous codeblocks.
Codeblock Template
3 years ago by Super10
A template plugin that allows for the reuse of content within Code Blocks!一个可以把Code Block的内容重复利用模板插件!
Collapsible Code Blocks
a year ago by Bradley Wyatt
Obsidian Plugin that makes code blocks collapsible in reading and edit view as well as enabling scroll-able code blocks.
Command Line
a year ago by Steven Stallion
Copy command lines from your notes to the clipboard.
Contextual note templating
2 years ago by Roman Kubiv
Contextual note templating with value input prompts configured in frontmatter.
CSV Codeblock
3 years ago by elrindir
Plugin for obsidian to render csv syntax in codeblocks.
CustomJS
5 years ago by Sam Lewis
An Obsidian plugin to allow users to reuse code blocks across all devices and OSes
Embedded Code Title
5 years ago by tadashi-aikawa
It is an Obsidian plugin which can embeds title to code blocks.
Handlebars Dynamic Templating
4 months ago by Hide_D
Handlebars dynamic templating. Define template files and use them dynamically via hb blocks. Template recursion is also possible.
HK Code Block
3 years ago by Heekang Park
Obsidian plugin developed by Heekang Park; Make code block looking good on reading view
Minitabs
2 years ago by ssjy1919
Obsidian tabs
MLIR Syntax Highlight
3 years ago by Lewuathe
Modal forms
3 years ago by Danielo Rodriguez
Define forms for filling data that you will be able to open from anywhere you can run JS
Note Placeholder
a year ago by XZSt4nce
Replaces text of note link to placeholder in view mode.
Numerals
3 years ago by RyanC
An obsidian plugin which turns a math code block into a full featured calculator
Obsidian Columns
4 years ago by Trevor Nichols
Obsidian Handlebars Template Plugin
4 years ago by Sean Quinlan
This is a plugin for Obsidian adding support for the Handlebars template engine in Obsidian notes
ProgressBar
3 years ago by Wei Zhang
Code block plugin for Obsidian generating a progress bar
Recipe Grabber
3 years ago by seethroughdev
Replace All
2 years ago by Patrick Chiang
Substitutions
2 years ago by BambusControl
Automatic text replacer for Obsidian.md
Todo.txt Codeblocks
3 years ago by Benjamin Nguyen
Manage your tasks inside Obsidian codeblocks according to the Todo.txt specification.
YAML Table
a year ago by dainakai