Hello Ladies and Gentlemen,
Is there a way to substitute an accented character by its non-
accented equivalent with a regular expression?
I'm asking because the LaTeX snippets for sectioning (cha, sec, sub,
subs, ...) automatically generate the label associated with a newly
created environment, but unfortunately the regexp used for this keeps
the characters accented.
Beacause of this, it requires to correct manually the label in order
for LaTeX to accept it for compilation.
Is it fixable?
Xavier Cambar
Hello everyone,
I was wondering if anyone else came across the same following
behavior: When repeatedly typesetting a LaTeX file (e.g. when
changing equations around), PDFView correctly updates the page in
question but then jumps back to the first page (making it very
annoying to scroll to the appropriate page again). I have only
experienced this behavior with _some_ files, while others seem to
work fine.
Thanks for your help,
Jonas Müller
Hi,
natbib defines a set of cite commands that start with an uppercase C
(e.g. \Citep), which are meant to be used at the start of sentences,
especially if the author name starts with a lowercase letter (as in
"von ....").
The current TextMate highlighting doesn't recognise these commands as
citation commands. However, this is easily fixed by changing the first
occurrence of "cite" to "[Cc]ite" in the language definition.
The fix seems to work fine, so I was wondering whether this should go
into the main release.
cheers
Hendrik
When I hit Command+O, the directory I'm put in is the one for the
project, but I would prefer that the directory match the file that I'm
currently editing (which is often in a subdirectory of the project).
I guess that most of the time I open a file, I'm opening a sibling to
the file I'm currently editing. I have this behavior with UltraEdit on
Windows and find it quite productive.
-Chuck
Hi,
I've stumbled on a problem with TextMate's python handling which goes
into an infinite loop (or a really long computation) during certain
circumstances. When this happens, TextMate doesn't react to any input
anymore, which causes dataloss of everything typed after the last save.
I have the following function (<> only shows the position of the
caret and is no text) in a python file:
def c(docstring, baseindent=0):
#from http://www.python.org/dev/peps/pep-0257/
lines = docstring.splitlines()
# Determine minimum indentation (first line doesn't count):
indent = sys.maxint
for line in lines[1:]:
stripped = line.lstrip()
if stripped:
indent = min(indent, len(line) - len(stripped))
# Remove indentation (first line is special):
trimmed = [<>lines[0].strip()]
if indent < sys.maxint:
indent -= baseindent
for line in lines[1:]:
trimmed.append(line[indent:].rstrip())
# Return a single string:
return '\n'.join(trimmed)
Now I type ]<enter> and watch TextMate die. It'd be cool if this
could be fixed.
To reproduce the problem:
1. Open TextMate
2. Paste the above function into TextMate, put your caret where <> is
(and remove <> from the text)
3. Go into python mode (shift-ctrl-opt-p 4)
4. enter ]<cr>
Bye,
Nico
Hi
I'm looking for a way to easily encrypt and decrypt a text file. It
should do the following:
- On open, ask for the passphrase and decrypt the document
- Display the document plain text, allow edits
- On save, automatically encrypt the document, but leave the
unencrypted doc open.
I'd use this to store passwords.
Any ideas?
Thanks a lot!
André
Textmate is great to work with, if you are using it on your mac. The moment
you have a file on a remote server though, things get tough, at least with
MacFuse using SSH.
Here are the most prominent problems:
- It is impossible to import a directory. You have to import the files
individually into the project. I don't know why this is the case, but sadly
it seems nothing can be done about it.
- Saving a file takes ages and locks up textmate. I have no problem if
saving the file takes time, after all it is going across a network. What I
don't understand though is why textmate has to lock itself up while it is
saving a file.
But maybe I am going the wrong way about it altogether for working with
remote files?
--
View this message in context: http://www.nabble.com/Textmate-for-remote-files-tf3822831.html#a10822703
Sent from the textmate users mailing list archive at Nabble.com.
I must be missing something really obvious here but I don't know how
to do this most basic thing:
(1) Drag a folder onto TM icon to open as project
(2) Open an HTML file called index.html
-- Now here's the part that throws me ---
(3) Make a new file called index2.html based on the original index.html
My first instinct is to right click on the file in the project drawer
and look for "duplicate file" or something similar - no such option
exists. So the next thing I try is opening the file and using "Save
as" to make the new file. This actually works but something weird
happens: In the drawer, it has the effect of *renaming* my original
file rather than adding a new one. If I switch to another
application and then back to TM, the original file reappears. Is
this expected behavior?
So what's the preferred method of creating a new file starting with a
copy of an existing one?
Thanks!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
I've mapped my Caps Lock key to act as the Ctrl key (in Keyboard &
Mouse preferences > Modifier Keys...). Problem is, not all TextMate
combos work with this.
[Hear me now, believe me later. I had an old Sun keyboard that was
laid out this way, and it's the only way to fly. Especially on the
MacBook Pro where the normal Ctrl key is quite inconvenient to hit.]
For example: Paste From History Ctrl-Option-Command-V. Works fine
with normal Ctrl key, but does not work with Caps Lock used as Ctrl.
Another example: Select Bundle Item... Ctrl-Command-T works fine
both ways, however.
Perhaps there's something deep in TextMate's key processing code
that's only looking directly at the Ctrl key, and not seeing the
system-remapped Caps Lock key?
Thanks for your attention!
Jon
I find my self wrapping html code very frequently.
It is a pain but I do not know how to work with regex,
Basically I need to use echo "" to wrap the html code and escape all of the
other " in it.
can someone help me?
Please.
-Thansk
-L
--
View this message in context: http://www.nabble.com/PHP-echo-wrap-tf3847294.html#a10896573
Sent from the textmate users mailing list archive at Nabble.com.