GithubHelp home page GithubHelp logo

Treat searches as text objects about vintage HOT 2 OPEN

 avatar commented on September 3, 2024
Treat searches as text objects

from vintage.

Comments (2)

misfo avatar misfo commented on September 3, 2024

Right now Vintage just uses the built-in incremental search to implement these. I don't see any way to use incremental search and have it act as a motion. We could implement a completely separate search that just uses an input widget, but that seems like a downgrade at this point...

from vintage.

adelgado avatar adelgado commented on September 3, 2024

This is maybe the last feature I miss a lot from vim in Vintage mode. I find myself typing things like d/" or d/< all the time, only to be disappointed. I don't know the specifics about plugin implementation, but from what I've understood, the problem is that using Sublime's incremental search we cannot treat the search hit as a motion; is that correct?

I agree that the standard / search should be Sublime's, since it is more powerful, but is there any way we could make d/ work using another search? Would it be simple to implement? By simple, what I mean is: Is there a documented way to show an input widget, and perform a motion on an Vintage d/ event?
Alternatively, could anyone suggest another workflow that has the same end result (Deleting until a certain match)?

from vintage.

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.