+5

Sublime Text 3 put C language as C++

MoonFruit vor 11 Jahren 0

When I use Sublime Text 3, I found Sublime Text 3 put a file which name end with ".c" as C++ language instead of C language.

This leads to some plugin work error, such as SublimeClang.

I modified C++.tmLanguage, delete the line "C", and It is correct now.

And this has not happened in Sublime Text 2.

So I think it is a bug in Sublime Text 3, that it detect file type by using ignored case file name.

By the way, I use Sublime Text 3 in Windows 7 x64.

+5

New files don't update the project side bar

Henrique Boaventura vor 13 Jahren aktualisiert von Phillip Harrington vor 12 Jahren 4
When you create a new file in the side bar, when you save it, the side bar isn't updated, then you can't reopen the file if you close tthe tab, only if you reopen Sublime Text 2
+5

Undo buffer

Woody vor 13 Jahren aktualisiert vor 13 Jahren 0
Restore the undo buffer when returning from a session that was closed with "hot_exit" enabled.
+5

Don't de-minimize when opening a folder

Alexander Surma vor 13 Jahren aktualisiert vor 13 Jahren 0
(Really a first-world problem here and this might even be Mac OS X’s not yours)
When I open a *folder* from command line using `subl` (e.g. `$ subl .`) and all my Sublime windows are minimized, one of them is de-minimized, and then new window opens.
So I have to minimize that one window manually again. Really annoying. 
+5

Prevent empty document creation on start

Nick vor 13 Jahren 0
ST2 always seems to create an empty document upon start. When I'm editing a file from the command line or running ST2 directly and reloading my previous project / open files, I wind up with these extraneous blank documents. I would like an option to prevent this blank document from being created (a la TextMate).
+5

Spell check as you go (f6) is a little flakey.

Perry Kibler vor 13 Jahren aktualisiert von Keith David Bershatsky vor 12 Jahren 3
If you're working with spell-check-as-you-go on (f6), sometimes flagged words will go dark (which in my theme, means they are invisible), other times, they are white text (as they should be) with red underlines. If they do go dark, simply continuing to type will fix the problem, but it's a shame to have such a beautiful product marred by such a silly bug.
+5

expose modifier-click events (e.g. alt+lmb click in view) also additional mouse buttons

walter lynsdale vor 12 Jahren 0
visual studio and Xcode both have the neat ability to trigger navigation from ctrl or cmd plus mouse clicks for 'jump to definition'. The ability to expose these UI actions to plugins would be fantastic; they could be used to trigger jump to ctag, find-symbol-in-files, etc
+5

Back Button Behavior after using 'Goto Definition' in Sublime Text 3

Brian Wishan vor 12 Jahren 0
It would be nice that after using 'Goto Definition' to navigate to a symbol in the same file, the back button returned you to the previous cursor location instead of the previous file that was visited.
+5

Support for translations

Vitor Hugo vor 12 Jahren 0

It would be nice if you put support for translations!

+5

OS X should resume in fullscreen

Todd Kennedy vor 12 Jahren 0
If an app is quit on OS X Lion when it's in Full Screen, the app should re-open in fullscreen when re-launched.
I'm really lazy and hate clicking the full screen button
+5

Edit files with no permission

hiver yan vor 13 Jahren 0
On mac, I can't save it. 
I suggest give me a notice to authorization. Like other editor
+5

Problems with smb shares

jonrandy vor 14 Jahren 0
With a network folder added to a project I don't seem to be able to navigate more than 3 levels deep in folder structure. Share mounted with smbmount. No problems with other apps
+5

'Ensure newline at EOF' could do to trim extra newlines.

Itai Ferber vor 13 Jahren 0
The 'ensure newline at EOF' option in ST2 checks to see if the file ends in a newline, and if not, adds one. However, it doesn't trim any excessive newlines. So if a file ends in, say, 7 newlines, it doesn't trim them to just one.

By default, EnsureNewlineAtEof looks like the following:
class EnsureNewlineAtEof(sublime_plugin.EventListener):
    def on_pre_save(self, view):
        if view.settings().get("ensure_newline_at_eof_on_save") == True:
            if view.size() > 0 and view.substr(view.size() - 1) != '\n':
                edit = view.begin_edit()
                view.insert(edit, view.size(), "\n")
                view.end_edit(edit)

I think it would be really nice if it could trim excessive newlines, like so (this code doesn't mess around with the position of the cursor, so you don't get scrolled up or down in the file):
class EnsureNewlineAtEof(sublime_plugin.EventListener):
    def on_pre_save(self, view):
        if view.settings().get("ensure_newline_at_eof_on_save") == True:
            if view.size() > 0:
                edit = view.begin_edit()
                content = view.substr(sublime.Region(0, view.size())).rstrip()
                view.erase(edit, sublime.Region(len(content), view.size()))
                view.insert(edit, len(content), os.linesep) # linesep is used for cross-platform compatibility - and line encodings - but "\n" works too for the most part.
                view.end_edit(edit)

I've added this code to a custom plugin, but it would be much nicer to get this behavior by default. Or at least, get an additional option to trim excessive newlines from files.
+5

acces shortcuts from command palette

Alexandru Iga vor 12 Jahren 0
in numerous occasions some of the shortcuts i use are overridden by a plugin, i would just love the possibility to have in command palette the possibility to type something like "shortcuts: ctrl+shift+n" that will display all the shortcut files that use that shortcut.
+5

Hints from many files

Andrei Misarca vor 13 Jahren aktualisiert vor 13 Jahren 0
Hey, Sublime Text 2 is really great, but it would be extremely nice if the code hints available would include words from all the files in project, or at least from the currently opened files (like gedit)
+5

Vintage mode should implement tilde key to change case

Duane Johnson vor 13 Jahren 0
In Vi(m), the tilde key (~) normally toggles upper/lower case text.
+5

There should be an Auto Format feature

Ecil Teodoro vor 13 Jahren aktualisiert vor 13 Jahren 0
An Auto Format feature just like CTRL+ALT+L on RubyMine.
+5

Add .htaccess to regonized file types

Leo Koppelkamm vor 13 Jahren aktualisiert vor 13 Jahren 1
+5

API support to write plugins for marking the file with custom labels/ decorating its bar with signs

Tamas Szebeni vor 12 Jahren 0

I would like to find a plugin very useful which can run a command in behind to check the current file's custom attributes, this is like integrating sublime with other tools like perforce when I can check a file out for editing in my plugin but I can't mark that file with custom signs/labels to indicate that its already checked out (something like the option dirty, just controlled by my plugin I would create and not cleared when saving).


Thank you

+5
Fertiggestellt

Trim lines at the time of saving file

Vinay Jeurkar vor 13 Jahren in Plugin announcements aktualisiert von Jon Skinner vor 13 Jahren 2

You can put an ON / OFF option which will decide wheather to trim white spaces or not from each line in currently opened file at the time of  saving the file.
Or you can ask user to specify characters to be trimmed at the end of the line in your Default File Preferences
e.g. 
//set to true if you want to trim lines for white spaces at the time of saving file.
"trim_on_save": true,
//specify charaters to trim. It will trim if trim_on_save option is true.
"trim_characters": " \t",

Antwort
Jon Skinner vor 13 Jahren
The trim_trailing_white_space_on_save setting can be used for this