GithubHelp home page GithubHelp logo

silverquark / dance Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 71/dance

100.0 5.0 8.0 1.48 MB

Make your cursors dance with Helix-like modal editing in VS Code.

Home Page: https://marketplace.visualstudio.com/items?itemName=silverquark.dancehelix

License: ISC License

JavaScript 0.85% TypeScript 99.15%

dance's People

Contributors

71 avatar avi-d-coder avatar delapouite avatar dependabot[bot] avatar geier1993 avatar jjk96 avatar kabouzeid avatar silverquark avatar stuarth avatar thejoeschr avatar tshort avatar yuchenshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dance's Issues

x doesn't select all of first line in select mode

What happens now

Screen.Recording.2023-03-26.at.12.21.17.mov

In the video, I start selecting mid-way through line :53, then when I get to line :68 I press x. :68 gets selected to the end of the line.

What should happen

I would also expect :53 to be selected to the start of it's line when pressing x

Insert mode commands not working

Expected

Ctrl - w: deletes word in insert mode
Ctrl - u: deletes line in insert mode

Actual

Ctrl - w: shows window
Ctrl - u: something else

Temporary work around was to change the default keybindings of vscode to corresponding actions like
delete word left : ctrl- w
delete all left: ctrl-u

Hope this will be made as default in future releases

Listing some differences with Helix

Hi, I've tried to list some differences with Helix:

  • "%" doesn't select the whole file in normal mode but insert a "%" instead.
  • the match inside "mi" and match around "ma" doesn't support parameters:
    • "m" : Closest surrounding pair to cursor

Do you if support for tree sitter grammar is possible?
With that we could use the following command in match and Unimpaired mode.

  • "t" : Type Definition
  • " f" : Function
  • "a" : Argument/parameter
  • "c" : Comment
  • "T": Test

How to disable relativenumbers and/or linenumbers?

I don't use that feature, so, I have that disabled in my settings, however, by using this plugin I don't find a way to properly disable that feature

It's quite bothersome as it flickers the editor when I'm in insert mode as that mode doesn't render the numbers.

Any idea is welcome!

?D to show problems

it would be nice if ?D would show problems in the file like in Helix LSPDiagnostics

`<home>` acts like `v<home>`

Pressing <home> or <end> should just move the selection. Instead it widens from the current position to the beginning or end of the line.

In Helix:

ihello world<esc><home>d -> ello world

In Dance - Helix:

ihello world<esc><home>d -> empty buffer

I think I prefer the current behavior, but it doesn't correspond with helix's behavior, so I guess it's a bug.

maintenance status

Hello @Silverquark ,

Could you please tell us what's the maintenance status of this repo?

If you don't have the willingness or the time to maintain this repo, are you open to new maintainers?

:w to save

I don't expect this package to implement all of helix's colon menu tools, but things like :w would be very nice just due to muscle memory

Expand/shrink selection command selects one extra character under the cursor

In Helix, there's an expand_selection (shrink_selection) command, which expands (shrinks) selection to parent syntax node. The equivalent command in VS Code editor.action.smartSelect.expand can be โ€“ if one changes some keybindings โ€“ made to behave quite like in Helix.

However, there's a glitch in VS Code that expand command with this extension installed expands selection to parent syntax node plus one extra character after the selection due to the fact that the cursor which is placed after the selection is one character wide and it is also part of the selection. This causes probems when you want to change/delete the selected portion of code

vscode-dance-helix-expand-selection-bug.mov

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.