Sublime Forum

Dev Build 2162

#15

Should probably use self.transformer.im_func instead of self.transformer[0] whichs run that risk of syntactic ambiguity.

unbound method shmethod :smile:

eg.

class Transformer(sublime_plugin.TextCommand):
    def run(self, edit):
        self.transform(self.transformer.im_func, self.view, edit)

    def transform(self, f, view, edit):
        for s in view.sel():
            if s.empty():
                s = view.word(s)

            txt = f(view.substr(s))
            view.replace(edit, s, txt)

class SwapCaseCommand(Transformer):
    transformer = string.swapcase

class UpperCaseCommand(Transformer):
    transformer = string.upper

class LowerCaseCommand(Transformer):
    transformer = string.lower
0 Likes

#16

This is kind of a long standing issue, the autocomplete window will be displayed off screen if the cursor is near the lower edge of the monitor.

0 Likes

#17

Awesome!

  • This build seems to have fixed the ZenCoding plugin.
  • The new menu organization threw me off for a bit, then I remembered that I use keyboard shortcuts for everything :smile:
  • This build seems to have changed the keybinding for “build” to F7 on OSX instead of command+b. Was this on purpose to keep it standard across platforms?
  • The new autocomplete is perfect; it’s much more straight forward as to what will happen when I press a certain key.

I’m interested in seeing castles_made_of_sand’s plugin that he needed window.get_view_index() for.

0 Likes

#18

[quote=“C0D312”]Awesome!

  • This build seems to have fixed the ZenCoding plugin.
    [/quote]

Sweet. Awesome, thanks!

0 Likes

#19

I hate to nag, but four bugs I reported over the last few months are still unfixed (on the Mac version; I don’t have a Windows box on hand to check):

  • ST always opens a new window when it restarts at login, even if there was no window open before.

  • The Preferences > Browse Packages menu item is disabled when no window is open.

  • The File > Open Recent list is empty when no window is open.

  • The File > Open Recent list doesn’t show recent folders any more. (This may have been a deliberate change, but if so I’d like it back, please.)

0 Likes

#20

[quote=“CaptainCrowbar”]I hate to nag, but four bugs I reported over the last few months are still unfixed (on the Mac version; I don’t have a Windows box on hand to check):

  • ST always opens a new window when it restarts at login, even if there was no window open before.

  • The Preferences > Browse Packages menu item is disabled when no window is open.

  • The File > Open Recent list is empty when no window is open.

  • The File > Open Recent list doesn’t show recent folders any more. (This may have been a deliberate change, but if so I’d like it back, please.)[/quote]

The only one of these that I can reproduce is the Browse Packages being disabled. However, I don’t really mind because I rarely use that button.

0 Likes

#21

Jon, I love you for fixing the paste and indent :smile:
The only slight irritation now is the tab to insert completion, but I’ll give it a fair shake at working my muscle memory to it :smile:

Thanks for fixing that pasting thing!

0 Likes

#22

Sweet!

I keep getting tripped up by the tab/enter auto complete though :smiling_imp: I totally understand why though, so it’s a good thing!

0 Likes

#23

[quote=“jps”]Dev Build 2162 is out now. The next beta version should be out this week, so please let me know of any unresolved issues introduced in this series of dev builds.
[/quote]

“auto_match_enabled” works kind of funky: Suppose you have an empty buffer, type “))” and now place the cursor at the begging of the text (ie: “|))”, where | marks the cursor pos). Now try to insert a new parenthesis. You have to hit three times in order for the intended character to appear “)))|”, because each time you press “)” in that situation, it only moves the cursor one character to the left.

I’m not quite sure, but I think this used to work on early builds (< 2138 perhaps?).

