Hi,
I am new to Textmate. Great tool!
I love the persistent includes in the html-bundle. However I miss a method to update all files of a project at once. This topic was discussed earlier on this mailing list in 2007, but I could not find any follow up.
To work around this, I whipped up an apple script like this:
-- Update all persistent includes in Textmate
-- allow Apple Script to execute keystrokes
tell application "System Events" to set UI elements enabled to true
-- choose the textmate-project-file
set ProjectFile to (choose file with prompt "please choose Textmate-Project")
-- TODO: check, if a valid projectfile was chosen
tell application "TextMate" to open ProjectFile
tell application "TextMate" to activate
tell application "Finder" to set sourceFolder to folder of ProjectFile as alias
tell application "Finder" to set Subfolders to every folder of folder sourceFolder
-- TODO: iterate through root folder and sub-sub-folders
repeat with EachSubDir in Subfolders
tell application "Finder" to set filesList to (every file in EachSubDir whose name ends with ".html")
repeat with htmldatei in filesList
tell application "TextMate" to open htmldatei as text
-- Wait one second to make sure the file is loaded
delay 1
tell application "System Events" to keystroke "u" using {command down, control down}
-- Wait one second to make sure the update is finished
delay 1
end repeat
end repeat
-- End of Apple Script
When you run it, it prompts you for the tmproject-file and opens all html-Files in the subfolders.
Has anyone a less ugly solution or any suggestion?
Thanks
Jan
Every so often I'll be going about my business in TextMate when all of the sudden, TextMate decides to "donk" (the error sound effect) every single time a TextMate window loses focus. There seems to be no other ill effects to accompany the "donk" but it is rather annoying to listen to as I may lose focus, switching back forth between apps, several times in a matter of a minute.
The only thing that cures the "donk" issue is to restart TextMate.
Anyhow, here is the console output when the window gains focus while the "donking" is going on.
##################
9/16/11 1:11:59.819 PM TextMate: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
9/16/11 1:11:59.824 PM TextMate: (
0 CoreFoundation 0x91865e77 __raiseError + 231
1 libobjc.A.dylib 0x98447149 objc_exception_throw + 155
2 CoreFoundation 0x9176f7e6 -[__NSArrayM insertObject:atIndex:] + 150
3 CoreFoundation 0x9176f740 -[__NSArrayM addObject:] + 64
4 TextMate 0x0005c46e -[NSOutlineView(OakOutlineView) selectedItems] + 172
5 TextMate 0x000bdbb1 -[OakProjectController applicationDidBecomeActiveNotification:] + 223
6 Foundation 0x9084d51d __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 49
7 CoreFoundation 0x917a6843 ___CFXNotificationPost_block_invoke_1 + 275
8 CoreFoundation 0x91771658 _CFXNotificationPost + 2776
9 Foundation 0x9083870a -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
10 Foundation 0x9084d99e -[NSNotificationCenter postNotificationName:object:] + 55
11 AppKit 0x9713d41f -[NSApplication sendEvent:] + 3140
12 TextMate 0x000447ed -[OakApplication sendEvent:] + 159
13 AppKit 0x971d339d _NXFinishActivation + 211
14 AppKit 0x971dbfd5 _NXDoDeferredWindowOrdering + 187
15 AppKit 0x971a4cf4 -[NSWindow sendEvent:] + 4676
16 AppKit 0x9713db23 -[NSApplication sendEvent:] + 4936
17 TextMate 0x000447ed -[OakApplication sendEvent:] + 159
18 AppKit 0x970cf52b -[NSApplication run] + 1000
19 AppKit 0x97362b54 NSApplicationMain + 1054
20 TextMate 0x0012e4f2 main + 168
21 TextMate 0x0000610e _start + 216
22 TextMate 0x00006035 start + 41
)
##################
Adam Merrifield
seydoggy.com
820 Strasburg rd, Kitchener,
Ontario, N2E 2Y3, Canada
Office: 519-489-6033
Cell: 519-574-9788
I had to delete and re-post this because I wasn't subscribed to the list when
I originally posted this. Sorry for any confusion.
***
Hey, I'm new to textmate (neatbeans borked itself on me), and am hoping
someone can help me. I'm working on a very large codebase, but only a small
portion of it is relevant to my project. So I have opened the root folder of
the codebase, and then highlighted files I *don't* need and then used
right-click->"Remove Selected Files"->"Delete References". By doing this, I
can limit the list of files to only the ones relevant to me, making it a ton
easier to navigate from file to file.
The problem is, even if I use the File->"Save Project" command, this
filtering of files seems to be temporary. The next time I open that project,
all of the files I filtered out are visible again in the file-view. I have
the ProjectPlus plugin installed.
Is this expected behavior? Or is there a setting I'm missing or different
workflow I should follow in order to get textmate to remember what should be
visible in my project?
Thanks!
--
View this message in context: http://old.nabble.com/remembering-files-in-projects-tp32449259p32449259.html
Sent from the textmate users mailing list archive at Nabble.com.
This is a TextMate Bundle for viewing and editing LLVM (Low Level Virtual
Machine) assembly files (.ll). Pretty basic: language file and some
snippets.
https://github.com/hansstimer/llvm.tmbundle
>
> Even when I try to retrieve the PATH from Terminal, I still get this error.
> Has any one run into this kind of problem before??
Which error are you getting? Please post the output from these two
commands:
echo $PATH # Remember you need a $ to access shell variables
which g++
Your path should be separated by : (colons), not new lines. If you get a
valid answer to "which g++" add that to your path by appending a colon and
then that directory to the path. For example, my path (in TM) is
/Users/bmf/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
When I enter "which g++" into terminal I might get (for example)
/opt/extra/stuff/bin/g++
So my I would change my path in TM to
/Users/bmf/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/extra/stuff/bin
Note: my g++ is in /usr/bin. That is by default in the path. Rather than
muck with your PATH, I would go with Allan's advice and make sure you have
it installed correctly. If 'which' doesn't find it and you didn't purposely
install it into some weird place, it probably isn't installed.
Brandon
>
> Is this expected behavior? Or is there a setting I'm missing or different
> workflow I should follow in order to get textmate to remember what should
> be
> visible in my project?
Yes, this is expected behavior. It rescans the directories and adds files
whenever you open the project or command+tab back to TextMate*.
The way to change which files are discovered is to right click on the root
folder and choose "Show Information..." (or select the folder and hit
command+i). Where it says "Recursively Include Contents Matching..." you
can define "regular expressions" to include/exclude files and folders. I'm
not sure which syntax that box is using for the patterns but exclamation
point (!) acts as negation so you can easily exclude stuff from your
directories.
*You can use the plugin ReMate to disable this behavior if you don't want to
exclude the files but rescanning them is slow.
Hope that helps! Enjoy using TextMate! :)
Brandon
Hello everyone,
I first want to apologize to anyone who thought the subject said
"TextMate2." I promise I wasn't trying to deceive you. :-)
I'm not sure if this is the best place to post this, but I have created an
improved version of TabMate and wanted to share it with those of you who
have been frustrated by a lack of an update to such a useful plugin.
TabMate2 <https://bitbucket.org/tweekmonster/tabmate2/overview> brings
improvements that include refreshing windows with your modeline settings
when you:
- Switch between windows (not just tabbing in and out of TextMate)
- Switch between tabs
- Save your file (editing then saving the modeline will immediately
update your window settings)
- Reload Bundles
A bonus feature has also been added: You can also keep your modeline at the
bottom of your files!
TabMate2 also has a companion bundle that helps you create and manage a
modeline in your files. Install it and simply press ^M and a modeline will
be added to the top of your file. If you already have a modeline in your
file, the bundle will simply update the existing modeline with your selected
language and tab settings.
You can download the PlugIn (be sure to remove TabMate first) and Bundle
here: https://bitbucket.org/tweekmonster/tabmate2/downloads
I would also like to make this disclaimer: I'm new to Objective-C
programming. This was my first real-ish project involving Objective-C and I
welcome any comments or pointers about the code
itself<https://bitbucket.org/tweekmonster/tabmate2/src>.
I also was only able to test this plugin in Snow Leopard and Lion, but I
assume that building it with the 10.5 SDK would make it usable on Leopard,
right?
Please let me know what you think!
-Tommy
First off, I'm new at this Mac stuff. Got my first ever Mac yesterday, and
I've been trying to get it all to work.
I'm studying Software Engineering at University, and the current (first)
language we're working with will be C going to C++. I've installed xCode,
which I've got working, however I would like to use TextMate for the actual
writing as the snippets just makes it awesome.
I have a problem though, when I compile a simple code like this:
int main(void){ printf("Hello World\n"); return 0; }
it works fine, I get the compiled output from gcc (I believe it's GCC in
xCode), however if I run this:
int main(void){ int number; printf("Give number: "); scanf("%d", &number);
printf("Number provided was %d", number); }
What happens is I get the said console output window, however it does not
allow me to actually input stuff, it merely slaps 0 in the scanf.
I used 5 hours last night trying to get everything to work, and I may have
been searching on the wrong things, but I'm new at all this so please beare
with me, and if there's a specific answer somewhere (thread here,
stackoverflow etc) then a link would be awesome.
Hope someone can help me, as TextMate is just....awesome.
Best Regards
Dennis
--
View this message in context: http://old.nabble.com/compiling-code-but-not-inputs-tp32422353p32422353.html
Sent from the textmate users mailing list archive at Nabble.com.