Sort Currently Open Files Alphabetically?

909 views
Skip to first unread message

reedbertolette

unread,
Sep 30, 2015, 2:45:16 PM9/30/15
to TextWrangler Talk
Hi There,

First of all thanks for a great product! 

I just installed TextWrangler 5.0 and now when opening the app, the files shown in the left column are no longer sorted alphabetically. (Looks like maybe they are sorted by mod date descending?)

Couldn't find a preference for it. No luck searching the 5.0 manual. Googling I found & tried:

sudo defaults write com.barebones.bbedit SurfNextPreviousInDrawerOrder -bool YES


also tried NO, neither seemed to make a difference. 


I can live with this, but I'm used to naming files so that I can find them. 


Thanks,


~Reed

Steve

unread,
Sep 30, 2015, 2:47:28 PM9/30/15
to TextWrangler Talk

  sudo defaults write com.barebones.bbedit


Did you change 'bbedit' or 'textwrangler'  ?


-Steve

Reed Bertolette

unread,
Sep 30, 2015, 3:17:33 PM9/30/15
to textwr...@googlegroups.com
I just noticed that too. I tried both of these to no avail as well

sudo defaults write com.barebones.textwrangler SurfNextPreviousInDrawerOrder -bool NO
sudo defaults write com.barebones.textwrangler SurfNextPreviousInDrawerOrder -bool YES

Also found the expert preferences in Help->Textwrangler Help, which sounds like it won’t do it:

  • When using the "Previous Document" and "Next Document" commands on the View menu, or the navigation arrows in the navigation bar, the order in which TextWrangler navigates documents is determined by the order in which they were opened. If you prefer, these commands can be made to navigate the documents in the order shown in the file list.

    defaults write com.barebones.textwrangler SurfNextPreviousInDisplayOrder -bool YES



--
This is the TextWrangler Talk public discussion group.
If you have a feature request or would like to report a problem,
please email "sup...@barebones.com" instead of posting here.
---
You received this message because you are subscribed to the Google Groups "TextWrangler Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to textwrangler...@googlegroups.com.

Rich Siegel

unread,
Sep 30, 2015, 3:17:57 PM9/30/15
to textwr...@googlegroups.com
On Wednesday, September 30, 2015, reedbertolette
<reedber...@gmail.com> wrote:

>I just installed TextWrangler 5.0 and now when opening the app,
>the files shown in the left column are no longer sorted
>alphabetically. (Looks like maybe they are sorted by mod date descending?)

If you quit and relaunch they should be in the appropriate
order; it's a one-time state restoration glitch.

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they
sedate me.

Steve

unread,
Sep 30, 2015, 3:30:07 PM9/30/15
to TextWrangler Talk
Looking through my own TextWrangler defaults preferences, I have two entries containing 'surf':

    "MultiDocumentWindows:SurfNextPreviousInDrawerOrder" = 1;
    SurfNextPreviousInDisplayOrder = 1;

I see that you were looking for

    SurfNextPreviousInDrawerOrder

where mine is using

    SurfNextPreviousInDisplayOrder;

and the Expert Prefs you listed were listed as

    defaults write com.barebones.textwrangler SurfNextPreviousInDisplayOrder -bool YES

Could this be what's going on?

-Steve

Reed Bertolette

unread,
Sep 30, 2015, 4:24:58 PM9/30/15
to textwr...@googlegroups.com
Hey thanks for your help.

MacBook-Pro:~ Reed$ defaults write com.barebones.textwrangler SurfNextPreviousInDrawerOrder -bool YES
MacBook-Pro:~ Reed$ defaults write com.barebones.textwrangler SurfNextPreviousInDisplayOrder -bool NO

The result was the same: (including a message I recently sent to it’s in this thread) 
From: Reed Bertolette <reedBer...@gmail.com>
Subject: Re: Sort Currently Open Files Alphabetically?
Date: September 30, 2015 at 9:29:59 AM HST

...
Perhaps I’m not being clear enough, but I think before the 5.0 upgrade, when I saved an untitled file w/ a name, until I quit the app, the file would remain in the same position that the untitled file was in. When I quit the app and opened it again, it would be located alphabetically in the list.

That’s what I’m expecting now, but I could just get in the habit of manually relocating the file when I rename it.


Reed Bertolette

unread,
Sep 30, 2015, 4:25:00 PM9/30/15
to textwr...@googlegroups.com
Hmmm, tried that too.

Perhaps I’m not being clear enough, but I think before the 5.0 upgrade, when I saved an untitled file w/ a name, until I quit the app, the file would remain in the same position that the untitled file was in. When I quit the app and opened it again, it would be located alphabetically in the list.

That’s what I’m expecting now, but I could just get in the habit of manually relocating the file when I rename it.

Clothears

