Sublime Forum

Why Sublime doesn't support BLOCKS operations

#18

I put new films in the same place. Problem is that I can’t paste any text on the right empty field or where I like like I can in the Kedit - Why ? because ST recognize end of line :frowning: but Kedit doesn’t care about it. Where I put my cursor I can write, move text or what ever and it not demolish my code ! It is my problem in ST.

https://drive.google.com/open?id=1CJ5eYcGpMaxA1ZbwKWaEj-24oNhkZHa3

0 Likes

#19

Ah I understand now. What you are saying is that you cannot insert a block of code at the end of existing text after the end of the proceeding line. I have added a function to my code to create appended comments at the end of a line and I needed to make a plug in python package to do this. If you want this exact functionality then you will probably need to craft or add in a package. I defer to Clams answer. I’ve never needed to paste code at the end, just within other text blocks.

0 Likes

#20

You see. No problem. Thank you for help and converstion. People using ST propably to html, www coding or programing and it is great editor nowadays in Wondows and Mac and Linux !!!. ST has many useful option like dynamic focus and many more. But as you saw…using to block data operation like columns there is no better than KEDIT. Xedit was symiliar a long ago and it is said that ST couldn’t have taken the best from the past together mix it could make a the best editor.

0 Likes

#21

You can use the Alignment package to add space characters in every line with a caret so that they line up. Assuming what you intend to paste has no leading spaces, this will result in effectively allowing you to paste lines as a “block”.

I didn’t watch the videos, so this suggestion is solely based on your conversation here.

0 Likes

#22

Thanks.

The video is awailable here

https://drive.google.com/drive/folders/1CJ5eYcGpMaxA1ZbwKWaEj-24oNhkZHa3

I am trying most of triks but it is hard job and still no the same like in Kedit.

Thank you.

0 Likes

#23

Have you tried the plugin I linked ? because it does exactly what you are showing in your video .

0 Likes

#24

I have installed it but can use it - how to copy block and paste on the right ? There are end of lines and I can go there and paste anythink ?

0 Likes

#25

Just press space, to get your cursor to the correct position.

Or in fact just install the Virtual Space Plugin which include my plugin.
Edit: Apparently this plugin is not available anymore :frowning:

0 Likes

#26

I tend to agree with @leszpol, block selections and operations should belong to the native multi-cursor editing features of ST. One of ST strong points is, after all, multi-cursor support, and his proposal would enhance the current state of how ST can handle complex selections and operations.

At least, IMO, these type of block operations is what one would expect from operations on these type of selections, except that they are not currently supported. I don’t see this as belonging to the list of the aforementioned missing features that every user would like to see implemented, it might actually be more a case of an already available feature needing to be perfectioned.

Of course, this feature would also change the core behavior of ST in many contexts, which might not be to everyone’s liking, but I’d bet it would be seen as an improvement by most.

It would be nice to have a central place for a features wish-list, were users could propose the features they’d like to see implemented, and other could vote in favor or against, so that we could have a clear picture of what might be coming (or not) in the future. ST dev team could mark features that were accepted and are pending, as well as others which are rejected, and such a central place for features request could also serve the devs as a reference to see how popular any such feature is among the userbase.

0 Likes

#27

Yes. It is it.

Regards.

0 Likes

#28

It doesn’t work- sorry :(. By press space, to get your cursor to the correct position nd crt+v it gives block at the beginning of the lines :frowning:

0 Likes

#29

Don’t press ctrl+v, press ctrl+alt+v

And since the virtual space plugin has been removed, I was taking a look and it should be possible to handle paste on click which works even where there is no text yet, i’ll experiment this weekend

0 Likes

#30

Thank you. It is better now.

…and “… it should be possible to handle paste on click which works even where there is no text yet…”
it is what I am looking for aprat form filling and mooving rectangle block like this

Thank you.

0 Likes

#31

I updated the plugin to be able to paste a block anywhere either with a right click -> paste on column or using a mouse-map to call the command…

Note that I removed the default keybinding (I should never have hard-coded keybinding in the first place, it create conflict with user keybinding) so you’ll have to manually add the keybind and mouse-map .
Example are available in the readme.

1 Like

#32

Thank you. Works fine.

But how can I off this red stripes …and what are they mean ?

0 Likes

#33

It indicates invalid code.

0 Likes

#34

And it couldn’t be omitted ?

0 Likes

#35

They are from the syntax language you have currently set.

0 Likes

#36

I think the backslashes in your code are used to indicate that a string continues on the next line. This backslash may only occur at the end of the line; however, in your code, there are spaces and characters after the backslashes. So I think your code has errors there, and the syntax file that you use marks the errors for you (rendered in pink by your colour scheme, probably Monokai).

0 Likes

#37

Thank you. It works. I have one more question. But of course I don’t disturb anybody only if you can.

I would like to mark all rectangle block and fill it with one number or letter (I need it to do regular x y z columns as a input data)

like here

and next

If I have above I could use paste in column then

The next problem is that I can’t mark block on the right where is empty space.

and work there

0 Likes