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
I inadvertently pasted several megabytes of characters into the find
field of the search and replace dialogue box. The performance of TM
dropped significantly whenever the dialogue was displayed as a result.
I tried using the CLI tool defaults to remove the find history from
the preference file and even reverted to an earlier version of the
preference file (courtesy of Time Machine) to reduce the preference
file size from 4.5M to 25K. Unfortunately starting TM again somehow
restored the preference file so I was still left with the problem.
It turned out the fix was simple - just select a few characters and
Command E to make them the new find string. Repeat with a different
set of characters a dozen or so times. This pushes the offending
search string down the history list until it is discarded.
Dave.
Hi,
I have an HTML page running in TM's HTML output window with embedded
JavaScript and my JavaScript is not correct, I can invoke 'Inspect
Element' to see the error. Fine.
But is there a way to access the error message from outside, I mean
by a script?
If not, would it be possible to redirect the JavaScript error
messages to a log file?
Many thanks in advance,
--Hans
Hi,
would it be also useful for other users to have the chance to set the
appearance of the HTML output window as:
- normal window (like the current one)
- HUD window
- frameless window (like HTML tooltip)
- maybe some others
Technically it should be "quite" simple to provide these options.
Or am I wrong?
Regards,
--Hans
Hi,
if I have an HTML page (TM's HTML output window) with embedded
JavaScript and my JavaScript is not correct I can press the right
mouse button and invoke 'Inspect Element' to look at the JavaScript
error(s). Fine.
But is there a way to access the(se) error(s) from outside, I mean by
a script?
If not, would it be possible to redirect the(se) error(s) to a log file?
Many thanks in advance,
--Hans
Writing a ruby command for TextMate to reformat author names
in a list of papers I run into the obvious but sad fact that
/[A-z]/ =~ "ü"
does not match anything. Is there a simple workaround?
I mean, simpler than a very long and unelegant list of Unicode
ranges such as the one here
http://forums.mozillazine.org/viewtopic.php?f=25&t=834075
Thanks,
Piero
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.
Hello,
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?
Thinking more about it, it's certainly not an easy problem. But if
there are hooks, then I'd like to start looking at taking advantage of
them...
Cheers,
Will
Dear regexeperts,
I'm trying to write a snippet for wikimedia for applying bold
(wrapping a string in **str**)
I've attached cmd-B to the snippet, and I'd like it to bold the
CURRENT_WORD if there is no selection.
Sounds like a job for:
**${TM_SELECTED_TEXT:$TM_CURRENT_WORD}**
Works fine for the selected text, but not for the current word, where
it returns things like this:
he|re -->cmd-B--> he**here**re
Any pointers, or do I need to be made into a command? (in that case,
what use does $TM_CURRENT_WORD have in snippets?
cheerio,
tim
Hello everyone,
if I insert a snippet with a tabstop, which is immediately followed by
a number (without any white spaces in between), the number gets
interpreted as belonging to the tabstop. Is there a way to aviod this?
I want to put the caret to an arbitrary location of a (script
generated) replaced text, which might be inside a number block. The
solution I have is to put a pair of backticks before the number, but
then the inserted text flashes on insertion, so it does not seem to be
the correct way to solve this.
Best, Christoph
I get the following error when invoking the Git Bundle with
control-shift-G:
/tmp/temp_textmate.datgB4:26:in `open': No such file or directry -
pages (Errno::ENDENT)
/from /tmp/temp_textmate.datgB4:26:in `entries'
/from /tmp/temp_textmate.datgB4:26
One odd thing is that this only happens with documents with a particular
Git repository. With other Git repositories, things work as expected.
The problematic repository *is* a Git repository, and everything works
fine from the command line---I can commit, pull, push, etc. just fine.
Best, Mark
This is a feature request.
When multiple items are found when pressing keyboard shortcuts, a menu
will appear. (See 5.1.1 http://manual.macromates.com/en/bundles#activation_of_bundle_items
)
In the menu, TextMate offers 1 to 9 to make selecting an item easy.
But in the menu, I woud like
to use control-N and control-P to move up or down.
Spotlight, Safari's location bar and many other apps support Control-P
and Control-N for various
places.
It would be cool if TextMate has this support.
Of course, I know I can use arrow keys or just type the first letter
of the item to select an item.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
On 22/set/08, at 10:19, textmate-request(a)lists.macromates.com wrote:
>> \documentclass{article}
>>
>> \begin{document}
>> \input{essai}
>> \end{document}
>>
>> I save it and now alt-esc does not work anymore
>>
>> Perhaps a problem with LatexCommandCompletions.rb ??
>>
>
> I have the same problem. I would like to know if I am the only one
> with this problem?
>
> Perhaps i need to update something ? but I think there is a problem
> with \input, \include and the completion !
>
> Best regards
> Alain
Same problem here. This is what happens on my machine with the code
above:
- when I use \include or \input the command completion stop working in
the master file. However in the file called by \include or \input it
works without a problem. The command completion works in the master
file until the first time i save the file.
- \ref and \cite work smoothly in both file.
- the file essai is in the same folder of the master one, and has
the .tex extension.
However I've always considered this behavior as a "feature" of the
LaTeX bundle, a kind of advice: "if you use \include or \input, it's
better to write all of your text in secondary files, keep the master
file clean".
Leopard 10.5.5, TextMate Version 1.5.7 (1466), LaTeX bundle updated
some days ago, for the release of MacTex 2008.
Roberto Durante
Hi List,
I just tried to use "Edit in TextMate" on groups.google.com and it
just plays me an alert sound when hitting the keyboard shortcut
instead of opening a new TextMate window.
Can someone confirm that "Edit in TextMate" is not working when trying
to make a new post on any group with safari and groups.google.com
website?
Thanks,
Jan
Hi,
I do not know whether I can remember correctly but I believe that
someone mentioned a generator script for language grammars' regexp of
a set of fixed names. I mean e.g.:
I have this list of fixed classes:
NSArray
NSMutableString
NSMutableArray
NSCell
NSCellItem
NSCoder
and the generator script will output something like this:
NS(Array|Mutable(String|Array)|C(ell(Item)?|oder))
If someone knows this script I'd be appreciated to get a hint where I
can find it.
Many thanks in advance!
--Hans