Hi,
I'm evaluating TextMate as a MacVim replacement for my LaTeX writing.
What bugs me is that it does not seem to indent and hard wrap text
automatically at all when editing existing paragraphs. MacVim does
this very nicely when the appropriate "format-options" are turned on.
I found this message regarding indentation:
http://lists.macromates.com/textmate/2009-August/029269.html
>> Is there a way to make the indentation continue on the second and
>> third, etc. line of the \item? Something like this:
> I assume you are asking for indented soft wrap, in which case the
> answer is no.
What would the answer be for indented *hard* wrap?
What I would like is to be able to just remove some words of any
indented line (e.g. within a
\item line) and have TextMate continuously reflow and re-indent the
text for me.
- If I press backspace before the first non-white space character of a
line, it should just jump back to the end of the previous line instead
of removing the indentation tabs or spaces.
- If I'm changing a line that begins with \item to \end{itemize}, it
should automatically outdent to the correct indentation level.
- etc.
In other words, if at all, it should only be possible to change
indentation manually using opt-tab and opt-shift-tab.
For some limited time, I could maybe live with having to press a key
to manually trigger the re-flowing and re-indenting process, but none
of the provided commands seem to do much good in this case.
I attached a macro I've developed that handles the latter (only soft
tabs are supported); please let me know if there is an alternative way
of achieving this.
I wonder if any enhancement regarding automatic reflowing of hard
wrapped text is planned for TM 2?
Thanks,
Sam
This is probably a bit of a noobish question, but since most recently
updating TextMate I've been having problems making programs which require
input run correctly through TextMate. Before the recent update I had no
problems.
For example, if I write a simple C program such as the following
(getchar.c):
#include <stdio.h>
int main() {
printf("Please type a character:\n");
printf("You entered %c", getchar());
return 0;
}
and then hit Command-R to run the program, TextMate doesn't bother to ask me
to type anything but just defaultly takes EOF as its input. Before updating,
TextMate would come up with a dialogue box telling me that input was
required, with the option to send EOF to the program, but this no longer
happens.
The above program runs fine in terminal, via "gcc getchar.c;
./getchar.c.out" for instance.
The problem persists with other languages too, such as Ruby. Presumably
there must be a simple way to fix it. Has a setting that tells TextMate what
to take as STDIN been changed?
Thanks in advance.
--
View this message in context: http://www.nabble.com/Running-programs-that-require-input-in-TextMate-tp252…
Sent from the textmate users mailing list archive at Nabble.com.
I'm not sure if this is a textmate problem, but I don't seem to be
able to generate a pdf with images using princeXML from a
multimarkdown document anymore. The only real change in my system in
snow leopard. Is anyone else having troubles with this?
j.
Dear Users,
Erm, I spent the better part of the last few hours working on a custom
language grammar for assembly languages and then with just one keystroke
the language definition was deleted without me being able to bring it
back? How is it possible that when I do not have the focus on the text
editing region of the language editor (mind you this can happen
accidentally very quickly when you have to constantly close and reopen
the dialog!) and I press backspace that my language definition is
deleted without being asked if I really wanted to delete it? This is so
incredibly fustrating.
Do any of you know a trick how I can save any of it? Is there a cache
somwhere or someting that I can exploit. I already checked the tmBundle
and under the Syntaxes folder my definition is already gone :(((
Please if you do know something.... it would be a shame if all this work
would be lost. I really did not expect this behaviour. I otherwise love
TextMate but this is a design flaw. I should at least be asked if I
really wanted to delete the syntax file I have been editing the last few
hours.
Thanks for reading!
André
I just upgraded to Snow Leopard over the weekend, and when re-installing all
software, decided to use GetBundles to grab all of the bundles I'd been
using. However, when trying to list everything on the repository, it doesn't
seem to work for me.
I went into show_bundles.rb, the support ruby script which is called when
you "Show Bundles on Repository". I updated the website's hardcoded in that
script to svn.textmate.org/trunk/Bundles, but no dice. I did notice the
general note on TM/SL incompabitility with Ruby scripts due to 1.8.7, but
I'm not a Ruby guy so I dont know the details.
Is anyone else seeing the same thing?
Much thanks
Joe
With SL upgrade, as discussed before there is problem with LaTex and
other bundles don't work while the tm_interactive_input.dylib exists.
I find another problem when I tried to configure the LaTeX bundle
preference, it appears a tooltip says,
/Library/Applications Support/TexMate/Bundles/LateX.tmbudle/Support/
bin/configure.py:8: DeprecationWaring: os.popen4 is deprecated. Use
the subprocess module. sin,result = os.popen4(command)
What is this?
Hi All,
I downloaded TextMate today and am evaluating switching to it from Emacs.
There are many things I like about it so far, but I have three questions.
I code in C++. When I try to re-indent a selected chunk of code, using Text
-> Indent Selection, it seems to do the wrong thing for any code that
appears after comment lines. Am I doing it wrong?
Also, is there any way to invoke Make from within TextMate. And finally, is
there a gdb mode for debugging apps, like Emacs has?
Thanks!
Mark
I have asked this before, and I can not find the post, or any notes or
emails on it.
When remotely editing code via for example, Interarchy, or any other
ftp/ssh/sftp app, I can not get saving of code foldings.
Is this supposed to work? I seem to recall back in the days of using
BBEdit I would be able to tick off a "save state" and it would
remember everything, from window position, line numbers on off, and a
bunch of other things.
Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *
I have two bundle commands with identical input and scope settings.
One of them sees the TM_INPUT_START_LINE_INDEX environment variable,
the other does not.
Any idea why that may be?
Thanks
Gerd
Hi,
I found a small bug. Since this is part of a bundle, the macromates
website asked me to report it here.
Summary: sort does not with euro symbol, and some other non-Latin
characters.
Steps to reproduce
1. Open new text file.
2. Add text with a EURO symbol, e.g.
aaa €
bbb ¥
ccc $
ddd £
3. sort the file with F5 (Text > Sorting > Sort lines in document)
I get the error:
sort: string comparison failed: Illegal byte sequence
sort: Set LC_ALL='C' to work around the problem.
sort: The strings compared were `AAA \302\202\254' and `BBB ¥'.
Most non-Latin characters work fine. Just this one fails. If I save the
file and simply run "sort test.txt" all is fine. Both in my shell and in
TextMate, "echo $LC_ALL" return "en_GB.UTF-8".
Typing the following script in TextMate and "run script" works fine:
echo "ccc\naaa€\nbbb" | sort
What would be different for the "Sort lines in document" (which simply
calls "sort") and the above script?
Any clue?
Is this reproducible by others?
Regards,
Freek Dijkstra