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
Hi. Maybe someone can tell me whether this is interesting.
While preparing the Objective-J bundle I found an useful way to write
a snippet for inserting 'import "foo.j"' or for Objective-C '#import
"foo.h"' which looks for all header files in the project or at the
current path and down and shows up them as a inline menu list with
relative paths to the current file. The TAB trigger is e.g. impp.
A demo movie can be found here: http://www.bibiko.de/TM_importAsFileList.mov
.
The snippet looks like
import "${1:`"$TM_BUNDLE_SUPPORT/bin/import_FileMenu.sh" ".j"`}"
#import "${1:`"$TM_BUNDLE_SUPPORT/bin/import_FileMenu.sh" ".h"`}"
To use it system-widely one could save it in SUPPORT_PATH/lib. Any
comment??
--Hans
Hello List,
I am new on this list and here is my first question to TM: I've started to
learn programming with C. of course, I want to use TM as editor because of
my positive experiences with the LaTex bundle. now i've the problem with
compiling the source code. everytime pushing cmd+r, I get the error: "no
xcode project available" so I compile the c-files manually with the
terminal. that is not very comfortable;)
my question is, if there is a way that I push cmd+r, TM runs the gcc in the
background und execute the file in the terminal automatically? and if there
is a source error TM jumps to the specific line? my current version of TM
is 1.5.7 (1464).
thanks a lot for your help.
sebastian
>
> When using the LaTeX bundle, "Reformat paragraph" isn't very clever
>
about respecting things like environments that aren't separated by a
>
blank line and commands like \item and \caption that might take
>
paragraph text. Is it possible to customise this?
>
>
> I think it's more a question of someone just writing a "reformat
>
paragraph" script for LaTeX files. Then you can bind it to the same
keystroke. But I don't know of any such "latex beautifier". If we can
formalize precisely what such a script should be doing, it will
probably be not too hard to write one.
The standard LaTeX bundles still(!) ships with an old LaTeX Tidy I wrote,
under "Tidy". It is simple-minded and works on the whole document. You
should try it out and see if it gets close to what you want. You may be able
to effectively customize it (it's a perl script LaTeXTidy.pl in
Latex.tmbundle/Support/bin). Here are the notes from the script comments:
# General Idea
# ------------
# Eat all single newlines. Add newlines after all "\\"
# Newlines before each \begin and \end. After each \end{}
# Each environment \begin adds a level of tab.
# Newlines before each \item.
# \n before each \[ and after each \]
best wishes, Eric
--
Eric Hsu, Associate Professor of Mathematics
San Francisco State University
http://math.sfsu.edu/hsu
erichsu(a)math.sfsu.edu
Hi,
up to now it is not possible to use the JavaScript functions alert()
and confirm() within TM's HTML output window.
But there is a solution (unfortunately this does not work for the HTML
preview :( ).
The only thing I do is to write a kind of wrapper for these functions
by using TextMate.system('"$DIALOG" -e ...').
<script type="text/javascript" charset="utf-8">
try {
if (TextMate.system("", function (task) { })) {
var __TM_confirm_Status;
alert = function(s){TextMate.system('"$DIALOG" -e -p
\'{messageTitle="JavaScript";informativeText="'+s+'";}\'',null);};
confirm = function(s){TextMate.system('"$DIALOG" -e -p
\'{messageTitle="JavaScript";informativeText="'+s
+'";buttonTitles=("OK","Cancel");}\'',null).onreadoutput=function(s)
{if(s==1)
{__TM_confirm_Status
=false}else{__TM_confirm_Status=true}};return(__TM_confirm_Status)};
}
} catch(e) {}
</script>
The try block will be only executed if the code will be showed up in
TM HTML output window.
If you put these lines into your HTML code the page will work within a
normal browser as well as in TM's HTML output window.
Attached is a demo command. Simply press the buttons ;)
BTW With this approach I can prompt JavaScript errors by using simply
"alert(err)" inside of TM ;)
--Hans