+8

Feedback on Find / Replace

Jonathan Marshall fa 13 anys updated by Mikel Ward fa 13 anys 1

Some (probably minor) gripes about find and replace in ST2, and not in any particular order. I think this is the area where I feel the most frustration with ST2 on a daily basis.


For those of us lucky enough to have 27" monitors, having the find & replace text & options on the far left hand side and the buttons on the far right hand side results in a lot of mouse and eyeball travel to operate the dialog box. This is especially true if you are editing a buffer on the far left of a multi-column layout in full screen mode. I think it would be better if the dialog box was kept smaller & closer to the action - perhaps even just at the bottom of the current column only? (it's 60cm wide at the moment!) 


There's no default keyboard shortcut for the Replace button in Find/Replace (or at least none is shown in the tooltip).  


When you press Find in Find/Replace the found text is highlighted with a bright yellow background. If you replace the text, the cursor moves to the next find but the background is not highlighted (but it comes back on the following find)  


Similarly if you find next when the find dialog box is open you get a yellow background. But if you dismiss the dialog box and find next, no yellow background. I guess I have a lot of problems locating the cursor in ST2 so I normally use 'line highlight' to help. The removal of the line highlight during find plus jumping the cursor and then not sufficiently highlighting the new cursor location makes it hard.


An undo last replace option would be nice (without dismissing the find/replace dialog box or switching focus back to the file).


If I have text like this in a file

    (foo.helloworld)

    (foo.helloworld)


and I find '.helloworld' with whole word matching on, then ST2 finds the text. However if I try to replace with '.monkey' when I click replace nothing happens. If I only have one (foo.helloworld) in the file it works fine.


Lastly some changes that I think have already been suggested in the forum: 1) Find and Replace across open files and/or projects. 2) the option to have find in files results to look like the output from ack, with keyboard shortcuts to find prev / next.


+8

configure number of lines to scroll with mousewheel

abc fa 13 anys updated by André Caetano fa 11 anys 2

I'd appreciate a config option to increase the number of lines that are scrolled when scrolling with the mousewheel.


I suspect that this is an OS related value, however Ubuntu hasn't implemented an easy way to adjust the number of lines the scroll wheel scrolls and it's currently stuck at 3 lines. This causes scrolling with the mousewheel in large files to be rather slow and often futile.


(a dynamic scroll distance based on speed of the mouse scroll would be even cooler, maybe OS X already has this?)


