Code Monkey home page Code Monkey logo

Comments (4)

occivink avatar occivink commented on June 15, 2024 1

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.

occivink avatar occivink commented on June 15, 2024

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.

eko234 avatar eko234 commented on June 15, 2024

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.

eko234 avatar eko234 commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.