Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beacon fake cursors on symbols instead of words? #412

Open
MichaelXavier opened this issue Mar 9, 2023 · 1 comment
Open

Beacon fake cursors on symbols instead of words? #412

MichaelXavier opened this issue Mar 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@MichaelXavier
Copy link

MichaelXavier commented Mar 9, 2023

I've run across a use case that I thought would be good for beacon mode but I can't get it to work. Here's the before and after:

(oneTwo threeFour fiveSix)
(A.oneTwo A.threeFour A.fiveSix)

I first start in the parens and do ,r to select within the parens, then G to start meow mode. However, if I do meow-back-symbol or meow-forward-symbol, I would expect fake cursors to be placed at the > in (>oneTwo >threeFour >fiveSix), or one at the beginning of each symbol, but instead they always appear wordwise: (one>Two >three>Four >five>Six). I looked through the tutorial but noticed that all of the examples of auto-placement of fake cursors seem to go by word. If meow can only place them by word and not other objects like symbols, it seems difficult to use the feature, because in code you're more often dealing with symbols rather than words.

Am I missing something or perhaps is my setup misbehaving?

Edit

I remembered that in the specific code mode I was in I had set up a hook to add subword-mode which I thought might be messing things up. Turning that off, removing the hook and reloading the file makes it so the above sample works, but for some reason if there are underscores in the symbols, even though meow usually seems to understand that underscores are part of symbols, beacon mode splits at the underscore:

(oneTwo_a threeFour_a fiveSix_a)

When you try to use B or E to put cursors on the start or end of each symbol, it does (>oneTwo_>a >threeFour_>a >fiveSix_>a), whereas I'd expect it to be (>oneTwo_a >threeFour_a >fiveSix_a).

@DogLooksGood
Copy link
Collaborator

Yep, I think it's a problem. Meow's symbol selection is only available for same symbols in beacon state, there's no beginning or end of each symbols. I think we could have a fix.

@DogLooksGood DogLooksGood added the enhancement New feature or request label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants