Hey guys,
I am new to TextMate. I love this application, but some things I miss.
1. How do I reformat a text paragraph to be within a set width, like
80? On TextPad, on Windows, you could do that easily by setting the
default text width to 80, and reformatting the paragraph. I can't
find a similar 'text width' setting in TextMate. Where is it hidden?
Does someone have a command to do this? I can write my own, just show
me a similar example.
2. I have a single file of dairy-like entries. Before I start
writing, I want to timestamp each entry. I am looking to insert the
following snippet:
"==========
YYYY-MM-DD HH-MM-SS
"
How do I do that?
I am aware of the timestamp command in the Text bundle but that only
inserts the calendar date, not the time, and I don't know how to add
the horizontal break before it.
3. I must say whereas the manual is very easy to read. I find it hard
to find out how to quickly implement what I need.
Thank you all. I am trying to figure out how to do things the
textmate way. Apologies if I am clogging your mailbox
Ahmed
Hi-
Would someone be willing to upgrade rcodetools to the recent 0.8.0
version in the svn Ruby.tmbundle? It fixes my troubles with Ruby 1.9,
and it would make my svn updates easier:
svn: Directory 'Support/vendor/rcodetools/test/data/.svn' containing
working copy admin area is missing
Best, Charles
I have a project that uses the GNU automake system's Makefile.am files - for
some reason textmate is ignoring the file. I have checked file and folder
patterns and there is nothing that should preclude the file. Has anyone
else seen this? I there some other setting that might tell textmate to
ignore Makefile.am files?
Thanks,
-- dv
--
View this message in context: http://www.nabble.com/Makefile.am-tp19026092p19026092.html
Sent from the textmate users mailing list archive at Nabble.com.
At work, I always connect to network drives. However, when I try to open my
Macbook pro at home, it always hangs.. It opens a default project window and
just sits there. Please note that I am connecting to the same servers via
VPN client. Here is a sample:
Analysis of sampling pid 1355 every 10.000000 milliseconds
Call graph:
100 Thread_0f07
100 start
100 _start
100 NSApplicationMain
100 -[NSApplication run]
100 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
100 _DPSNextEvent
100 AEProcessAppleEvent
100 aeProcessAppleEvent
100 dispatchEventAndSendReply(AEDesc const*, AEDesc*)
100 aeDispatchAppleEvent(AEDesc const*, AEDesc*,
unsigned long, unsigned char*)
100 _NSAppleEventManagerGenericHandler
100 -[NSAppleEventManager
dispatchRawAppleEvent:withRawReply:handlerRefCon:]
100 -[NSApplication(NSAppleEventHandling)
_handleCoreEvent:withReplyEvent:]
100 -[NSApplication(NSAppleEventHandling)
_handleAEOpen:]
100 -[NSApplication
_sendFinishLaunchingNotification]
100 -[NSApplication
_postDidFinishNotification]
100 -[NSNotificationCenter
postNotificationName:object:]
100 -[NSNotificationCenter
postNotificationName:object:userInfo:]
100
_CFXNotificationPostNotification
100 __CFXNotificationPost
100 _nsnote_callback
100 -[AppDelegate
applicationDidFinishLaunching:]
100
+[OakCreateSymbolicLinkWizard sharedInstance]
100
-[OakCreateSymbolicLinkWizard init]
100
-[OakCreateSymbolicLinkWizard setupDestinationPaths]
100 fgets
100 __srefill
100 read
100 read
100 Thread_1003
100 _pthread_body
100 text::view::tokenize_filter::worker(void*)
100 text::view::tokenize_filter::actual_worker()
100 semaphore_wait_signal_trap
100 semaphore_wait_signal_trap
100 Thread_1103
100 _pthread_body
100 CMMConvTask(void*)
100 pthreadSemaphoreWait(t_pthreadSemaphore*)
100 semaphore_wait_signal_trap
100 semaphore_wait_signal_trap
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5):
semaphore_wait_signal_trap 200
read 100
Sample analysis of process 1355 written to file /dev/stdout
Sampling process 1355 each 10 msecs 100 times
member57006856(a)nybella.com
--
View this message in context: http://www.nabble.com/TextMate-hangs-when-working-from-home-tp19102829p1910…
Sent from the textmate users mailing list archive at Nabble.com.
Greetings, I recently purchased a new computer and am migrating over
to it. I use latex extensively within textmate, and I have never had a
problem with the latex bundle before. With the new machine, I can type
'pdflatex file.tex' at the command line and it prepares the file in
less than 1 sec. If I run "Typeset & View (PDF)", it takes over 30
seconds before the process begins, then it successfully generates the
pdf.
For completeness:
1) Edit latex file
2) Select "Typeset & View (PDF)"
3) Status window appears with spinning wheel
... 30 seconds pass ...
4) latex console output appears in the window: no errors
5) PDF appears in preview
What I cannot figure out is why this initial delay is occurring. The
same delay occurs with bibtex from textmate as well.
Any suggestions? I confirmed the preferences, etc. and nothing is out
of the ordinary. Again, running the command line has no delay in
starting either pdflatex or bibtex.
Thanks for your help,
Brian
It appears that Ruby 1.9 isn't happy with the "Run Script" (command-R)
in the ShellScript.tmbundle included with TextMate Version 1.5.7
(1436). Or, that if you have the recent Ruby.tmbundle checked out from
SVN, you'll need the ShellScript.tmbundle as well.
I got:
(erb):30:in `concat': character encoding differ (ArgumentError)
from (erb):30:in `html_head'
from /usr/local/lib/ruby/1.9.0/erb.rb:743:in `eval'
from /usr/local/lib/ruby/1.9.0/erb.rb:743:in `result'
from /Library/Application
Support/TextMate/Support/lib/web_preview.rb:117:in `html_head'
When I ran shell scripts from TextMate in Ruby 1.9. This stems from the
left and right single quotation marks used in the Textmate 1.5.7
command to frame the window title: ‘Run <filename.sh>’
The issue is already fixed in the SVN, so simply checking out the
newest version of ShellScript.tmbundle seems to fix the problem.
Best, Charles
Hi all-
I'm monkeying with the Ruby and Support bundles to get them to work
with Ruby 1.9, and have found an issue that would profit from some
advice, aside from my general newness to Ruby and TextMate.
I've got Ruby 1.9 installed in /usr/local, so from the command line,
it's pretty easy to invoke the stock Leopard 1.8.6 with
"/usr/bin/ruby". MacRuby, which interests me greatly, is another issue.
I don't know if it plans to stay as "MacRuby" or not. (I'd guess "yes"
for the foreseeable future.)
For a while, I regarded the static TextMate variable TM_RUBY as an easy
way to specify which Ruby I wanted running under TextMate. However,
I've noticed it will affect the "Run" (^R) command, but has no effect
on "Update Markers" (Shift-command-^E). I assume this is because the
rcodetools xmpfilter.rb file begins with "#!/usr/bin/env ruby", which
has the effect of overriding TM_RUBY.
I grep'ed and found 38 (varied) occurences of "#! ruby" in the Ruby
bundle, and another 10 occurences in the Support bundle. Some of these
are under the direct control of TextMate programmers and contributors,
but others, such as rcodetools, represent a library for a wider
user-base than just TextMate.
So what to do? I imagine the smart folks on this list are aware of the
issue, but it's perhaps not a front-and-center item just yet. I'd
appreciate whatever thoughts exist on the subject, as I'm likely to
make changes, but wish to do so in a generally useful fashion.
Thanks, Charles
El 25/08/2008, a las 8:51, textmate-request(a)lists.macromates.com
escribió:
> Message: 3
> Date: Sun, 24 Aug 2008 18:20:22 +0200
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: Opening Ruby Headers
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <F30AFE9C-7991-42B7-B703-B9955B7335DE(a)textmate.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
>
> On 24 Aug 2008, at 17:16, Juan Falgueras wrote:
>
>> I have extended my old C/C++ headers opener to Ruby. I have
>> associate it to Shift-Cmd-D as in the classic MPW ;)
>
> There already is a header opener on ??D scoped to Ruby.
I finally have found the place you said, Shift-Cmd-D was (I did
mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
svn co http://macromates.com/svn/Bundles/trunk/Bundles/Ruby.tmbundle
and reload bundles in Ruby. It has been the first time I have done
this. Ok.
I've found this for "Open Require"
#!/usr/bin/env ruby
file = STDIN.read.sub(/\A(["'])(.*)(\.rb)?\1\z/, '\2.rb')
dir = $:.find { |d| File.exist?(File.join(d, file)) }
if dir && file then
ENV['FILE'] = File.join(dir, file)
%x{ "$TM_SUPPORT_PATH/bin/mate" "$FILE" }
else
puts "Could not find include: ‘#{file}’"
end
The result of exec it on a simple line as:
require 'test/unit'
is
Could not find include: ‘test/unit
’
shown as tool tip.
Clearly bad. Not only it looks for files badly, it also ignores the
places where ruby use to look for its required.
Although the rest of ruby package contains useful things.
(moreover, the scope in the command was bad, it was:
source.ruby meta.require string.quoted
without commas, and it was necessary for me to insert commas to make
it work)
- juan falgueras
In Ruby.tmbundle/Support/RubyMate, when I run the file "test.rb" using
the command-R key combination in TextMate, the HTML window produces:
Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:65:in
`block in ': undefined method `map' for "that\xE2\x80\x99s
nice\n":String (NoMethodError) from /Library/Application
...plus the call chain.
When I rename the file to "bigfoo.rb", command-R functions correctly,
although I get some method errors as part of the HTML display; a
different issue.
Line 65 of run_script.rb, and also line 92 ("out.join"), seem to be
expecting an Array, but my printing out the class of the argument "str"
indicates it's a string.
As I said, I'm a newbie to Ruby, so I'm not really confident of my
analysis here. One could change "str.map" to "str.each_line", but then
I'm not sure what to do with "out.join", unless it's simply to return
"out" at that point.
Or maybe I'm completely off-base.
Best, Charles
Situation:
1. I am running Firefox
2. I edit an html file
3. I press cmd-R
Result:
Firefox comes into focus, a new tab has been opened and nothing shows
there.
If I run Safari, everything works as it should.
Any suggestions?
Thanks,
Christopher
*****************************************************
Department of Computer Science, University of Sheffield
Regent Court, 211 Portobello Street
Sheffield S1 4DP UNITED KINGDOM
Web: http://www.dcs.shef.ac.uk/~kiffer/
Tel: +44(0)114-22.21967 Fax: +44 (0)114-22.21810
Skype: christopherbrewster
SkypeIn (UK): +44 (20) 8144 0088
SkypeIn (US): +1 (617) 381-4281
*****************************************************
Corruptissima re publica plurimae leges. Tacitus. Annals 3.27
Hello everyone,
I find myself reformatting long file of datas using the Find/Replace dialog
box in combination with RegExp (very powerful !).
But… I would love to have an undo button to undo whatever replacement I just
made. Right now, if I make a mistake in a replacement, I have to close my
file without saving and do it again from the beginning…
Hope this would be easy to implement…
Thanks in advance.
--
View this message in context: http://www.nabble.com/-FeatReq--Undo-in-Find-Replace-tp19140123p19140123.ht…
Sent from the textmate users mailing list archive at Nabble.com.
> $math stuff
> that spans two lines$ when I put a $ here it thinks I'm closing the
> math mode from the first dollar sign on this line of code rather than
> thinking I'm starting a new math mode.
This works for me. Don't override the default LaTeX bundle?
Best wishes
David
----
David F. Snyder
Department of Mathematics
Texas State University
dsnyder(a)txstate.edu
Hi all,
I recently joined a small Java development team. Everyone here is
using Eclipse, and I'm the only TextMate user. They're all ganging up
on me, trying to make me switch to Eclipse. And I must say they do
have a point: For Java development, Eclipse is simply a more
productive environment than TextMate. It can do some truly amazing
code completion and refactoring acrobatics, and debugging is simply a
matter of setting a breakpoint and hitting the Go button. The complete
feature list is here:
http://help.eclipse.org/ganymede/topic/org.eclipse.jdt.doc.user/tips/jdt_ti…
Now, I realize that TextMate is an agnostic text editor and not a Java
IDE, so I can forgive the lack of debugger integration. And some of
the simpler code completion stuff might be replicated with the right
snippet or macro. But there is one feature in Eclipse of which I am
green with jealousy: navigation across source code files.
For example, you can put the cursor over a variable, class name, or
whatever, then hit F3 to automatically navigate to wherever it is
declared. You can instantly jump from a method invocation to its
implementation, for example. You can also easily navigate across
complex class hierarchies, jumping from a class definition to its
parent, then its grandparent, and so on.
This is so much quicker and easier than anything TextMate provides for
project navigation. The closest thing I could find was TmCodeBrowser,
but it only works on a single file. It's kind of useless for projects
like mine with several hundred classes.
Have there been any attempts at creating a TextMate bundle or plugin
that would allow the kind of source code navigation I'm looking for?
If not, does anyone have some suggestions on how I would go about
writing my own? (It would be nice to have some kind of generic
framework for this feature, since it would apply to almost any
language in TextMate, not just Java.)
Trevor
Hi, all
I plan to use textmate as my primary editor for my personal use, such
as write some open source code and document. I decide to buy a
textmate license, so is non-commercial license ok for this situation?
I am not a rich man, and I really want this 15% discount. Also I have
the question that, are there any limit features of a non-commercial
license?
Regards,
Steve
Hello All
For my work, I have to regularly delete lines in a range. I can do it in VIM
using:
:2,4d
Is there anything similar to this in TextMate?
--
Ritesh
http://www.riteshn.com
I often have to code / edit files in Linux. So, I'm looking for an editor
with the following TextMate features:
1) The ability to *easily* use a dark background. For a definition of easy,
read: not Jedit (at least, it was hard 2-3 years ago when I last did it . .
I had to change every syntax type), and not emacs (same reason)
2) Has the same keys that TextMate uses -- mostly.
3) Syntax Highlighting
4) Fast
Any takers? Or, am I resolved to be typing <esc>:wq into every document I
ever edit with TextMate :)
-Dave
There is a bug - or at least I think it is a bug - in either Textmate
or Spaces. I'll admit that I am a late convert to Spaces, since I
find for most purposes the more traditional model of hiding
applications suits me better. However:
If I have one Textmate document open on one "Space" and another open
on another, the following happens. If I open a search window (either
apple-F or apple-shift-F) in one space and then close it, when I try
to open it again for the other document, the window appears in the
first space.
I assume this is because spaces is re-opening the "old" search window,
and thinks that I want it back where I last had it, but it is very
annoying indeed.
Is there any way textmate could ensure that dialog boxes open in the
"space" of the current document?
Best,
Nicholas
I have a 300MB file, a text file which is the output of a long SQL run. Years
ago I remembered opening such huge files in Visual Studio or Slickedit without
much trouble so I tried it - no way, it gave up after grabbing about 1.2GB of
RAM and exhausting what was free.
OK, silly thing to do anyway - I got what I needed from the terminal using head
and tail. But is this expected behavior? Can't it partially load files and
load/dump as you scroll? Eating 4x file size in memory and still not having
enough seems a bit excessive.
Not complaining, just curious.
--
Adam
On Thu, Aug 14, 2008 at 11:47 AM, Adam Eberbach <aeberbach(a)mac.com> wrote:
> I have a 300MB file, a text file which is the output of a long SQL run. Years
> ago I remembered opening such huge files in Visual Studio or Slickedit without
> much trouble so I tried it - no way, it gave up after grabbing about 1.2GB of
> RAM and exhausting what was free.
>
> OK, silly thing to do anyway - I got what I needed from the terminal using head
> and tail. But is this expected behavior? Can't it partially load files and
> load/dump as you scroll? Eating 4x file size in memory and still not having
> enough seems a bit excessive.
>
> Not complaining, just curious.
In the meantime I have learnt that I may not open huge files (I do not
complain about that - I still have vim), but there was one bigger
problem. I often purely accidentally clicked on such a file while
editing other files in the folder, and TextMate crashed. Well, maybe
it did not really crash (I don't remember exactly), but it was
definitely staled. So I had to force closing it, and lost all the
other work in other windows. Even if I saved the files, I still lost
the "open windows" and had to open and organize everything from
scratch again. Which was pretty annoying. It would be nice if that
could be fixed somehow, but I don't want to camplain too much as other
features have priority.
One reason why I love Firefox is that despite its frequent crashes, it
reopens all the windows that have been open before the crash when I
start it again. That would be a nice feature in TextMate. Low
priority, but welcome.
Mojca
Hi,
Know this has been up before on the lists but wanna check if there are
any new ways of getting the relative file path displayed in the title
bar.
using the mouse, control-click menu, tooltip or custom cmd is not an
option.
TextMate already tells us the top most folder in a directory
structure / project.
for instance
views.py - projectname
would have been nice with
views.py - projectname/subfolder
or
subfolder/views.py - projectname
another sweet option could be that the front most document is hi-lited
and shown in the project drawer
/d
hi all,
I have command+i set (in sys prefs) to indent/indent selection and that
overrides the textmate file info binding (I can't remember where that's
located though, can someone remind me? all I remember is that this works)
for single files but the project info window pops up when I have a project
open and hit command+i and the indent menu item doesn't get triggered.
I looked in the key bindings.dict and the menus and bundles but failed to
find where that command is, could someone point me in the right direction
please?
Thanks!
Nick
synctex is great! and works perfectly here
(back in 2003 I tried to convince Hagen and
other pdftex guys to write something like that
inside pdftex, to no avail. That's how pdfsync started,
as an awkward workaround... happy to see it gone)
Robin, it should be easy to add support for synctec
in LaTeX Watch, (just add that -syctex=1 option at the
right place in your script).
Would you do that in the next future?
Thanks to Jerome and all who are contributing to this
feature, this is really becoming mature now.
Piero
Hi,
For some reason, the gear menu doesn't come up when I hit ctrl-escape.
I have been away from Textmate releases for a while, so I am wondering
if things changed.
Raheel