GithubHelp home page GithubHelp logo

Comments (1)

AndrewRadev avatar AndrewRadev commented on June 15, 2024

I'm sorry it took so long to get to this issue.

The problem with using the "global" modifier is that it's impossible to scope it to only a part of the line. If it were allowed, the substitution would be made on anything else in the line as well, not just in the limits of the dict.

I remember a while ago when I was investigating the issue I tried to come up with some clever implementation for it, but I found out it was much harder than I had thought. I left it around to think about it... which is why it took so long to communicate with you.

Unfortunately, at this time, I don't really have a good solution for you. If I were to implement this independently for something I need, I might use my sideways plugin, or at least its internal plumbing to locate the arguments: https://gist.github.com/AndrewRadev/bd15a43f8cc5f8ec3c01741cb88753bf. But, currently, I have no way to plug this into switch. I've been planning since the beginning to make it more configurable and allow not only substitutions, but the execution of general macros and functions upon a particular pattern, but I never got around to doing it.

from switch.vim.

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.