(extra brainstorm idea: have Supreme Commander-like zooming for navigating code instead of scrolling. I'm not sure how well this would work but it potentially could be very useful and slick, see: http://www.toomuchzerging.com/2011/02/mechanic-monday-supreme-commanders-strategic-zoom/)

+8

Improve startup behaviour and commandline options so that subl can replace system text editor.

Emanuele D'Osualdo fa 12 anys actualitzat fa 12 anys 2
It would be useful to have a way to ask Subl to just display the file passed in the commandline and ignore for the moment the setting for reopening files etc. A switch to ask it to act just as gedit would do.
Currently with a slightly old version of GTK in Linux Sublime Text wont detect it is already running when launched. This has many side effects as duplicating all the windows if launched twice. Such a switch could help in that situation too.
+8

A method to make tab label font bigger without clipped-off.

陈正煦 fa 11 anys 0

When I tried to make the font in tab label bigger,the lower part of the characters were cut off,and it seems that there's no good solution now,if the next sublime text can fix that, it would be more perfect.

+8

project management

ulhume fa 13 anys updated by Stefan Jansen fa 12 anys 2
Very few improvements will greatly improve project management :
  1. Adding a simple "title" (or name, or caption, or whatever field in project structure that would be used in window title, "Switch project in window" and "Recent Projects". If user fill this field, no more long path before project name and odd "sublime-project" extension. Simple and clean.
  2. Adding a "title pattern" field to structure project in order to allow those who want to have there project name before current file path to do so.
+8
Respost

Command for toggling find panel settings

Falcon NL fa 14 anys updated by Jon Skinner fa 13 anys 0
In ST1, Alt+r toggles regex on and off in the find panel. I'm trying to recreate this in ST2, so my question is: what is the new equivalent of toggleApp find.regex?

Forum topic: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=1544
Answer
Jon Skinner fa 13 anys
Added in 2065
+8
Completat

Open file using file manager in existing Sublime Text 2 window

Josiahmazing fa 14 anys updated by Jon Skinner fa 12 anys 11
I've setup Sublime Text 2 to be my default text editor. As a result, each time I open a text file in my file manager (Nautilus on Ubuntu) a new Sublime Text 2 process is launched.

While sometimes this might be desirable, often it isn't. For example: If I have many files open in my current ST2 session / project and then open a file related to this project in Nautilus. In this situation a new ST2 process is created, which seems to clone the existing ST2 process's session, and then create a new tab for the opened file. Instead, what I'd prefer in these cases, is the ability to have the file I opened in the file manager appear as a new tab in an existing (if any) Sublime Text 2 process.

Is there any way to do this currently? Perhaps a command line argument, or some other option to configure?

If not, please add this feature. Thanks!
+8
Completat

instant file search (by filename) in sidebar

johndoe fa 13 anys updated by Jon Skinner fa 12 anys 2
Instant file search by typing the filename in the sidebar?
See image below:

Image 60
Answer
Jon Skinner fa 13 anys
Goto Anything exists for this
+8

Sublime Text 3: Vintage modes stuck when using multiple windows and saving files outside sublime text

Frederik Vestre fa 12 anys updated by Sundeep Malladi fa 11 anys 3

Vintage modes stuck when using multiple windows and saving files outside sublime text. Sometimes pressing esc multiple times does not change from insert to command mode, and sometimes editing in insert mode doesn't work, editing in command mode (removing words etc) still works

+8

Error "Unable to save" when part of the path does not exist

David Warburton fa 13 anys actualitzat fa 13 anys 0
If you start sublime_text.exe from the command line with an argument to a file in a folder that doesn't exist, Sublime Text 2 will open and present you a blank file, but on save gives the error message "Unable to save <full path to file>".

Example: sublime_text.exe c:\afolder\afile.txt

Where c:\afolder\ does not exist.

I think instead of the error message, Sublime Text 2 should create the folders that are required.
+8

Window split feature

Elias Zamaria fa 12 anys 0
I would like a window split feature, like in TextWrangler, that allows me to see 2 different parts of the same file at different times, in 2 independently scrolling sections, by simply by dragging the splitter thing with my mouse.


I am aware that I can do something kind of like this by picking a 2-pane layout and opening the same file in both panes but that is kind of tedious.

+8

show / hide menubar

Rajkumar Jegannathan fa 13 anys actualitzat fa 13 anys 0
Is there a functionality to show / hide menubar in linux / ubuntu ?
If not can you please add it .
+8

api to access a project's .sublime-project and .sublime-workspace files

popavo fa 13 anys updated by Jeremy White fa 12 anys 3
There's currently no way for a plugin to easily access a project's .sublime-project and .sublime-workspace files.

I'd like to see something like project_file() and project_workspace() added to the sublime.Window class
+8

Current group in fullscreen

Loïc fa 12 anys 0

Add a new option "Put the current group/column/row in fullscreen".


I replaced my shell console by the powerfull Terminator console (http://www.tenshu.net/p/terminator.html) which has awesome features like the ability to split a pane horizontally and vertically and the ability to put the focused pane in fullscreen with a simple shortkey. This is quite useful in console, especially when the output of a command is really wide.


I think this ability to put a "pane" to fullscreen could be a useful feature in Sublime Text too : I develop with a 2 columns layout but I often need to focus on a single column. I can switch back to a single column layout but if I switch back to a 2 columns layout, I will have to move all files in the second group.

Actually, when I want to focus on a column, I reduce the width of the second column to the minimum but it would be easier with a simple shrotchut.

+8

Long strings auto wrap (no lines, strings)

-2724 fa 13 anys 0
Say you have this code in Python (but the exemple works in other languages):

class Doh(object):
    def foo():
        if bar:
            try:
                stuff()
            except CrazyError:
                log("Oh my God we are all going to die. Don't panic. I said don't panic! You are panicking ! Ok we're all dead, and it's because of you. Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh")



Now, you want to make you code fit into the 79 char limit:

class Doh(object):
    def foo():
        if bar:
            try:
                stuff()
            except CrazyError:
                log("""Oh my God we are all going to die. Don't panic.
                        I said don't panic! You are panicking !
                        Ok we're all dead, and it's because of you.
                        Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh""")


Wait, but now you got your log entries spreading on 4 lines in your log file and you can't parse it anymore.
So you are back to the old concatenation:

class Doh(object):
    def foo():
        if bar:
            try:
                stuff()
            except CrazyError:
                log("Oh my God we are all going to die. Don't panic."\
                      "I said don't panic! You are panicking !"\
                      "Ok we're all dead, and it's because of you."\
                       Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh")


Woops, now you don't have white spaces at 4 places in your string.class Doh(object):
    def foo():
        if bar:
            try:
                stuff()
            except CrazyError:
                log("Oh my God we are all going to die. Don't panic. "\
                      "I said don't panic! You are panicking ! "\
                      "Ok we're all dead, and it's because of you. "\
                       Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ")


Well, my boss doesn't like the message, he wants it that way:


class Doh(object):
    def foo():
        if bar:
            try:
                stuff()
            except CrazyError:
                log("We are going to die. Don't panic. "\
                      "I said don't panic! You are panicking ! I know you do! I can see it!"\
                      "Ok we're all dead. "\
                       Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ")


Ok, now this is ugly, but I'm too lazy to make it pretty again. I would have to redo everything.

I don't know about you, but I do this VERY often.

I would be very nice to just be able to select a string and ask the computer to wrap it for you. Or wrap it again to avoid update this by hand.

I know, this is not easy to do this every language got it's own way plus you need to take care of a lot checks prior to making the wrap
but I'm pretty sure everybody feels the pain for doing this f***ing strings.

 Posts: 7Joined: Mon May 09, 2011 8:08 pm

+8

access.log apache syntax highlighting

Felice Tartaro fa 13 anys actualitzat fa 13 anys 0
wheni open an access.log file i want date ip and so on highlited
+8

Use VIM Syntax Files and Checkers

Christopher George fa 12 anys 0
ST2 is great, but sometimes the syntax files are lacking or incomplete. It would be awesome to be able to use the extensive libraries from vim and/or emacs for syntax highlighting and checking.
+8
Completat

Support 'clone' Sublime 1.4 ability

Suresh Malakar fa 14 anys updated by Jon Skinner fa 14 anys 3
Sublime 1.4 has the ability to have multiple views into the same file, would really like to see this in Sublime2!
+8

Syntax Highlighting Window

Ben Bader fa 14 anys 0
A quick menu for syntax highlighting along the lines of that in the lower-right corner of version 1 would be nice - I miss that menu!

Thanks for a great editor, btw!
+8

CSS classes and identifiers auto-completion

Tom Tomaash fa 13 anys 0
Let's say I type:

<div class="m">

After I type m all CSS classes starting with "m" included in the project (or folder) will pop up.

The same for CSS identifiers:

<div id="i">

After I type i, all CSS identifiers starting with "i" pops up.