skepticmystic / codeblock-completer Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Another nice plugin I am using is code block label plugin (also beta), which uses {}
after the language to set a file name.
Any chance you might add an option to append those? Would remove a tiny bit of friction :)
Actually, it's three minor bugs all related to the codeblock label:
{}
still gets appended{}
shouldn't be appended for code block types from plugins, since it doesn't matter there and actually makes the code blocks invalid for plugins.{}
{}
turned on, place the cursor between the braces after completion :PI assume this would be a nice addition for various complements, since you would avoid splitting up suggesting functionality into dozens of small plugins? https://github.com/tadashi-aikawa/obsidian-various-complements-plugin
The good news is though, that you plugin fantastically synergizes with my smarter md hotkeys plugin. the bad news, that together with my plugin (or when already having content in the code block in general) it still adds the line breaks, creating unnecessary line breaks you have to remove manually again.
When starting a code block with auto pair markdown syntax
disabled, I first type
```
The suggestions show up as expected. To close the code block, I have to type it again. This time, it also shows the suggestions and I have to exit them with Esc. It would be great if it checked whether there was something with this form
```<some-lang>
before it and wouldn't show the suggester. That shouldn't make the Regex more difficult, but would warrant another regex check once the three backticks have triggered it.
codeblock-completer/src/Suggester.ts
Lines 26 to 40 in 647b949
Thank you for the plugin! Means I actually remember what codeblocks I can use sometimes!
Admonitions are most of my suggestions, but I never use codeblock admonitions. It'd be convenient to be able to hide those suggestions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.