+4

Single window mode not being supported in Full Screen Lion

Paul Arterburn 13 ár síðan 0

My prefs:

"use_simple_full_screen": false,

"open_files_in_new_window": false,


These are not working together...if I have SublimeText in the new full screen OS X Lion mode and open a file from Transmit it will still create a new instance window in the same workspace as transmit. I would expect it to open a tab in the full-screen SublimeText already open.

+4

Update Rails snippets

Michal Gritzbach 13 ár síðan Uppfært 13 ár síðan 0
I'd really love to see Rails snippets updated to the most recent version, 3.2, e.g. form_for and inline ends (-%>; hate them).
+4

Draw a border around groups if scrollbars are overlayed i.e. Lion

Chris Guilbeau 13 ár síðan updated by Vincent Côté-Roy 13 ár síðan 1
When you have multiple groups and no file is selected yet, there is no distinction between where the groups begin and end. If you have scrollbars overlayed (as Lion does by default) there's no break between files unless you have minimap or line numbers turned on, and even then it looks a little messy.

Perhaps just a setting to change the background color of the gutter?
+4

Indentation for PHP broken

Bart Dabek 13 ár síðan 0

Case statements do not properly work with indentation... 


the line echo should be indented one tab over... also comments really mess with the indentation within php... 


switch (variable) {

case 'value':

   echo 'vv';

   break;


   default:

# code...

   break;

}

+4

Templates for creating new documents of different types

Dan Blanchard 13 ár síðan updated by Thierry Goettelmann 13 ár síðan 1

 I'm not sure if this is just hidden somewhere and I'm unaware of it, but it would be really nice if ST2 had a set of templates that you could choose from when creating new documents. 


I used this feature all the time when I was using TextMate and would create new LaTeX documents that already had all of the preamble crap already in there so I didn't have to type it every single time.

+4

Awesome, awesome work!

dutzi 13 ár síðan Uppfært 13 ár síðan 0
Definitely the BEST editor I've seen for mac. Kudos!
+4

Asymmetric three-pane layouts

Idan Gazit 13 ár síðan updated by Rob Miller 12 ár síðan 4

I often find myself desiring a pane layout that looks like this:


Image 40


Usually it is because I am hacking on one file, and need two others as reference beside it.


The existing side-by-side three-pane layout is too narrow for me to get 80 columns in each editor.


I'd love to see a layout like this in sublime.

+4

Running python through SublimeREPL with command line arguments

Stephen Andrews 12 ár síðan Uppfært 11 ár síðan 3

I am running python through SublimeREPL, but my code takes command line arguments. In my old editor, DrPython, you could set variable in the editor, eg. $args, to be a string which was passed to the python code.

I am using SublimeREPL because i make a lot of use of pdb and like the interactive debugging features.

This is how i currently run my python code via a shortcut

{ "keys": ["f8"], "command": "repl_open",

  "caption": "Python",

  "mnemonic": "p",

  "args": {

  "type": "subprocess",

  "encoding": "utf8",

  "cmd": ["python", "-i", "-u", "$file"],

  "cwd": "$file_path",

  "syntax": "Packages/Python/Python.tmLanguage",

  "external_id": "python"

  } }

what i would like is to change one line to

  "cmd": ["python", "-i", "-u", "$file", "$args"],

where $ for example

You would be able to set the $args variable to be a property of the view which can be set by a command and then revert to a null string when the view is closed.

I am not very familiar with customising Subline so my questions are

1) Is there a package that already does this or something similar?

2) If not, would it be possible to implement

3) If so, any suggestion about how to do it

4) Am i calling python the wrong way? Is there a different way to run python scripts which would make my life easier?

and finally..

5) since no one else seems to have this problem, is it poor form to use command line arguments for python? I like the arguments because i can use them to build nice bash scripts to run a series of simulations with different names and properties. Is there a better way to do this?

 
+4

Make a static link to latest stable, alpha, and dev builds. Such as http://www.sublimetext.com/sublime-v2-dev.tar.bz2 will always be the latest dev build. 'sublime-v2-stable.tar.bz2 will always be latest stable, etc...

Shawn McElroy 14 ár síðan 0
Make a static link to latest stable, alpha, and dev builds. Such as http://www.sublimetext.com/sublime-v2-dev.tar.bz2 will always be the latest dev build. 'sublime-v2-stable.tar.bz2 will always be latest stable, etc...

This way people on the net, or people making scripts can point to a stable, alpha or dev version to always get the latest without having to know the exact build number.
+4

Customize how unsaved files are named in tabs / sidebar

