Sublime Forum

Sublime Text 3 Beta


Awesome, so far v3 easily beats v2. Seems to be a lot faster than v2, almost on par with v1. And I finally get to disable animations :smile:

Just a couple of questions:

Is there a theme that copies v1? Tabs are hard to distinguish in 2/3 and they take up more space.
How do I completely hide the folder view? view -> folders is grayed out.
What font rendering was used in v1? Trying the various pixel rendering options I’m getting close, but not quite there yet.
How can I view char encoding for a file? In v1, hovering over the tab will display the file name as well as encoding in the status bar.

And I think the status text isn’t affected by the font rendering settings (things like tab count in the status bar). Is this intentional or a bug?

Thanks Jon.

(apologies if some those features were provided by plugins, been using the same setup for almost 3 years and have probably forgotten a plugin I installed)



Without begin_edit, how do I do something like this:

                    self.__view.run_command("adb_add_line", {"some_data": data, "instance": self})
                    # or
                    self.__view.run_command("adb_add_line", {"some_data": data, "callback": self.callback})

This currently gives me:

sublime_api.view_run_command(self.view_id, cmd, args) TypeError: Value required

Do I have to expand it to self.__view.run_command("adb_add_line", {"every": single, "data": needed, "to": run, "this": command})?



quarnster: the latter option:

self.view.run_command("adb_add_line", {"every": single, "data": needed, "to": run, "this": command})

The advantage of this approach is that issued commands will work correct with repeat, as well as with macros.



FFFFF :confused: Yeah, not such a huge fan either

Yeah, it would be nice if you could somehow run arbitrary functions as commands, with access to closures, so you don’t have to do all that explicit dependency marshaling.

Note there’s lots of times from inside an on_change callback passed to show_input_panel that you need an Edit object to make sure sublime paints updates you make therein.

Or from timeouts, or … etc



Meanwhile, in Australia …



jps: ok, got it.

Are (displayname, insertname) style auto completions no longer supported, or just not working yet? This code

import sublime_plugin import sublime class EVL(sublime_plugin.EventListener): def on_query_completions(self, view, prefix, locations): return (("Hello(world)\tint", "Hello(${1:world})")], 0)
inserts “Hello(world) int” (ie, the first item)



on_query_completions is intended to be backwards compatible, so it’s likely a bug. I’ll take a look at it.



Is there any option to open each project in different process / thread?
I’m working with a huge project on PHP (thousands of files) and sublime text going to be crazy when tryed to index that. Even after close project and window tab associated with, other windows with other project still has performance issues until restart of sublime text.

This problem exists both on 2 and 3 versions.



>>> import sqlite3 Traceback (most recent call last): File "<string>", line 1, in <module> File "X/sqlite3/", line 23, in <module> File "X/sqlite3/", line 26, in <module> ImportError: No module named '_sqlite3'

Is there a reason why sqlite3 is still not available?

Could this possibly enable building external C libraries for SublimeText? Working pyzmq is something that I dream about :smile:

Can plugin_host be launched separately from the editor? Unit testing plugins would be great.



Great news!

JPS, can you comment on the upgrade process (OSX)? I understand that plugins will probably be broken. But what about user settings, key bindings, macros, etc.? Is it possible to install ST3 separately?




I just (mostly) ported sublimelint. Looks like view.set_status() is broken?
It won’t trigger reliably for me inside on_selection_modified() every other view I select. On odd views, it just swallows the status update. Even the built-in line/column number won’t update.

So if I select views 1, 2, 3, 4 in order it’ll only work for views 1, 3 or 2, 4. If I then select 1, 3, 2, 4 in order? It’ll only work for 1, 2 or 3, 4.

I’m on OSX with build 3006.



Indexing is fully asynchronous, and does no work in the main thread. I do most of my testing using the chromium project (>100k files), and observe no slowdowns.



Unfortunately It’s not possible, as plugin_host isn’t responsible for the implementation of the API, just for communication with the main sublime_text process over shared memory.



@jps Is the new name for the app on OSX (“Sublime Text”, without a version number) intentional? It’s great that I can install the new beta side-by-side with ST2, but there’s a small inconsistency in naming. Maybe “Sublime Text 3” would sound better? (Sure I can rename the installation folder, but still).



Sublime Text 3 is entirely independent from Sublime Text 2, they use different data directory locations, and you can both be run at the same time.

Everything other than plugins should work more or less the same. However, don’t simply copy your entire Packages directory from Sublime Text 2 to Sublime Text 3, as that will override all the new and updated resources in Sublime Text 3, resulting in various things not working.



Great news that ST is going forward! Congrats!

@jps Could you please consider expanding ST3 API with window.open_project()? … n_project/



Yep, it’s intentional: the version number is being emphasized less now. The whole “Sublime Text 2” came about from the original name, “Sublime Text X”, which was the initial experimental cross platform version. From there, it made the most sense to just turn the X into a 2. Long term, it’s better for the application to simply be “Sublime Text”.



@jps Is indexing for Scala supported or going to be supported?



Does Symbol Indexing works only for opened files? It seems that if I close a file, Goto Symbol in Project doesn’t find any functions that are inside the closed file. Is there an option to enabled/not enabled?

About the follow_symlinks option, where should I add it ? In the .sublime-project ? Like that:


  "path": "/Z/myproject"

“follow_symlinks”: true



The symbol indexing relies on the .tmLanguage file defining symbols. In general, if you see symbols via Goto Symbol (Ctrl+R / Command+R), then the same symbols should be getting indexed.

If the symbols are showing up in Goto Symbol, but aren’t getting indexed, then a couple of preferences will need to be set in a .tmPreferences file. I’ll happily explain what’s required if this is what you’re seeing.