hello.my question is if can i somehow change the ctrl+w shortcut with
command+w, or maybe command+e wich i see is doing nothing.
i never close windows, but the current ctrl+w i'm using very often, and is
not very confortable for me the combination.
--
Cristi
www.ralcr.com
I tried to report this as a bug via the website but I'm being flagged as
spam, even when logged in. (Meta bug?)
Anyway:
If I double-click on the && in the following line of text:
if( transform.position.z > CameraTransitionAltitude && !AboveCamera.active
){
I select " && !" which is definitely not what I want or expect.
I've had similar oddness with double-click selection elsewhere but this set
me off.
--
View this message in context: http://www.nabble.com/Bug-Report----Double-click-selection-tp19295446p19295…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
I've been trying to write an AppleScript to save any open TextMate
file into a specific folder with a filename constructed out of the
current date and time.
There is no problem creating the filename but I can't work out how to
get the path and filename into the TextMate file to be saved.
In the script below I've left out the bit that creates the file_name.
as that bit works fine. The problem is the line "save to file
file_path" which doesn't work :(
It does work with that other text editor for the Mac but of course I
don't use that one anymore :)
Thank you for any assistance you can give.
set file_path to "Macintosh HD:Users:patrick:Temporary:" & file_name
tell application "TextMate"
activate
if document 1 exists then
tell document 1
save to file file_path
end tell
else
display dialog "No open file"
end if
end tell
Patrick
http://www.patrickjames.co.uk
On Sep 2, 2008, at 2:45 AM, Allan Odgaard wrote:
|| [...]
|| and this unexpected result when run from PyMate:
|| PyMate r8111 running Python 2.5.2 (/usr/bin/env python) >>> loc.py
|| C/en_US.UTF-8/C/C/C/C
|| 282929992
| TM itself sets LC_CTYPE since it is only concerned about character
| encoding for the processes it launches (for stdin/out).
| If you want to have LC_ALL set for the processes it launches, set it
| in Preferences ? Advanced ? Shell Variables.
If TM were setting LC_CTYPE correctly, wouldn't PyMate produce the same output (stdout) as I saw in the shell?
Dave
Using 1.5.7 (1464), I realized that the command-shift-A shortcut for Add
New Files... doesn't work to add files to a project. I just get a
system beep.
I've seen no discussion of this here, aside from a 2005 post that said
it should start working once you've manually displayed the menu, so I'm
guessing this isn't a common problem. Yet I'm seeing it on two
different Macs. Command-Shift-N, which is on the File menu as well as
the gear menu, does work. Command-shift-G, which is also on the gear
menu (and not any other menu), doesn't work either.
Is this in fact a known problem? Is there a workaround, other than
QuicKeys/etc? I took a look at KeyBindings.dict, but I'm not sure if I
can add command-keystrokes that way, or what the setting would be
called, etc.
Jay Levitt
I've recently begun learning Erlang, and in the process made some
updates to the Erlang bundle that might be useful to others. I've
created an AppleScript that can perform basic remote control of a
Terminal window running an Erlang shell -- enough to compile a source
file at least.
There's a short screencast and download information on my blog:
http://imbriaco.com/braindump/articles/first-post-erlang-and-textmate/
If the original author of the Erlang bundle reads this, I'd love to
contribute this back to the official bundle. Feel free to contact me
off list.
-Mark
I have asked about this in the obvious places (pgf help forum and
comp.text.tex) and after some initial help, the help has dried up. As
this is going to be a specifically Mac users here, maybe the problem
may be more obvious.
When I try and compile this code (from the manual):
\documentclass[a4paper]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}%
\begin{axis}[
xlabel=$x$,
ylabel=$\sin(x)$,
name=an axis,
]
\addplot plot [id=sin] function{sin(x)};
\end{axis}
\end{tikzpicture}%
\end{document}
I get these errors:
Latex Error: ./PDFPlotTrial2.tex:11 Package pgfplots Error: Sorry, the
gnuplot-result file 'PDFPlotTrial2.sin.table' could not be found.
Maybe you need to enable the shell-escape feature? For pdflatex, this
is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplot
PDFPlotTrial2.sin.table' manually..
! Package pgfplots Warning: You have a plot with empty range.
Replacing it with default and clearing plots.
Latex Error: ./PDFPlotTrial2.tex:13 Extra }, or forgotten \endgroup.
Latex Error: ./PDFPlotTrial2.tex:13 Missing } inserted.
Latex Error: ./PDFPlotTrial2.tex:13 Extra }, or forgotten \endgroup.
Latex Error: ./PDFPlotTrial2.tex:13 Missing } inserted.
Latex Error: ./PDFPlotTrial2.tex:15 LaTeX Error: \begin{tikzpicture}
on input line 5 ended by \end{document}.
I have run pdflatex --shell-escape PDFPlotTrial2.tex from terminal
(which seemed to work as I got pages of text appearing with no obvious
error messages) and I have upgraded to version 2 of pgf. GNUPlot was
installed with fink and runs OK from typing gnuplot in terminal.
I am now stuck, and no idea what to try next. I am pretty new to this
so it could well be something so obvious that no one is suggesting it.
Can anyone help.
Many thanks,
Graham
Hi all-
I'm working on a language grammar for Forth, and am hoping I could get
some advice or pointers for my work. I've read the TextMate manual, and
James Gray's fine book, although I'm sure I haven't extracted every
nugget of info from those texts.
As some of you may be aware, Forth is a stateful language, and there
are certain keywords that are valid only when Forth is compiling. For
example, some words, like IF, THEN and ELSE, can be used only within a
word (function) definition.
So it would be nice to capture this in the scope, and assign these
compile-only words to an "invalid" scope when they are used outside a
function definition. The question is, how to (best) do this?
I've looked at the C language definition a bit, and clearly there are
two modes there: "preprocessing", and "not". But with Forth, I should
be able to assign an invalid scope to the top-level; in essence, have
an invalid scope for source.forth.
Any thoughts?
Best, Charles
Hi,
I've just upgraded the standard Java bundle and TM's support lib for
executor stuff.
I have the following tiny java script:
import java.io.*;
public class test {
public static void main(String args[]){
System.out.println("Hello World");
}
}
saved as test.java
If I compile and run it on a console, no problem.
If I use the Java bundle's "Compile & Run" I get this:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
executor.rb:87:in `run': undefined method `call' for nil:NilClass
(NoMethodError) from /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/io.rb:41:in `call' from /Applications/TextMate.app/
Contents/SharedSupport/Support/lib/io.rb:41:in `exhaust' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb:
41:in `each_line' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/io.rb:41:in `exhaust' from /Applications/
TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:165:in
`run' from /Applications/TextMate.app/Contents/SharedSupport/Support/
lib/tm/executor.rb:99:in `run' from /Applications/TextMate.app/
Contents/SharedSupport/Support/lib/tm/executor.rb:198:in
`process_output_wrapper' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/tm/executor.rb:98:in `run' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
htmloutput.rb:134:in `call' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/tm/htmloutput.rb:134:in `show' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
executor.rb:83:in `run' from /Applications/TextMate.app/Contents/
SharedSupport/Bundles/Java.tmbundle/Support/bin/javamate.rb:32
I didn't set up any env variables.
I'm running a Intel MacOSX 10.5.4 (very fast;) with TM Version 1.5.7
(1466)
With the 'old' Java bundle ("Compile & Run single script") it works.
Any help available?
The new bundle has a nice feature. "Compile & Run (with args)"
I couldn't try out it yet but if I have a folder containing my Java
script and aFile, and I want to do something with that aFile. Is it
possible to enter only the filename aFile as argument without the
absolute path. In other words, does run the script in that folder?
Many thanks in advance,
--Hans
This Python code:
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
import locale
def main():
print locale.setlocale(locale.LC_ALL, '')
print locale.format("%d", 282929992, grouping=True)
if __name__ == '__main__':
main()
produces the expected result when run under Python 2.5.2 from bash
shell on Mac OS X:
en_US.UTF-8
282,929,992
and this unexpected result when run from PyMate:
PyMate r8111 running Python 2.5.2 (/usr/bin/env python) >>> loc.py
C/en_US.UTF-8/C/C/C/C
282929992
Notice that the integer is formatted into comma-separated groups when
run from the shell, but not when run from PyMate.
Changing this line:
print locale.setlocale(locale.LC_ALL, '')
to this:
print locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
gives the expected results in PyMate.
Dave