kankaristo / atom-multi-cursor-plus Goto Github PK
View Code? Open in Web Editor NEWImproved multi-cursor functionality for Atom: https://atom.io/packages/multi-cursor-plus
License: MIT License
Improved multi-cursor functionality for Atom: https://atom.io/packages/multi-cursor-plus
License: MIT License
I'm not sure what I'm doing that's hitting this deprecation warning, but I felt like it might be useful to report it:
In multi-cursor-plus\styles\multi-cursor-plus.less
:
Starting from Atom v1.13.0, the contents of atom-text-editor
elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host
and ::shadow
pseudo-selectors, and prepend all your syntax selectors with syntax--
. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:
atom-text-editor::shadow .cursors .cursor:not(:last-child)
=> atom-text-editor.editor .cursors .cursor:not(:last-child)
atom-text-editor::shadow .cursors:not(.blink-off) .cursor:not(:last-child)
=> atom-text-editor.editor .cursors:not(.blink-off) .cursor:not(:last-child)
atom-text-editor::shadow .cursors.blink-off .cursor:not(:last-child)
=> atom-text-editor.editor .cursors.blink-off .cursor:not(:last-child)
Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.
As a user
I want up and down of new cursors to work.
So that I can actually use multicursor.
HALP.
Assigning custom properties to a marker when creating/copying it is
deprecated. Please, consider storing the custom properties you need in
some other object in your package, keyed by the marker's id property.
Function.extractParams (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/marker.js:43:14)
MarkerLayer.markRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/marker-layer.js:196:71)
DisplayMarkerLayer.markBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/display-marker-layer.js:90:62)
TextEditor.markBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1753:38)
Object.mark (/Users/wang/.atom/packages/multi-cursor-plus/lib/multi-cursor-plus.coffee:199:14)
atom-text-editor.subscriptions.add.atom.commands.add.multi-cursor-plus:mark (/Users/wang/.atom/packages/multi-cursor-plus/lib/multi-cursor-plus.coffee:13:26)
I'm using the default keymaps and moving up/down (while holding Alt) works fine, but moving left/right will move all of the cursors instead of the "main" cursor.
Latest stable Atom on OS X
on mac when I press Alt+x I get โ
How am I supposed to activate this plugging then?
Deletes all cursors except the last/active one (obviously).
When I mark multiple positions the first keystroke is doubled at the position that I marked last.
It seems like I'm not able to mark.
I tried to add a key binding, and also tried by using cmd+shift-p and select "multi-cursor-plus: mark" but it seems to me nothing happens. Am I doing something wrong?
Hey, love the package,
Found an issue with the first action being a delete when the rows are canted.. the last cursor does a double delete on the first del keystroke. Give attached.
This can be prevented from happening if you first press SPACE then do your delete action. So for some reason its only on first action delete. Any other action prior nullifies the issue.
Regards,
Slater
I like the workflow from the sublime text package: PowerCursors much better, because then you do not have to override all of your alt-keybindings to add and especially move around with multiple cursors.
In contrast in the Sublime text package PowerCursors you only need two keybindings: First you use the "mark" command to add an (inactive) cursor. After that you can move around freely with your normal keybindigs and mark some other positions. Then you need an "activate" command to activate the inactive cursors all at once. Of course adding and removing cursors is also possible, as well as switching between inactive/active cursors.
What do you think is a better workflow and why? I really do not want to override my alt-keybindings!
Is there a (easy) way to change the behavior from the current situation to the one from PowerCursors?
It would be nice to be able to mark cursor without having to always holding the alt button and activate them all at once with another command. Look at SublimeText PowerCursors https://packagecontrol.io/packages/PowerCursors. They save the mark and then when the user is ready he activates all of them at once. This permits to use regular command in Atom to move the cursor and unmark any cursor.
Atom doesn't allow creating a cursor on top of another cursor, so multi-cursor-plus
creates the new cursor at the beginning of the file and moves it to the same position as the current cursor.
If there is already a cursor at the beginning of the file, the new cursor is created at the end of the file instead.
If there is a cursor at the beginning and end of the file, creating a new cursor doesn't work correctly.
Every line and column in the buffer could be looped through to find a position without an existing cursor, but this could be horrible for performance (every position needs to be checked against every existing cursor). This might work well enough, but some other solution would probably be better.
not sure what's involved, if this just need different suggested keybinding options or what, but it would be ideal to have this plugin working fully with all the vim stuff in vim-mode.
In standard Atom (without amcp) for Mac, if i create cursors (cmd+click) before and after a portion of a text in a line, and then i hit Enter, that portion of text goes well indented on a new line.
If i do it with amcp (alt+x), under the portion of text an extra empty new line is created.
Is it possibile to fix this?
Thanks.
Hey, would it be possible to mark new positions via mouse?
e.g. I would start at the first position with Alt+X and then hold Alt and mark the other positions by clicking with the cursor.
This would make things easier and not eat up so many key bindings.
Is this even possible?
i review your questions and rethink my issue.
I think that me needed simple command mark-and-move
example:
'ctrl-alt-up': 'multi-cursor-plus:mark--move-up'
'ctrl-alt-down': 'multi-cursor-plus:mark--move-down'
# move left and right keys yet bind and i don't know do they need/
# 'ctrl-alt-left': 'multi-cursor-plus:mark--move-left'
# 'ctrl-alt-right': 'multi-cursor-plus:mark--move-right'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.