Hi All,
I'm sure the printing will get improved in the future but for the
minute I find it a bit limited (font size too big etc).
I've setup a command in the text bundle using a2ps (you can get this
from darwin ports, probably fink and other places as well).
Save: Nothing
Command(s): a2ps --center-title=`basename "$TM_FILEPATH"` --font-size
8 --pretty-print --columns 1 -M A4 -R --line-numbers 5 -o - - |
ps2pdf14 -sPAPERSIZE=a4 - /tmp/textmate_print.pdf && open /tmp/
textmate_print.pdf
Input: "Selected Text" or "Document"
Output: Discard
Activation: Key Equivalent - "Command P"
This will create a pdf called /tmp/textmate_print.pdf, and opens it
in Preview (or acroread, or whatever your default pdf viewer is). If
your happy with it you can just hit Command P to print it.
At the minute this prints in font size 8, but thats easy to change,
it also prints in A4, if you change this you'll need to change both -
M option to a2ps and the -sPAPERSIZE option to ps2pdf
jebw
I'm trying to add a Delete command to the Subversion bundle. I've got
the basics working, but now I'm trying to make it look nice.
Here's the command as it is now:
require_cmd "${TM_SVN:=svn}" "If you have installed svn, then you
need to either update your <tt>PATH</tt> or set the <tt>TM_SVN</tt>
shell variable (e.g. in Preferences / Advanced)"
rv=`CocoaDialog textbox --title "Delete from Repository" --string-
output --no-newline \
--informative-text "These files will be scheduled for deletion
during the next commit." \
--text "${TM_SELECTED_FILES:-$TM_FILEPATH}" --button1 "Delete" --
button2 "Cancel"`
if [ "$rv" == "Delete" ]; then
eval "$TM_SVN" del "${TM_SELECTED_FILES:-$TM_FILEPATH}"
elif [ "$rv" == "No" ]; then
exit
elif [ "$rv" == "Cancel" ]; then
exit
fi
What I want is the list of files in the CocoaDialog textbox to be
newline-separated, and have the enclosing quotes removed (ideally,
the project base path as well). I don't have any bash-fu to figure
this out.
Help please?
Thanks,
Ken Scott
Hi,
I like using key commands for scrolling / reading. That is, not just
moving one line up/down, more like continuous movement vertically.
Navigation -> Scroll -> Line Up/Down
Question,
Using this command (while holding down / key repeat), firing a
shortcut makes the top-menu blink. So, when using it for continuos
scrolling it feels a bit sluggish due to this.
Also, when I've scrolled say 1 1/2 page, how do I center the cursor
on the visible area!?
Why,
I'm used to this from bbedit where you have ctrl alt and command +
arrows for scrolling in different speeds. Say ctrl-down = one line,
ctrl-alt-down = three lines, etc. Then when you see that line you
wanna edit, I use command-shift-J for moving the cursor -> "Go to
center line".
In bb I don't think the shortcuts for this is available in the main
menu, which makes them run without the menu-blink for each key repeat.
best
/David
Mark,
just open the LaTeX Bundle and edit the "Typeset & View" command,
everything needed is there. e.g. you could include a new variable for
your projects that gets used in this case and allows for more
flexibility than "hard-coding" it in the bundle itself.
If you think these may be useful additions to us Latextmaters, send
'em to this list as well!
Dan
Nice work on this feature Allan! I put together a (quick and dirty)
command for the AS bundle to extract the selected text to a new
function and re-indent it. Would this be useful to anyone else? I'll
commit it to the repo if there's any interest.
Ben
I'd personally be very interested. I just started doing a few simple
but much needed additions to the bundle as well (like folding blocks
for conditionals, do's etc.), but i'd rather save the time if
somebody already added the things that are needed. I think the
current bundle is great in terms of lowest-common denominator, and as
such it may be that people are opposed to expanding it to the point
where it becomes a matter of taste and style. But i guess you could
talk to the maintainer (who?) and see if he might be open to any of
your additions. In any case, I (and surely others) would love to take
a look at your enhanced bundle. @everybody, Is there a place where to
upload alternative bundles?
Sebastian
James Edward Gray II wrote:
> Hi all.
>
> I use TextMate for Ruby programming all day everyday
> (professionally). I just recently bought a new computer and am
> slowly migrating everything over. I wanted to rebuild my TextMate
> snippets and commands in the process, so I could reevaluate what
> I've created, fix minor annoyances I have found in usage, and
> improve on what I have created.
>
> I have a pretty large set of additions in my old Ruby bundle. I
> have tons of snippets for iterators, testing and common language
> constructs, a few handy commands (like switching { ... } to do ...
> end), and even snippets for many standard libraries (like
> YAML::dump/load and an OptionParser skeleton).
>
> My questions are:
>
> 1. Is there any interest in me providing these additions publicly?
> 2. Would if be allowed for me to add some or all of this to the
> default Ruby bundle?
>
> I figure I'm going to be entering all this again anyway. It
> doesn't matter to me if it's just for me or for all of us. I
> didn't know if there is some desire to keep the default bundles
> pretty small or anything though. Let me know if there's interest
> and, if so, how best to provide it.
>
> Thanks.
>
> James Edward Gray II
Hi all.
I use TextMate for Ruby programming all day everyday
(professionally). I just recently bought a new computer and am
slowly migrating everything over. I wanted to rebuild my TextMate
snippets and commands in the process, so I could reevaluate what I've
created, fix minor annoyances I have found in usage, and improve on
what I have created.
I have a pretty large set of additions in my old Ruby bundle. I have
tons of snippets for iterators, testing and common language
constructs, a few handy commands (like switching { ... } to do ...
end), and even snippets for many standard libraries (like YAML::dump/
load and an OptionParser skeleton).
My questions are:
1. Is there any interest in me providing these additions publicly?
2. Would if be allowed for me to add some or all of this to the
default Ruby bundle?
I figure I'm going to be entering all this again anyway. It doesn't
matter to me if it's just for me or for all of us. I didn't know if
there is some desire to keep the default bundles pretty small or
anything though. Let me know if there's interest and, if so, how
best to provide it.
Thanks.
James Edward Gray II
On Apr 2, 2006, at 18:42, Allan Odgaard wrote:
> On 2/4/2006, at 20:27, Michael Sheets wrote:
>
> > What you could do is move them to a custom bundle "Ruby James" or
> > similar then post the link on this list. Let people take a look. :)
>
> That sounds like a good idea. The Ruby bundle does IMHO need some
> clean-up before more stuff is added.
Fair enough, I will place my additions in a new bundle as I create
them and put it online for others to examine...
James Edward Gray II
All,
Sorry to bother the list with this stupid question, I know nothing
of RegEx and have been trying to grasp it, and the way it works in
TextMate. Basically for my needs all I need to figure out is how to do
if statements. Here is what I am trying to do:
Snippet:
function():$1 {
}
if $1 != Void, then put in a return statement like this:
function():Array {
return
}
Which I can add the variable name to return later.
Any help and I will be extremely grateful. Thanks for your time.
best,
Aaron Clinger
http://aaronclinger.com
There's a great site for a new web framework called SQL on Rails.
http://www2.sqlonrails.org
They even have an 8 minute screencast where they develop a full internet search
engine. The magic and power of the system is thanks to textmate snippets. Just
thought you all would enjoy spotting textmate in something this brilliant.
--clm100