Misty Stanley-Jones 13 ár síðan Uppfært 13 ár síðan 0
If you create a new plain-text file, its first line becomes the displayed name for its tab or sidebar item. This is extremely useful for having multiple "scratch" type items. This feature stops working for XML and other file types where the first line doesn't contain something useful.

I'd like the ability to have a per-mode regex to find what the "name" of an unsaved file should be. Some ideas for different modes:

* Docbook or DITA XML: Look for the first <title> element
* PHP, C, shell scripts: Look for the first appearance of "Name:" inside a comment

To understand why this might be useful, let me tell you a little about my workflow. I write in Docbook all day long. The finished Docbook files are saved in an online CCMS, and I use OSX, which saves the state of open files (at least in Sublime Text). So I don't save my work to local files, because as soon as I update the CCMS my local copy is in danger of becoming out of sync anyway.

So each file I am working on is in a (probably unsaved) tab in Sublime Text. I currently have one window with 13 different (related) files in this state. Saving each of them involves coming up with a good displayable name for it, so that the tabs remain useful to me. My current workaround is to keep my file in "Plain Text" mode until the last minute, with the first line of the file being what I'd like to see in the tab. It's a bit silly, because I'm losing out on some of the benefits of using the mode.

I spoke with a colleague who is a Java developer, and he'd like this feature too.

+4

detach file manager and minimap from main window

baka veell 13 ár síðan Uppfært 13 ár síðan 1

I want to place it on secondary monitor.

+4

Better autocomplete support for object methods

Android Developer 13 ár síðan Uppfært 13 ár síðan 2
This may be a little more towards full IDE, but it would be nice to have better autocomplete support for objects and their methods. For instance (in Java), if you have a String object named test, it would be nice to give the methods available for the object when you type the period after the object name. For example typing "test." would give autocomplete suggestions such as isEmpty() and length() and would reduce autocomplete suggestions which are not part of the object's class. 
+4

Alphabetize Go to Symbol

Shaun Harrison 13 ár síðan updated by doublethink 13 ár síðan 1
TextMate offers an option to alphabetize the symbols in the symbol list (still structured, of course).  This is useful for larger classes.
+4

def on_new(self, view) has no window

Aaron Scully 12 ár síðan Uppfært 12 ár síðan 6

I'm trying to create a plug-in which intercepts the new file command and opens the new tab to the right of all existing tabs. My code looks something like:


import sublime, sublime_plugin

class EventDump(sublime_plugin.EventListener):

       def on_new(self, view):  
          print ("new file") 
          print (view.window().__class__)
          w = view.window()
          w.set_view_index(view, w.active_group(), len(w.views_in_group  (w.active_group())) - 1)


The problem appears to be that the view doesn't have a window associated with it at the point at which the event fires, making it (as far as I can tell) impossible to move the new file's tab to the rightmost of the rest. Perhaps this event should fire after the view has a window or another event created, like on_after_new_complete.


+4

When at the beginning of a line, ctrl-right should take the cursor to the first non-whitespace character

Ryan Park 14 ár síðan 0
When the cursor is at the beginning of a line (with some whitespace before the first character), pressing ctrl-right will take the cursor to the end of the first word instead of the first non-whitespace character.

It would be nice if it brought it to the first non-whitespace character like pressing home does.
+4

Closing a project closes all non related open files

Gerald Schneider 13 ár síðan Uppfært 13 ár síðan 0
When I have a project open and work on non related files all open files are closed, even when they are not related to the project. These files should kept open.
+4

Use Apple's FSEvents (and other platform equivalents) to watch for external modifications.

James Farwell 13 ár síðan Uppfært 13 ár síðan 0
Apple's FSEvents infrastructure will allow Sublime Text to be proactively notified when a file it has open gets modified on disk out from under it, which means that the view can be refreshed as soon as that happens instead of when the view gets focus again. I'm not sure if there are Windows/Linux equivalents to this, but I wouldn't be surprised if there were.
+4

find in currently focused file

otakustay 14 ár síðan updated by Stanislav Krasnoyarov 12 ár síðan 7
I don't see how to file all occurence in currently focused file, sublime seems to only provide find in <open buffer> and <open files>, but not a single focused file, is it a miss of functionality, or is there any keyword to specify search scope to current focused file?
+4

"Replace" button has no default key binding

Chris Murphy 13 ár síðan Uppfært 13 ár síðan 0
There appears to be no default key binding (i.e. shortcut) for the Replace button in Find/Replace, so I'm forced to use the mouse to replace text in this manner.