Comments (4)
My dark secret is that I've never actually used this plugin (in a real context), I made it to scratch an itch but then never integrated it into my workflow.
At the same time I don't really like the current design of some parts of this plugin, it's somewhat 'maximalist' and tries to do everything. I've made a branch where I stripped down the plugin to a state I like better, but there again I haven't taken the time to integrate it into my workflow. So I've not pulled the trigger of merging.
I guess I just don't need snippets that badly (or maybe I just don't know what I'm missing out on).
from kakoune-snippets.
Sounds like a nice idea. I think it would be possible by replacing this line by eval reg dquote '%arg{1}'
, which would 'force' another level of expansion. Of course that would mean quoting the arg, and having to escape the snippet syntax AND the kakoune syntax on top, which might be cumbersome when defining the snippets.
So all in all feasible but not trivial. Though I probably won't work on it, as I've stopped using this plugin in its current state.
from kakoune-snippets.
Oh, I understand, I'm taking a look at the code and seeing if I take the step to hack something together as indeed the nesting of
expansion make it complex to delegate the task as it would be better done by kakoune, may I ask what are you using in this plugin stead?
from kakoune-snippets.
hahahah very interseting situation of yours, well, I do not use the snippet functionality per se either, but I stole some commands of the plugin to make it easier to define other commands that just put a predefined text where I want, like creating templates for certain kind of files. Well I guess maybe I can stick to user defined commands, I'll check out that branch and maybe someday I will upload my take on the subject, thanks once again :).
from kakoune-snippets.
Related Issues (20)
- LSP completion snippets HOT 2
- Snippet load error HOT 2
- Show snippet expansion token, instead of snippet name HOT 2
- Replace first placeholder with selection HOT 6
- The plugin doesn't work in kak headless session mode HOT 2
- :snippets-info does not work for rust filetype HOT 1
- Integrate with completion menu HOT 1
- `(` in snippet file name cause error HOT 1
- Change insertion to start at first word boundary HOT 1
- Doc is not clear on how to expand snippet on keypress HOT 1
- Doc is not clear on how to define snippets other than in snippets-add-snippet HOT 2
- What is the state of the project ? HOT 2
- [Feature request] Infinite expansion
- [Feature Request] Discard default text if nothing is changed HOT 1
- snippets_auto_expand appears to do nothing HOT 3
- Snippet always expand to the first entry HOT 1
- Snippets broken on kakoune 2022.10.31 HOT 2
- Add configuration example HOT 5
- Snippets auto expand by default, contrary to docs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kakoune-snippets.