Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.

+1

Scrolling doesn't update selection

colinta il y a 13 ans mis à jour par Максим Зубков il y a 11 ans 2
This is also posted in the forums: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=5471

The code is easy enough to test.  Open a new file.  Open the python console and type:

>>> edit = view.begin_edit('test')>>> view.insert(edit, 0, ("abcd"*12+"\n")*100)>>> view.end_edit(edit)>>> region = sublime.Region(4851, 4899)>>> view.sel().clear()>>> view.show_at_center(region)>>> view.sel().add(region)

At this point, the text should be highlighted, but it is not.  Compare with what happens when we add one more line:

>>> view.show_at_center(sublime.Region(4900, 4900))

Voilà, the selection is highlighted.


I noticed this happening when using plugins that highlight and scroll.  In my case, I'm using the SimpleMovements plugin to highlight multiple lines.  If my view doesn't scroll, the line is not highlighted, which looks like my plugin isn't working!

+1

Second instance of sublime, same file, updates and re-opens at the top of the file after changes

dave selby il y a 13 ans 0
when the 1st instance changes the file, then you move to the second instance, sublime asks you if you want to re-load as the file has changed, OK but a little irritating, auto re-load would be much better, but then it reloads and, this is a real problem,  takes you to the top of the file .... ouch .... on multiple screens with multiple instances of sublime showing different parts of you code this is a problem.
+1

Project build system does not override global one for same selector

Sergey Shepelev il y a 13 ans mis à jour il y a 13 ans 0
Project settings:

"build_systems":
    [
    {
    "name": "Pylint",
    "cmd": ["$project_path/bin/python", "-m", "pylint.lint", "$file"],
    "selector": "source.python"
},

F7 or Ctrl+B does not run this one, but default Python.sublime-build instead. I think project settings should override global.
+1

inline codeexecution like textmate

Klaus Hougesen il y a 13 ans mis à jour il y a 13 ans 0
EX:

<div id="calender">
cal|
</div>
Caret position is after cal - pressing cmd-e (for execute) will make a best guess on what to execute and execute it (executes cal in a background process / terminal and pipes the generated calendar in as a replacement for cal)

this could then be used in all files like this:

<div id="php-version">
php -v|
</div>

which would then execute php -v to get full version string and place it in the editor.


Also please add basic math features

css files:
b{
left:  10px;
right:10px;
}

Blue shows selection.

b{
left:  10px+144/3;
right:10px+144/3;
}

executing (cmd+e) would then replace selected numbers with the math:


b{
left:  58px;
right:58px;
}

+1

Allow color schemes to be read as JSON natively

robertcollier4 il y a 12 ans mis à jour par jan otte il y a 12 ans 1

Summary: Allow Color schemes to be saved in both XML and JSON. Then auto-detect the file type and parse appropriately.


Whenever I open my color scheme to make a minor edit - it gives me a 'rhetorical headache' - it is so messy and hard and difficult to read and edit XML-Plist files for this kind of content!!!


I have found PlistJsonConverter plugin - which luckily makes things doable again but brings additional problems of losing comments, formatting, structure, etc. I don't see why this can't just be automated and implemented natively. Why should I have to keep converting back and forth between XML-Plist and JSON? Why can't Sublime Text just also support reading Color Schemes in JSON natively if they are found in that format? It would save a lot of headache.

+1

Holding Shift+Option and clicking the button should performa column select

Caleb Land il y a 13 ans mis à jour il y a 13 ans 0
If I have a cursor, with no selection made, and I hold the option+shift keys and click somewhere else in the document, Sublime should column select from where the cursor was to where I clicked.

This is similar to my previous report, but I've added the Shift key, which makes it work like Text Mate.
+1

Auto save feature like espresso, or coda ,there no this kind of redactor for windows

Emil Georgiev il y a 12 ans 0

 in order to view result directly without refresh the brouser and without ctrl+s the document, this will be a wonderfull feature

+1
Pas un bug

Tab Settings Not Respecting User Settings

Carlos Rodriguez il y a 13 ans mis à jour par Jon Skinner il y a 13 ans 2
Seems like something has changed in the latest beta where new files do not respect my tab preferences.

For example: I have the following set in the Preferences.sublime-settings file:

"tab_size": 2,
"translate_tabs_into_spaces": true,
"trim_trailing_white_space_on_save": true

When opening a new file or even that file itself, it's using tabs instead of spaces.

Here is an screenshot:

Solution
Jon Skinner il y a 13 ans
Please see the documentation about detect_indentation: http://www.sublimetext.com/docs/2/indentation.html
+1
Corrigé

Highlighted text automatic quotes

James Brooks il y a 14 ans mis à jour par Jon Skinner il y a 14 ans 2
Previously Sublime would automatically append a " or ' (depending on which one you typed) when you have highlighted, however this doesn't seem to always work in Alpha 2.

I actually thought this had started working in the latest build but it doesn't always seem to invoke the same expected behaviour, sometimes appending the opposing quote or not.
+1

Unable to run package setup

Ryan Crisman il y a 13 ans 0
Arch Linux all packages are current

Traceback (most recent call last):
File "./PackageSetup.py", line 155, in upgrade
upgradePackage(pkg, pristinedir, datadir, backupdir)
File "./PackageSetup.py", line 148, in upgradePackage
os.path.join(backupdir, base), inhibitOverwrite)
File "./PackageSetup.py", line 64, in upgradeArchive
fname = os.path.join(pkgdir, f)
File ".\posixpath.py", line 70, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 49: ordinal not in range(128)