GithubHelp home page GithubHelp logo

Merge goto-word with goto-subword about avy HOT 6 CLOSED

abo-abo avatar abo-abo commented on July 22, 2024
Merge goto-word with goto-subword

from avy.

Comments (6)

aethanyc avatar aethanyc commented on July 22, 2024

We might need to fix that goto-subword-1 cannot jump to punctuation while goto-word-1 can before merging them.

from avy.

abo-abo avatar abo-abo commented on July 22, 2024

Actually, it seems to me that another command would need to be introduced for this for a total of 3:

  • word
  • subword
  • word-or-subword

Since there are bound to be users that would want to call word when subword-mode is on, and vice versa.

from avy.

bbatsov avatar bbatsov commented on July 22, 2024

Since there are bound to be users that would want to call word when subword-mode is on, and vice versa.

We don't have such a distinction for words separated by - and _, so this seems a bit superficial to me. I think all composite words should be treated the same way.

What would the word-or-subword command to do? Act on subwords only when subword-mode is enabled?

from avy.

abo-abo avatar abo-abo commented on July 22, 2024

What would the word-or-subword command to do? Act on subwords only when subword-mode is enabled?

Exactly. It's a very simple command.

from avy.

abo-abo avatar abo-abo commented on July 22, 2024

We don't have such a distinction for words separated by - and _

This is mode-specific. We rely on \\b to tell us the word boundaries.

from avy.

bbatsov avatar bbatsov commented on July 22, 2024

Exactly. It's a very simple command.

Fair enough.

This is mode-specific. We rely on \b to tell us the word boundaries.

I understand why this is behaving like it is. I'm just saying it's not a very intuitive behaviour. At any rate - I'm fine with using a word-or-subword command.

from avy.

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.