Is there a command to validate Ruby and Removing trailing whitespace?
I want to improve Command-S for Ruby development. I want to do
both of the commands at the same time.
Wil
Dear TextMate users,
I work with textmate 1.5.8 (1505) and Skim 1.3.3 (51) under Mac OS X 10.6.2 to typeset latex documents. I would like to use pdfsync for jumping "back and forth". I use \usepackage{pdfsync} in the preamble, set Skim to sync with textmate via Skim Preferences => Sync => PDF-TeX Sync support (preset: TextMate; Command: mate; Arguments: -I %line "%file"), and---of course---Skim is chosen as pdfviewer in TextMate. Now I should have shift-command-click for jumping from pdf to the code, and control-option-command-o for the other direction.
I use a main document main.tex which contains some latex code, as well as other chapters included with \input{chapter01}, \input{chapter02} etc.
I can easily go from the pdf file to the code, no matter where I am in the pdf. However, going from the code to the pdf does only work within the main document, not from one of the chapters. Although the pdf file is already open, it does not jump anywhere. Is this a known issue?
I also tried to check the "check for file changes" box in Skim, and used \include commands instead of \input to include the chapters---just played around, but it doesn't help.
Cheers,
marius
Dear TextMate users,
I would like to customize the way in which "Typeset & View (PDF)" works. Under Bundles => Bundle Editor => Edit Commands, I added the line "rm -rf *.toc" to the "Typeset & View (PDF)"-code. However, this did not work. I realized that this is a ruby script (although I have never worked with ruby) and changed my code to "puts `rm -rf *.toc`". Now the .tex document is compiled, but the command does not seem to be executed. How can I add unix shell commands to "Typeset & View (PDF)" to be executed on command+R?
Many thanks,
Marius
Here is the content of "Typeset & View (PDF)":
#!/usr/bin/env ruby
# coding: utf-8
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/process"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/htmloutput"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/require_cmd"
# To enable the typesetting of unsaved documents, you must change the “Save” setting of
# this command to “Current File” and add the variable TM_LATEX_AUTOSAVE to TextMate's
# Shell Variables preferences. Be warned that your document must be encoded as UTF-8 if
# you excercise this option — becauseTextMate.save_current_document cannot know the file
# encoding you prefer.
TextMate.save_current_document unless ENV["TM_LATEX_AUTOSAVE"].nil?
TextMate.require_cmd("kpsewhich")
texMate = ENV["TM_BUNDLE_SUPPORT"] + "/bin/texMate.py"
engine_version = TextMate::Process.run(texMate, "version")
TextMate::HTMLOutput.show(:title => "Typesetting “#{ENV["TM_DISPLAYNAME"] || File.basename(ENV["TM_FILEPATH"])}”…", :sub_title => engine_version) do |io|
TextMate::Process.run(texMate, 'latex', '1', :interactive_input => false) do |line|
io << line
end
end
::Process.exit($?.exitstatus)
Dear TextMate Users,
I think I found a bug in LaTeX syntax highlight
Consider, for example:
\[
\begin{array}{l}
\;\{
\end{array}
\]
Lorem ...
In the above snippet of text the text after the math environment (i.e., \]) is in a math scope. The problem seems to be that the first line after \begin{array} starts with a tex command (i.e., \) and it contains a \{
(easy solution: remember to indent the first line of an array environment; I haven't had time to look at the latex grammar).
All the best
Guido
--
Guido Governatori
http://www.governatori.net/Textmate
in other words automate the process of automatically starting a new line after 80 characters.
I am sure there must be a setting somewhere .....
Thanks,
Christopher
I'm fairly new to mailing lists and was wondering what the standard is
for forming replies. I generally try to follow the reply direction that
the current thread is following but was wondering if there was a standard.
Do I form a reply at the bottom or the top?
also.
Do I include the immediate parent thing I'm replying to or the whole
history?
I knew this once, but can't find it now and it's driving me nuts. When I create a new bundle item it goes into "Steve King's Bundle" by default. I want to change which is the default bundle. What's the magic?
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com
I am running Textmate on Snow Leopard. I've got the Ruby on Rails bundle in
my ~/Library/Application Support/Textmate/Bundles directory. However,
Textmate does not seem to see it? Any ideas...thanks in advance
--
View this message in context: http://old.nabble.com/Problem-installing-Ruby-on-Rails-bundle-tp26780280p26…
Sent from the textmate users mailing list archive at Nabble.com.
I fired up Firefox (the command-line version, so I could specify -jssh and use watir) and found
the following complaint.
firefox-bin[1614:903] Can't open input server /Users/bryanloc/Library/InputManagers/Edit in TextMate
Looking in my console log, I find scads of messages to this effect.
Can anyone tell me how to fix this problem?
Thanks.
Bryan
In my project sometimes i get some emty lines with tabs or tabs, spaces after text
For example:
> for ($i=0; $i < ; $i++)
> {
>
> // ↑line with tab(s)
> //this is a line with space at the end
> }
So i made the regexp: (^[\t| ]+[\n]|[\t| ]+$)
Strange result is that it works when ⌘-f
But when pressing ⌘⇧-f it doesn't search (or won't find anything)
Am i doing something wrong?
Regards Jasper