Giter Club home page Giter Club logo

Comments (3)

metasong avatar metasong commented on July 17, 2024

@phyllisstein thank you so much for such detailed feedback with nice gif! 👍
I'm so glad you like the tool.

if I understand correctly, you are asking the the functionality of word commands.

metaWord defines 3 kinds of words:

word type description
SpaceWord(BigWord) characters separated by 'space'('Space' or 'Tab')
Word a group of alphanumeric character with underscore(A-Za-z0-9_) or a group of other symbol characters(i.e. ~!@#$%^&*()-+:;"',.<>/?[]{})
WordPart(SmallWord) a group of spaces, a part in a group of CamelCase (A-Za-z0-9) characters, a part of '_' connected (A-Za-z0-9) characters, or a group of other symbol characters

the word-commands currently use the default vscode's internal commands, whose behavior is different for left and right, which makes me pulsed too. I described this in the readme and I do have a plan to make the two direction behavior consistent when have time. (means override the default implementation, not sure all user hate the default behavior like us😉)

Note: the space-word commands's design purpose is to moveCursor/select/delete word separated by space

from metago.

phyllisstein avatar phyllisstein commented on July 17, 2024

🤦 Gah, thank you for so patiently explaining what was, I now see, already patiently explained in the README. That makes perfect sense. I think what got me turned around initially was that the word commands from this package didn't straightforwardly override the built-in commands. They just wound up appearing alongside them:

2020-06-22 20 03 20@2x

Perhaps because the commands aren't namespaced to the package, this was the odd-looking block that I added to keybindings.json to get it working:

{
    "key": "alt+left",
    "command": "cursorWordLeft"
  },
  {
    "key": "shift+alt+left",
    "command": "cursorWordLeftSelect"
  },
  {
    "key": "alt+right",
    "command": "cursorWordRight"
  },
  {
    "key": "shift+alt+right",
    "command": "cursorWordRightSelect"
  },

Anyway, working great now. Thanks again for your work on this; can't tell you how nice it is to have these commands back (not to mention beginning-/end-of-paragraph jumps!).

from metago.

metasong avatar metasong commented on July 17, 2024

@phyllisstein so glad you find your solution, 🥂

from metago.

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.