Hello
I'm a newbie with Ruby but it seems that there is a problem with
"fileExt".
I try this (I add fileExt=[] )
#!/usr/bin/env ruby
#
#####################
# Helper function
#####################
def recursiveFileSearch(initialList)
extraPathList = []
fileExt=[]
and now I can use alt+esc in all the cases.
Is it a good solution?
Alain
I've been struggling against TextMate's clipboard manager for some
time. I use PTHPasteboard, which works against all applications, and
serves the purpose of having multiple copy buffers.
It appears to fight against TextMate's clipboard manager, however.
When I copy things using TextMate, sometimes (randomly) it will place
the copied item straight into the second item in PTHPasteboards, so I
always have to guess where my copied item is. It's very, very annoying.
Is there any way to disable TextMate's clipboard manager? I would
prefer to use PTHPasteboard for clipboard management instead as it
works in any application.
Thanks!
Tim
Hi,
I'm just rewriting the GetBundles bundle to support the new syntax of
DIALOG2. In principal it works fine if I take the eventInfo Dict. But
I came up with a "problem".
I have a NIB containing a NSSegmentedControl for filtering the repos
Bundles, Review, GitHub, All.
I bound it via Segment Selection > Selected Label to
Paramters.selcetion.bundleSelection and connected the entire
NSSegmentedControl to File's Owner 'performButtonClick'. Each Segment
has its own tag number.
With DIALOG1 I get e.g.:
<dict>
<key>bundleSelection</key>
<string>Review</string>
<key>cancelBtn</key>
<string>cancelButtonIsPressed</string>
<key>dataarray</key>
<array>
<dict>
....
then I can check whether there's a returnArgument, if not is there a
key 'bundleSelection'...
BUT with DIALOG2 the eventInfo Dict gives me:
<key>eventInfo</key>
<dict>
<key>tag</key>
<integer>0</integer>
<key>type</key>
<string>buttonClick</string>
</dict>
<key>model</key>
<dict>
<key>bundleSelection</key>
<string>Review</string>
<key>cancelBtn</key>
<string>cancelButtonIsPressed</string>
<key>dataarray</key>
<array>
<dict>
This would me that I have to deal with both the eventInfo Dict AND the
model Dict in order to find which button was pressed.
If I have a 'normal' button bound to performButtonClick DIALOG2
response is:
<key>eventInfo</key>
<dict>
<key>tag</key>
<integer>4</integer>
<key>title</key>
<string>Rescan Bundle List</string>
<key>type</key>
<string>buttonClick</string>
</dict>
Is there a way to put into the eventInfo Dict the title of the chosen
Segment of a Segment Control à la the 'normal' button event?
My very first idea was to include into TMDNibController.mm
- (IBAction)performButtonClick:(id)sender
...
if([sender respondsToSelector:@selector(selectedSegment)] & [sender
respondsToSelector:@selector(cell)])
[res setObject:[NSNumber numberWithInt:[[sender cell] tagForSegment:
[sender selectedSegment]]] forKey:@"selected_tag"];
Then you can deal with unique tag numbers and you only need the
eventInfo Dict.
Many thanks in advance
--Hans
I've recently upgraded to a shinny new iMac from my 3 year old powerbook.
This has required the re-installation and setup of all my software. I.e.
Latex and TextMate, which previously worked seamlessly.
Specifically, i downloaded and installed MacTeX. Latex (pdflatex) works
fine from the command line. However "Typeset & View" in TextMate returns
the following:
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
I'm fully up-to-date (cutting edge) and i have confirmed that all the
appropriate paths exist (i.e. to /usr/texbin in /etc/profiles). "pdflatex"
is selected in the TextMate latex preferences.
An extensive search of the web provides a lot of solutions (usually related
to making sure the path is set correctly), but none work for me.
Any ideas? I'm slightly baffled and have run out of things to try.
Thanks in advance.
Hi all
AFAIK it is possible the insert ^L to
force the printer to start with a new
page - in plain text files.
But how can I insert this characters (control)
with textmate.
Karl-Heinz
Hi,
I've been enountering this problem with TextMate for some time now. I open a
directory, keep working on the files, keep editing and saving as usual, but
sometimes, TxMt locks up and prompts me for password to save the file - and
it wouldn't save the file even if i supply the password. I've checked the
file permissions and they seem to be fine (for until a while ago, TxMt was
saving without a hitch). While this happens, I get this error on
Console.app:
30/09/08 3:56:54 PM TextMate[18607] executeLsFilesUnderPath:inProject: ***
-[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key:
_NSTaskDiagnosticFileHandle): launch path "/opt/local/bin/git"
I have the ProjectPlus plugin installed.
What could be going wrong?
Thank you in advance.
-- Srinivasan
Not quite sure what else to add, TextMate freezes when I start it up.
It used to load an old project with about 10-15 files, but I have
tried moving the folder and it still freezes. Not sure how to reset
the settings so that TM doesn't try to reload the last open project.
I'm using 10.5.5
Dunno if there's a way I can get some debug info to provide more information.
>> Just wanted to let you guys know that I updated my CSS bundle with
>> even more tab triggers! ;) Some other additions and fixes too... For
>> more info and screencast, go to my site:
>>
>> http://minimaldesign.net/articles/read/textmate-css-bundle-11
>>
>> btw, I don't mind including my stuff in the official bundle and
>> contributing to official CSS/HTML bundles in general if that's
>> something you'd be interested in. Just let me know.
>
> I have a new version of the CSS bundle coming out soon.
> It's currently on GitHub. It's mostly just enhancements to the
> language grammar and code completion.
>
> What I recommend is to make a new bundle with all your stuff for now.
> Maybe "CSS Extras" or "CSS Fast Coding" or something like that.
> Then people can install the new CSS bundle and your new CSS bundle at
> the same time without any interference.
>
> I haven't looked at the info.plist of your bundle, but if you added
> your snippets to the CSS bundle itself instead of making a new bundle,
> there's no way to install both versions at once.
>
> Once I get some time we can talk about the official direction of the
> bundles and decide what stuff should be merged in.
> There might be some overlap or something.
The way I've done it so far is to add on to the official bundle
instead of creating a new one because I haven't found an easy way to
duplicate a bundle... I looked in the docs a while back but couldn't
figure it out... I don't overwrite any of the functionality from the
official bundle though, I want to keep all the functionality from the
original... but yeah, it forces me to make sure I keep in synch with
the updates
of the official version.
I don't mind creating a separate bundle, but a "CSS extras" would
defeat the purpose 'cause you'd lose some of the original
functionality... Unless it's possible to use 2 bundles "at the same
time" for a language?
If you can point me in the right direction as to how you'd go about
duplicating a bundle and changing its name, I could update it in the
next few days... And my HTML bundle too ;)
Thanks!
- Yann
Hey,
I found a small bug in the most recent Haskell Bundle.
The Load in GHCi command needs 1 line changed from:
do script "clear; cd $(esc "${TM_DIRECTORY}"); ${THASKELL} $
{TM_FILEPATH}"
to
do script "clear; cd $(esc "${TM_DIRECTORY}"); ${THASKELL} '$
{TM_FILEPATH}'"
Otherwise the command fails if you are in a directory that has spaces
in its path.
Armon Dadgar
I've been working on bringing full ActionScript 3 autocompletion to
TextMate. It's still in progress and it may be rough around the edges
but should be ready for some testing when Dialog 2 is shipped, here's
a short teaser:
http://blog.simongregory.com/09/as3-autocompletion-in-textmate/
Cheers,
Simon