Obsidian Code Copy
This functionality is now built into Obsidian itself so this repo is considered out-of-date.
Plugin for Obsidian. Adds a button to code blocks to copy the code within. Trims whitespaces.
Heavily based on jdbrice/obsidian-code-block-copy. A few enhancements has been made though:
- Redundant resources have been removed.
- Code has been cleaned up.
- UX has been updated.
- Last trailing character is removed (always a newline in code blocks, prevents accidental code execution on paste).
Development
Copy the repo, run npm i, tweak the source, npm run build to compile into the build folder. Pull requests are welcome.