unread,
Sep 30, 2015, 5:55:10 PM9/30/15
to TextWrangler Talk
On Wednesday, September 30, 2015 at 8:17:57 PM UTC+1, Rich Siegel wrote:
 
If you quit and relaunch they should be in the appropriate
order; it's a one-time state restoration glitch.

Umm, what's "appropriate" in this context, Rich? I think I've now got to reorder my 140 files by hand since unfortunately I started doing that before noticing your comment. I did restart TW but I think it was too late.

Patrick Woolsey

unread,
Sep 30, 2015, 6:10:45 PM9/30/15
to textwr...@googlegroups.com
On 9/30/15 at 5:55 PM, t...@clothears.org.uk (Clothears) wrote:

>On Wednesday, September 30, 2015 at 8:17:57 PM UTC+1, Rich Siegel wrote:
>
>>If you quit and relaunch they should be in the appropriate
>>order; it's a one-time state restoration glitch.
>
>Umm, what's "appropriate" in this context, Rich?

Putting all open documents into alphabetical order (which
remains the default behavior).


>I think I've now got to reorder my 140 files by hand since
>unfortunately I started doing that before noticing your
>comment. I did restart TW but I think it was too late.

If your open documents are not currently in alphabetical order
but you would like them to be :-), you can just do this:

Create a new editing window (File -> New -> Editing Window)
and then drag all open documents into that window's file list,
where TextWrangler will sort them in alpha order.


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>

Patrick Woolsey

unread,
Sep 30, 2015, 6:12:07 PM9/30/15
to textwr...@googlegroups.com
In hopes of saving everyone some time :-) this is _not_ a prefs
issue; please see Rich's and my own previous posts.

Clothears

unread,
Oct 1, 2015, 5:23:42 AM10/1/15
to TextWrangler Talk, pwoo...@barebones.com
On Wednesday, September 30, 2015 at 11:10:45 PM UTC+1, Patrick Woolsey wrote:
If your open documents are not currently in alphabetical order
but you would like them to be :-), you can just do this:

    Create a new editing window (File -> New -> Editing Window)
    and then drag all open documents into that window's file list,
    where TextWrangler will sort them in alpha order.

Yes yes! It worked - thanks! 

Ben Gerber

unread,
Oct 12, 2015, 9:49:23 AM10/12/15
to TextWrangler Talk, pwoo...@barebones.com
Patrick - thanks very much for posting this - it is truly appreciated! This worked for me as well after upgrading to 5.0.

Ben

moe echosign

unread,
Feb 24, 2016, 2:07:03 PM2/24/16
to TextWrangler Talk, pwoo...@barebones.com
I don't see any File > New > Editing Window.  There is a File > New > Text Window, but that's just for a single file.  I'm on 5.0.2 version.

ccstone

unread,
Feb 24, 2016, 4:12:40 PM2/24/16
to TextWrangler Talk, pwoo...@barebones.com

On Wednesday, February 24, 2016 at 1:07:03 PM UTC-6, moe echosign wrote:
I don't see any File > New > Editing Window.  There is a File > New > Text Window

Type Cmd-Shift-N or Cmd-N and then Cmd-0 (zero).

--
Best Regards,
Chris
 

moe echosign

unread,
Feb 24, 2016, 4:41:04 PM2/24/16
to TextWrangler Talk, pwoo...@barebones.com
That worked - thank you.

(Awful round-about way of sorting a list -- only glitch in this otherwise Awesome (free) tool.)

Patrick Woolsey

unread,
Feb 24, 2016, 6:27:42 PM2/24/16
to textwr...@googlegroups.com
Sorry, that was a typo on my part but File -> New -> Text Window
is the correct command, then (if necessary) you can expand the
file list via View -> Show Files or its key shortcut of
Command-Zero as Chris Stone mentioned.

Turgut Genç

unread,
Jun 28, 2016, 9:58:50 AM6/28/16
to TextWrangler Talk, pwoo...@barebones.com
Patrick, Rich,

Firstly, thank you very much this great product.

I am interested in changing the default sorting behaviour of Currently Open Files from alphabetical order to the chronological order I've opened the files with TextWrangler (not the files' creation/modification time)

Basically, I want TextWrangler to list the files as in the order I open create them, the last file that is opened, should be at the bottom of the list.

Is this possible?

If not, can you please make it happen? This is a real show stopper for me, and I couldn't find a decent alternative to TextWrangler so far.

Many thanks in advance,

Turgut

Patrick Woolsey

unread,
Jun 30, 2016, 4:02:29 PM6/30/16
to textwr...@googlegroups.com
Hi Turgut,

Thanks very much for your kind words, and in answer to your question:

Though there is currently no way to change how TextWrangler
sorts items in the file list, we're always happy to entertain
feature requests :-) and the best way to get a request on record
is to send it to our support account:

sup...@barebones.com


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>




Reply all
Reply to author
Forward
0 new messages