Am 14.02.2012 um 12:03 schrieb textmate-request(a)lists.macromates.com:
> Though many things have already been said about the respective pros and cons, so it might be better to start a wiki page and collect the information instead of repeating what has already been said (or simply claiming that the loss of projects is disconcerting).
If you point to a wiki page, I'd be happy to contribute.
Max
Search in project short answer: yes, it works.
Unless some other problem crops up, we now have a workable answer.
Search in project works for me if I make a project folder which contains links to the files in the project where the links are created in bash (via terminal -- iterm2 in my case). I used
ln -s full/path/to/sourcefile full/path/to/targetfile
Using full paths would allow running from anywhere, regardless of where the files involved actually are.
Using apache as an example, the bash command looks like this
ln -s /private/etc/apache2/extra/httpd-vhosts.conf ~/Documents/2-apache-b/httpd-vhosts.conf
I opened the directory 2-apache-b in TM2 and added it to favorites. A search for ServerName, for example, found all instances of ServerName across the set of files in 2-apache-b. That is, it looked like all occurrences. There are a lot of instances in the files I searched and I didn't verify "all". It looked reasonable, though.
If I had a hundred files to set up this way, I wouldn't want to do it. But if I'm adding a few files to a directory, or combining two directories into one for editing, or, as in this case, just combining four commonly used files, the utility of searching well outweighs the setup.
A script reading from a list of files plus the target directory would be reasonable. A bundle adding a few files together would also be useful.
--Lewy
From: Devon Weller <wellerco(a)gmail.com>
Subject: [TxMt] Re: making projects
Date: February 14, 2012 1:08:24 PM AKST
To: TextMate users <textmate(a)lists.macromates.com>
Reply-To: TextMate users <textmate(a)lists.macromates.com>
Did you see Allan's response and try following his advice?
http://lists.macromates.com/textmate/2012-February/034445.html
I have a set of four scattered files -- not too many to test with. I used aliases to build the set. I'll try it with ln -s and see if search works.
Thanks for the pointer. I read it, but it didn't penetrate. :-(
--Lewy
Hi,
I noticed that TM2 is looking for .p4config files, but I can't find any
Perforce commands in the bundles (or in Cmd-Y, which never seemed to
detect my git repositories, either). Is anything beyond looking for the
config files already in place and I'm too blind to find it, or do I just
need to wait?
Christopher
Dear all,
I am enjoying getting to know TM2.
I've been having trouble getting it to work with svn. When I try a
command that actually requires remote access, I get a dialog:
The 'svn' command produced an error
Permission denied (publickey,keyboard-interactive).
svn: To better debug SSH connection problems,
remove the -q option from 'ssh' in the [tunnels]
section of your Subversion configuration file.
svn: Network connection closed unexpectedly
This is an svn+ssh connection, with ssh = $SVN_SSH ssh -Y in
.subversion/config.
It works fine with TM1 (and from the command line). I've tried
explicitly setting TM_SVN and SVN_SSH within TM2, to no avail.
Any ideas?
Andrew
@Alan
> it might be better to start a wiki page and collect the information instead of repeating what has already been said (or simply claiming that the loss of projects is disconcerting).
Good idea. Let's get this all in one place.
> relying on the file system … vs. private system
I support Alan on this one. I just want a solution to "find in project" (whatever project is) and a relatively easy way to collect links into a folder. The latter is certainly amenable to a bundle solution, which I would happily do if I knew how. "Find in project" may be a problem with Lion. It's desirable (I used it), but not a show stopper. Let's look for a way to accomplish the find we need using the OS.
--Lewy
> When you do this, are you able to search across all files contained in those aliases? I am not. I just want to make sure I'm not missing something obvious.
No, I cannot. Search in document and search in open files both work as expected. Search in project does not. It returns an empty result and doesn't even find hits in a currently open document.
Let me add, though, that I am having a LOT of trouble with Lion searching in general. Finder searches seem to miss a lot of stuff. So does Spotlight. I'm not convinced this isn't a Lion issue, but I'm not clever enough to track it down. :-\
--Lewy
Because I never found it in 1.x either. Tapping ALT just never occurred to me. HOLDING ALT or some other control key often did things, but tapping was outside my limited box of tricks.
--Lewy
On Feb 14, 2012, at 2:03 AM, textmate-request(a)lists.macromates.com wrote:
>> On a stylistic note, I really would like "Change to Column Selection" to be put back into the Edit menu. It's not obvious (at least, not to me...) that tapping ALT is the way to do it, and it's not the kind of thing you can figure out by experimentation. I looked all over for how to make a column selection in TM2 and finally found it in a blog post.
>
> While I won’t dispute the value of a menu item, why wouldn’t you assume that the way to do it in 1.x still worked (tapping the option key)? I assume your question about rebinding the key reveals that perhaps you never got into that in 1.x, hence the reason.