Hi,
I am pretty close to set up my development environment exactly the way I want it. The TXP Bundle runs much nicer now, with no warnings in Console output. In the meanwhile, while using it and testing along, I came across a problem that has puzzled my for hours.
I hope, that someone might be able to help.
I have a project Folder that uses a local document root Folder in my Site folder for Testing, no problems with that. However in order to use the completion command, for completions, that I want for a special Tag <txp:article />, I have a Preference Item, that contains the following command:
{ completionCommand = 'find "$TM_DIRECTORY" \ -name "$TM_CURRENT_WORD*article.txfml" -maxdepth 2 \ -exec basename "{}" ;|sort'; }
as described in Section 4.2 of the manual, in order to provide the filenames of a special folder, that contains the needed filenames that I need to provide as attribute values for the above mentioned tag.
My first problem here is, that I would need maxdepth 4 and even worser, maxdepth 4 and 5. I tried to alter the command, setting maxdepth to 4 and 5, since I need to maintain the directory structure of my site folders. This does not seem to work.
The second problem is, that I also have some other completions for Tag names and attribute names, which are sitting normally in arrays, in some other pref Items.
I set up another pref Item,
with :
{ disableDefaultCompletion = '1'; }
and scope :
text.html.txp entity.name.tag.single.article.txp
which is the same scope that I have for the above command, in order to suppress the default completions on article form attribute values, but the only thing that the escape key cycles through, are the near by found values in the open document.
What am I doing wrong here ? (Note also, that the file endings I have, have the form eg.: .article.txfml, comment.txfml, file.txfml, etc, which are needed, to fine grade those completions based on this article form completion command.
Any help appreciated.
regards, marios
One more Note to the previous post. As a workaround, then, when I drag The Templates Folder, that is contained in the Site project Folder on to the TextMate Icon, it works as expected. Any other more complex projects with a deeper directory structure, and it doesn't work.
regards, marios
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 7/8/2006, at 11:50, marios wrote:
One more Note to the previous post. As a workaround, then, when I drag The Templates Folder, that is contained in the Site project Folder on to the TextMate Icon, it works as expected. Any other more complex projects with a deeper directory structure, and it doesn't work.
Try remove the -maxdepth option entirely.
Allan Odgaard wrote:
On 7/8/2006, at 11:50, marios wrote:
One more Note to the previous post. As a workaround, then, when I drag The Templates Folder, that is contained in the Site project Folder on to the TextMate Icon, it works as expected. Any other more complex projects with a deeper directory structure, and it doesn't work.
Try remove the -maxdepth option entirely.
That works, thanks.(Sorry for late reply) Now I've got another problem. In my case, each Project Folder, contains the Folder (with the relevant files to be cycled through) as a sibling on the same level as the Folder with the files, where I actually perform the completion commands.
I then went the easy route again and replaced The TM_directory variable with $TM_PROJECT_DIRECTORY, which sort of works, but not in this case, since it chokes quite heavily on memory, besides the fact, that I already have the spinning wheel problem, due to the fact, that all projects are located on a network allocated shares, so when I press escape, nothing really seems to happen.
Wouldn't there be a way in between, like saying to TexMate: ../$TM_Parent_Directory ?
regards and all the best, marios
On 30/9/2006, at 23:38, marios wrote:
[...] Now I've got another problem. In my case, each Project Folder, contains the Folder (with the relevant files to be cycled through) as a sibling on the same level as the Folder with the files, where I actually perform the completion commands.
I then went the easy route again and replaced The TM_directory variable with $TM_PROJECT_DIRECTORY, which sort of works, but not in this case, since it chokes quite heavily on memory, besides the fact, that I already have the spinning wheel problem, due to the fact, that all projects are located on a network allocated shares, so when I press escape, nothing really seems to happen.
Wouldn't there be a way in between, like saying to TexMate: ../$TM_Parent_Directory ?
So you want the find command to search from the parent folder of the current file?
If so, use "$TM_DIRECTORY/.." as the start directory.
Allan Odgaard wrote:
On 30/9/2006, at 23:38, marios wrote:
[...] Now I've got another problem. In my case, each Project Folder, contains the Folder (with the relevant files to be cycled through) as a sibling on the same level as the Folder with the files, where I actually perform the completion commands.
I then went the easy route again and replaced The TM_directory variable with $TM_PROJECT_DIRECTORY, which sort of works, but not in this case, since it chokes quite heavily on memory, besides the fact, that I already have the spinning wheel problem, due to the fact, that all projects are located on a network allocated shares, so when I press escape, nothing really seems to happen.
Wouldn't there be a way in between, like saying to TexMate: ../$TM_Parent_Directory ?
So you want the find command to search from the parent folder of the current file?
If so, use "$TM_DIRECTORY/.." as the start directory.
Sorry, that was stupid from my side, however:what is happening now is, that combined with the Spinning Wheel effect, I get only insertion for one instance, after I hit escape again, it doesn't cycle anymore. As a workaround, i could set up a variable with the exact name of the Folder.
regards, marios