Sublime Forum

Dev Build 2132

#4

You can edit the Default (Windows).sublime-mousemap file

0 Likes

#5

[quote=“jps”]

You can edit the Default (Windows).sublime-mousemap file[/quote]

thanks!

0 Likes

#6

Note that the currently available Soda Theme doesn’t show the arrows for folding, missing image I think.
And the minimap isn’t refreshed immediately when you fold/unfold using button.

Nice addon Jon, thanks.

startup, version: 2132 windows x64 channel: dev

0 Likes

#7

I knew there was something about code folding that was missing. This is it! Now I’m folding everywhere :smiley:

0 Likes

#8

Nice, thanks!

0 Likes

#9

Why does this exist anywhere in any app, let alone a text editor? Who needs the ability to change the font size on the fly and actually does so enough to make the binding convenient? Especially in something like a text editor. This functionality has always completely baffled me.

0 Likes

#10

I do not like the big triangles everywhere, although I like the general functionality. Would it be possible to print some line numbers in bold (or a sightly different color) and make them click-able instead?

0 Likes

#11

What’s the future of Code Folding, still using indentation as reference or use foldingStartMarker/foldingStopMarker from .tmLanguage ?

0 Likes

#12

I think that might look nice (especially with an on hover hue change) - no additional gutter width too :smile:
But, it’s unconventional so who knows… another suggestion would be to use an additional marker in the bookmarks gutter.

Edited. I’m not an UI expert. I don’t know what I’m talking about. :neutral_face:

0 Likes

#13

Hey man . I never use code folding either, but I noticed that jps implemented code folding markers where code blocks are tab indented.
That is something I’ve never seen before that I can see being useful.

It may be much more usable if there was a single keyboard shortcut for only toggling code folding.
This way it wont be necessary to have folding markers in the gutter to fold code.
In addition, I think pressing enter or space when on a line that has folded code should unfold the code.

For example in the image below, if my cursor is at the red (or anywhere in the code block indicated by blue for that matter except line 15&16)
and I execute a toggle folding keyboard shortcut, the whole code block indicated by blue should fold.
Later, if I’m on the line 12 and I press enter or execute the toggle folding shortcut it should unfold the code.

Again I’m not a usability expert just some :bulb:'s

Edit: it may also be that I need to adjust to the current shortcuts. :neutral_face:

0 Likes

#14

Something very useful about folding I never saw in an editor is the ability to “re-fold”

Image you have a very big class with a lot of methods folded, you are working in a few very related unfolded.

You may want to “unfold” everything in order to look for something.

Then, once you finish, what you want there is “refold”… a manually “refold” takes a lot of time.

0 Likes

#15

I previously tested Dev Build 2131 and now using Dev Build 2132.
There is a problem with the selection. Sometimes I want to select some text by normal dragging and sublime start crazy one line below and also it select more portions of other lines. I was not paying attention and I can’t see a way to reproduce this. This happens with these two dev builds.

Anyone seeing this?

0 Likes

#16

Not new to this build but on Mac, when I trigger opening of a file (from external program) that is already open then ST does not automatically switch to this file.

0 Likes

#17

[quote=“tito”]Sometimes I want to select some text by normal dragging and sublime start crazy one line below and also it select more portions of other lines. I was not paying attention and I can’t see a way to reproduce this. This happens with these two dev builds.
Anyone seeing this?[/quote]

Definitely seeing this too, occasionally. Are you, by any chance, using WordHighlight plugin? I’m not 100% sure yet, but it seems that selection glitching at least happens more often with it installed, both under Linux and Windows XP. The worst part is that I can’t reproduce it properly, though.

What I can definitely say, is that when it happens, selecting text with mouse starts selection one line below of where it should actually be, and if done towards the end of the file, selection ends at the last symbol regardless of where the mouse is.

0 Likes

#18

I’m using WordHighlight. I disabled the add-on for a while after reading your comment, but it happened again. Very difficult to reproduce. I don’t think WordHighlight is the problem. It just happened to me on dev builds. Not in stable.

Is there any way to help with an output, command or something to display some debug information?

0 Likes

#19

[quote=“jps”]Dev Build 2132 is out now, with buttons in the gutter for folding indented regions. You can disable them with the new fold_buttons file setting.
[/quote]

Instead of a triangles it seems the markers should be (+) or (-) in keeping with the Sublime look. Or reduce the size of the triangles.

0 Likes

#20

[quote=“tito”]I’m using WordHighlight. I disabled the add-on for a while after reading your comment, but it happened again. Very difficult to reproduce. I don’t think WordHighlight is the problem. It just happened to me on dev builds. Not in stable.

Is there any way to help with an output, command or something to display some debug information?[/quote]

ctrl+tilde

sublime.log_commands(True)
0 Likes

#21

Running thanks

0 Likes

#22

[quote=“DSHugo”]

[quote=“tito”]Sometimes I want to select some text by normal dragging and sublime start crazy one line below and also it select more portions of other lines. I was not paying attention and I can’t see a way to reproduce this. This happens with these two dev builds.
Anyone seeing this?[/quote]

Definitely seeing this too occasionally. Are you, by any chance, using WordHighlight plugin? I’m not 100% sure yet, but it seems that selection glitching at least happens more often with it installed, both under Linux and Windows XP. The worst part is that I can’t reproduce it properly, though.

What I can definitely say, is that when it happens, selecting text with mouse starts selection one line below of where it should actually be, and if done towards the end of the file, selection ends at the last symbol regardless of where the mouse is.[/quote]

I think the problem is with “scroll_past_end” option, I just had the same issue after I set it to false in my user file settings…

EDIT: I tried to reproduce it and apparently it happens when you have scroll_past_end option set to false, then you fold something in the last lines of your code and try to select anything near those lines.

EDIT 2: The problem is with pyparadigm’s tagmatcher plugin

0 Likes

#23

[quote=“weslly”]

Definitely seeing this too occasionally. Are you, by any chance, using WordHighlight plugin? I’m not 100% sure yet, but it seems that selection glitching at least happens more often with it installed, both under Linux and Windows XP. The worst part is that I can’t reproduce it properly, though.

What I can definitely say, is that when it happens, selecting text with mouse starts selection one line below of where it should actually be, and if done towards the end of the file, selection ends at the last symbol regardless of where the mouse is.

I think the problem is with “scroll_past_end” option, I just had the same issue after I set it to false in my user file settings…

EDIT: I tried to reproduce it and apparently it happens when you have scroll_past_end option set to false, then you fold something in the last lines of your code and try to select anything near those lines.

EDIT 2: The problem is with pyparadigm’s tagmatcher plugin[/quote]

This might be because SublimeTagmatcher searches on every change of the selection. If it has to search real far, it can cause some stuttering on selection especially with the rapid changing of selection due to the drag select etc.

I had created a fork to fix things like this myself, but also added a lot of other things. You can check out my BracketHighlighter plugin which merged SublimeBracket and SublimeTagmatcher. I debounced the highlighting to cut down on how many times the highlighting was occuring. I also placed limits to keep it from bogging down things. It is all configurable as well in case you don’t like the response of things and has additional features. If you end up trying the plugin but still see issues, you can create an issue on the git site and I can look into the issue, otherwise, I would create an issue on pyparadigm’s plugin site and try to work with him to get it fixed.

0 Likes