I know the example is a bit weird, is just to make the problem obvious.
It usually bugs me when I need to add a closing parenthesis, square bracket, etc, just to the left of one of those characters. Example: “some_func((“missing parenthesis here->”|)”.

0 Likes

#24

This bugs me when inserting parentheses, too. For me it makes the most sense to use this keybinding: [code] { “keys”: “enter”], “command”: “move”, “args”: {“by”: “characters”, “forward”: true}, “context”:

    { "key": "following_text", "operator": "regex_contains", "operand": "^)\"\\]]", "match_all": true },
    { "key": "auto_complete_visible", "operator": "equal", "operand": false }
]   

}[/code]

instead of overriding the behavior of ", ), and ].

0 Likes

#25

I have found a bug…
The Side Bar will not refresh properly, when I close a tab and I have a folder/project and “View-> Side Bar-> Hide Open Files” enabled.

Tested on Windows and ST2 dev build 2150 - 2162

With “Show Open Files”, no problem.

With “Hide Open Files”, file highlight on sidebar show the bug.


Thank you

0 Likes

#26

Thank you for the update.

I noticed an issue that just came back, pressing shift + v to select the line then pressing k or the up arrow to select the rows above it as well now is deselecting the row you were on and just selecting the above ones again. Doing shift + v then j or the down arrow works as expected.

Many thanks!

0 Likes

#27

One more bug: Opening a Goto Panel (Ctrl+P, Ctrl+R, …) will save the file and not open the panel when save_on_focus_lost is enabled and the buffer is dirty.
The panel is opened when pressing the key combination a second time. I’ve been bitten by this on both Linux and the Mac.
The correct behaviour is probably to save the file and open the panel at the same time.
This issue has also been reported on UserEcho as a bug for build 2139.

Edit: sorry, just saw you were asking for bugs in this series of dev builds. You probably already know about all the other ones.

0 Likes

#28

Having serious performance issues with sublime text 2 (build 2162) and python. I’ve disabled all python related plugins. The cpu is pegged, and the response is extremely laggy. I haven’t seen this behavior in any of the previous builds.

If there is something I can do to help debug, let me know. Nothing of note shows up in the logs.

Edit: It was the show changes plugin.

0 Likes

#29

On Mac, the shortcut for fullscreen (on Lion) has been replaced by ‘Replace Next’ by default, annoying. Needs to move the mouse now to put ST in fullscreen.
Also, the Enter/Exit Free Distraction Mode also Enter/Exit fullscreen.

0 Likes

#30

Is commit_completion the only key I need to rebind back to Enter? I switch between far too many tools to have different keys for completion :smile:

0 Likes

#31

I think I found a bug with the autocompletion.

After hitting the tab key to autocomplete a function name, the autocomplete doesn’t automatically trigger for the function parameters.
I need to hit the ctrl+space to trigger the autocomplete for the function parameters. Previously, it was being triggered automatically.

I hope you can fix it, as the autocomplete is a real time saver.
Thanks!

0 Likes

#32

[quote]
After hitting the tab key to autocomplete a function name, the autocomplete doesn’t automatically trigger for the function parameters.
I need to hit the ctrl+space to trigger the autocomplete for the function parameters.[/quote]

I personally prefer enter for the accept completion key for exactly this reason plus the fact that enter is ingrained from other programs.

There was talk of using shift+enter/ctrl+shift+enter for snippet traversal in lieu of tab/shift+tab to alleviate this. That’s a lot of muscle memory to fight, for a lot of people though. Web forms all use tab/shift+tab for field movement.

What can you do?

0 Likes

#33

One of the many awesome thing about Sublime is how customisable it is!

Seems in the latest builds you can just use shift+enter to insert a \n in the case that the completion dialogue is open (having set as accept completion)

I personally don’t have the time to retrain to using tab so I’m stoked that it’s configurable.

0 Likes

#34

Why was using Enter for completions bad?

You could use completion inside snippets this way. While you moved through snippet points with TAB you could at the same time use completions with ENTER without interrupting the snippet.

This feature saved much time in my case (about 70% of the typing I do is inside a snippet). I think it should be at least configurable.

0 Likes