[TxMt] Re: How to use "Find in Project" functionality in a command (help appreciated)
Bert Fitié
bert at analytag.com
Tue Nov 7 15:09:05 UTC 2006
Interesting idea, Jacob, I will look into it.
I see a disadvantage with this solution. It will load the relevant
file, but unless the article I'm linking to is the first (or only)
one in the file and is at the top, I have to find it further down. My
method (still manually, though) brings me direct to the
"tagid=<tagid>" line which is the start of the article. Attaching
line info to the URL is no option since it changes too often and is
not maintainable.
-- Bert
On Nov 7, 2006, at 3:51 PM, Jacob Rus wrote:
> Bert Fitié wrote:
>> A relative link as a <URL> construct doesn't work in markdown, but
>> in the [desc](URL) form it does; thanks for the tip.
>> It still leaves the point that I have to nominate a file in the
>> relative link; with search-based linking (which I do manually
>> right now with the "Find in Project" dialog since I don't have my
>> command yet) I don't need a file name as long as the file is in my
>> project.
>
> Hmm, one way you could maybe get around this is to use reference
> style links, like [this][linkname], and then have a global list of
> references, that you stick at the bottom of each file, and can
> change across all your files. You can write a script to go through
> and update all the references at the bottom of the files, or you
> can use something like the tminclude stuff instead.
>
> -Jacob
>
> [linkname]: ../some_file_or_other.mdown
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list