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

+7

Ignore whitespace in SEARCH

Jakub Novák 11 years ago 0
I miss a great functionality from Adobe Dreamveawer:
In search, there is option "Ignore whitespace" and if it's checked, then the search function ignores all spaces, like tabulators, new line breaks and classic spaces

It's super usefull in CSS search for example, because for now I have to rewrite spaces with some regex expression
+7

Implement text drag&drop on Linux

nniico 11 years ago updated by Hiccup 9 years ago 1

Dragging and dropping text works on Windows. When will it be implemented on Linux?

+7

highlight non-breaking space

Salz` 13 years ago updated by Floran Brutel 11 years ago 4
Would love to see an option to highlight all non-breaking spaces. It's to easy to "missplace" them behind []{}| on a i.e Germany Keyboard (where option/alt-key is needed for []{}|). 
+7

Add ability to go back and forward in cursor location history

Nicolas Ch. 13 years ago updated 13 years ago 0
Very often, I am navigating code, and while command-T allows me to simulate a one step back/forward, I'd like to do it accross the same file or muliple files.
+7

Include Python's select module on Windows

Geoff Greer 12 years ago 0

On Windows, the version of Python bundled with Sublime Text 2 lacks the select module. This makes it very difficult to keep persistent TCP connections open without blocking a thread.


I'm writing a plugin that uses a select() loop. I knew Python's select() could only be used on sockets on Windows. That was fine for my needs. Unfortunately, I didn't know the entire module was removed in Sublime Text 2's Python. I discovered this when a user reported a bug and gave me a traceback:


Reloading plugin C:\Users\<USERNAME>\AppData\Roaming\Sublime Text 2\Packages\Floobits\floobits.py
    Traceback (most recent call last):
      File ".\sublime_plugin.py", line 62, in reload_plugin
      File ".\floobits.py", line 15, in <module>
        from floo import api
      File ".\floo\__init__.py", line 2, in <module>
        from agent_connection import AgentConnection
      File ".\floo\agent_connection.py", line 6, in <module>
        import select
    ImportError: No module named select


Please fix this. It's hard enough to write plugins that work on OS X, Linux, and Windows without having to worry about missing modules.


I also ran into the ssl module missing on Linux, but that bug has already been reported.

+6

command_history does not help determine last command

colinta 13 years ago updated by Carlos Rodriguez 13 years ago 1
The plugin I'm trying to fix is MoveText.  When you drag text up or down, it stores the initial column location, so that if you move to a row that doesn't have enough columns, it can remember the original column and use that if you move up to a  row that does have enough columns in it.  The important thing here is that I need to find out what the previous command was.

The mechanism for this is View.command_history, but it is not giving me the command I want.  This is a recent bug.  The way undo history works has changed.  It now groups more commands into one history entry (and I for one wish it didn't!).  And there is no way to control this.  It would be great to say "this is a change that should not be grouped with other changes".

The extra special frustration is that the console does return the most recent command, even though in the plugin it reports something different.

One easy way to fix this, if people disagree that undo history should be more granular, is to add a command to View that tells you the last command that was run, but not based on undo history.
+6

Mac OS X doesn't trigger resize events when Sublime Text 2 is in fullscreen, and I unplug/plug-in my secondary monitor

Brad Gessler 13 years ago updated 13 years ago 1

Scenario: I'm using Sublime Text 2 on my big ass 30" Cinema Display in fullscreen. I get tired of sitting in my office so I unplug the monitor from my laptop and go into the living room. 


Problem: Sublime Text cuts off my editing window because it still thinks its plugged into a 30" screen. I exit fullscreen, the go back into it.


Fix: We've dealt with similar issues in one of our apps and this little API hook came to the rescue: http://www.cocoabuilder.com/archive/cocoa/1951-notification-of-resolution-arrangement-of-monitor-change.html


Could you wire up this hook so that it triggers a fullscreen resize when I unplug my monitor?

+6

Bug in osx 'look up in dictionary" behaviour

Matthew Raso-Barnett 13 years ago updated 13 years ago 1
Usually in OSX applications you can look up words in text by hovering the mosue cursor over the word and pressing 'cmd+crtl+D' which will highlight the word and show a drop down dictionary window with the definition of that word. Alternatively you can right click the word and there is often a menu item to "Look up...".

In build 2112 (and maybe before?) the keyboard shortcut behaviour triggers the dictionary lookup still, although it actually highlights and looks up the word after the one the cursor is hovering over. The contextual menu item doesn't appear so perhaps this feature isn't supposed to be supported.

Here is a picture, where my mouse cursor is actually over the word 'this' (although you cannot see it).Image 24  

Additionally the highlighting of the word is misaligned with the underlying text:
Image 25


 
+6

Automatically show Source & Header side by side -option.

walter lynsdale 12 years ago updated 12 years ago 1
When this option is enabled, the editor would *always* open and/or show the associated counterpart (header for source)  in an adjacent column.
If this isn't possible (or deemed to unusual) a hotkey to do the same inspired by x-codes' "show counterpart" (CMD-Enter) would do a similar job.
The automatic option would reduce the number of hotkey to remember.
+6

API: write protected (read-only) regions

Daniel Mescheder 12 years ago 0
For plugin development it would be handy to have something like write protected regions.
i.e. in addition to view.set_read_only(value) provide something like view.set_region_read_only(region).
Possible use cases:
  • I think it would be a nice feature for SublimeREPL to protect everything but the current input.
  • Currently it is all to easy to accidentally delete folded regions - with read-only-regions it would be possible to (optionally) protect folds.
Probably I could work around this missing feature using on_selection_modified to find out where the cursor is and set_read_only to protect the buffer accordingly.
However, that seems terribly inefficient to me as I would like to avoid the on_selection_modified roundtrip.