i've managed to screw up some of the default text-mate bundles.
is there an easy way to revert to the default shipping items?
the blog implies that diffs from the defaults are kept in a specific
place, and removing these would revert. but that didnt seem to be the
case for me...
tx,
/dc
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
i had to remove the OS-X included broken version of Ruby, and now get
this error message when using certain commands like comment out block
in textmate :
env: ruby: No such file or directory
so i assume TM is piping the text thru a ruby script to do these operations.
so, how do i tell textmate where to look for Ruby?
all systems are go in the shell ::
dc@bb > which ruby
/usr/local/bin/ruby
dc@bb > ruby --version
ruby 1.8.5 (2006-08-25) [i686-darwin8.6.2]
for now i did a hack to symlink from the apple default location ( usr/bin )
to where i have ruby185 installed, but this doesnt seem optimal:
dc@bb /usr/bin > sudo ln -s /usr/local/bin/ruby ruby
I do have a .bash_login
which textmate -should- source to create a shell environment before
any scripts are run?
>> Instead TextMate runs a custom script (named bash_init.sh located
in $TM_SUPPORT_PATH/lib) before executing the actual shell command(s).
This custom script contains the following code: <<
thanks for any tips.
/dc
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
Is anyone interested in a language grammar for the DOT language?
I have created a decent starting point and am looking for suggestions
as to what is lacking so far.
Elio Grieco
Here's what I want to do:
- select a function name
- hit hotkey to jump to the next place that selected piece of text is
used
the way I have to do it now is
1. select text
2. cmd+e
3. cmd+g
I just want steps 2 and 3 to become a single step. I was just hoping
I missed the hotkey somewhere.
Hi there
I hope someone can help me out.
I wanted to use TextMate for blogging to my Weblogs. One that is important
for me, since i am an artist, is that i can post to MySpace easily. How can
i achieve this?
Thanks for your help!
--
View this message in context: http://www.nabble.com/Blogging-to-MySpace-tf3121719.html#a8649255
Sent from the textmate users mailing list archive at Nabble.com.
I have released a combination of TextMate commands and a Wordpress
plugin for Wordpress 2.1 that allows for better handling of tags when
blogging from TextMate. [1]
The plugin, UTW-RPC, overrides a few functions in the xmlrpc.php
file, implementing Robin Lu’s hack[2] for Ecto and Ultimate Tag
Warrior. This automatically will make the Keywords header function
with TextMate and allow the Keywords: field to insert and display
Ultimate Tag Warrior tags from posts. (It will also provide the same
functionality for all other blogging clients that recognize the
mt_keywords header).
The plugin also adds a hook, metaweblog.getTags, that the TextMate
commands use to retrieve the tags from your blog and provide various
functions with. The commands are rudimentary at this point and are
provided as proof of concept. I could use some serious help with
implementing a fuzzy search on the autotag command.
Thanks,
Brett
[1]http://blog.circlesixdesign.com/2007/01/26/utw-rpc-10/
[2]http://www.robinlu.com/blog/archives/57
Hi all. I'm trying to set a $TM_ variable in new template to get the
project name (without filepath and extension) but I cannot find a way
to do so. I searched through many messages in this list but I cannot
find any answer to my question.
Setting ${TM_PROJECT_FILEPATH} in the template file configurator,
creating the new template it will output:
/Users/webrevol/Desktop/test.tmproj
Instead of:
/Users/webrevol/Desktop/test.tmproj
how can I get only the filename without extension?
test
Anybody? Many thanks in advance.
…when I can’t post to the list anymore.
Messages kept bouncing the past days (took them about three days,
either). Forced me to resubscribe. So consider this a “test” and
apologies for it.
Soryu.
Please ignore this mail. I’m having trouble posting to the list from
this email address. Hope this is resolved now. If not, you won’t even
see this, so why are you complaining, anyway? ;)
Soryu.
hi,
I am wondering if anyone has developed something to support named bookmarks,
e.g. within a project context.
I found Haris' blog post on a way to support global bookmarking:
<
http://skiadas.dcostanet.net/afterthought/2006/06/09/global-textmate-bookma…
>
Thanks-- that is a useful start! The HTML/link interface works well. I was
thinking of messing with it further to support naming the bookmarks that are
written to the file, and maybe associating them with a project name.
(However, since I've not used Ruby and am SUPPOSED to be writing a paper at
the moment it might be a while until I get to it.)
Has anyone else done something like this already? Apologies if I missed it,
nothing was obvious in the bundle list etc.
-Amy
On 1/25/07, Sean Schertell <sean(a)datafly.net> wrote:
> Another great version control system is Mercurial (also called "hg").
> It's also similar to CVS, SVN but lighter-weight and arguably more
> reliable.
>
> The OpenSolaris project and many other major projects have switched
> over to Mercurial full-time so it's not really a totally left-field
> system, and it's gaining traction fast.
>
> Definitely worth a look:
> http://www.selenic.com/mercurial/wiki/
>
> There's even a TM bundle for it :-)
>
> Sean
>
Yes, Mercurial is definitely worth a look.
One of its advantage over CVS or svn is that it is a distributed
system, that means you can work and commit locally before pushing to
the remote repository. It's easier to use locally too, as the
repository and the working copy are in the same place, you can have
everything in one folder.
After installing Mercurial and the bundle, open a folder in TM, hit
ctrl + shift + M and choose "init" then "AddRemove" to add all the
files (eventually create a .hgignore file before to exclude some
files) then "commit" and BOOM ;), your folder is under revision
control.
I made the Mercurial bundle as it is now. I plan to work more on it
when I have the time, but I think it's already really usable now.
Please, give me feedback if you use it. I plan to make a
tutorial/screencast about it one day too.
--
FredB
I'm trying to write a macro or command (not sure which will be
better) for doing a word count on LaTeX documents. The basic task is
simple enough: I want to run the command "ps2ascii [file.pdf] | wc"
on file.tex (where file.tex is the current file I'm working on) (I've
tested ps2ascii and it works fine for the types of documents I'll be
writing).
However, I also want to strip the footnotes from my word count. To
do so, I've defined the footnotes with a custom command that I can
redefine as empty:
\newcommand{\fn}[1]{\footnote{#1}}
% \renewcommand{\fn}[1]{}
So, the whole task I need to do is:
1) Uncomment the \renewcommand line
2) Re-run LaTex
3) Run ps2ascii | wc on the generated .pdf
4) Display the output of that command as a ToolTip
5) Re-comment the \renewcommand line (so the file is back in its
original state)
Unfortunately, I don't know how to string these things together, nor
how to get the argument for the ps2ascii command from the current
filename variable TM_FILENAME (i.e., how to substitute .pdf
for .tex). I can add unique comments to the end of the \renewcommand
line so it can be picked out by a regex search, if that helps.
Suggestions? I'm also open to other ideas for getting the same end
result, if there's an easier way.
Colin Hahn
»Geben Sie mir Kaffee, dann mache ich Phänomenologie daraus.«
"Give me my coffee so that I can make phenomenology out of it." --
Edmund Husserl
While writing a latex document using the array package, I noticed that
the line
\newcolumntype{R}{>{$}r<{$}}
confuses TextMate into displaying all following lines as if they were in
math mode.
Any chance there's an easy fix?
Chris
Hello all,
I am trying to find information in regards of how to copy and paste text in
a new line, for example:
before snippet:
myText
after snippet:
myText
theText = myText
currently I am able to create a snippet that will copy the selected word and
create a new line like this:
theText = $TM_SELECTED_TEXT
but of course this replaces the selected text so I did the following
$TM_SELECTED_TEXT
theText = $TM_SELECTED_TEXT
and this works great if there is only one line of text but lets say I need
to select a certain word in the middle of a pharragraph then i get the
following
before snippet:
first word theText second word
after snippet:
first word theText theText = theText second word
as you can tell the snippet inserts the comman din the middle of the
sentence, is there a way to avoid that?
TIA
Helmut
Attached is jpg of what Markdown looks like in Preview
(markdown1.jpg) and what the same file looks like in Print Preview
(markdown2.jpg).
Excuse my ignorance.
Why does the Print Preview change the Markdown Preview fonts? I
prefer the markdown Preview look.
Is there a way to have the Print Preview print exactly what is viewed
in the the Markdown Preview?
Thank you.
Can anyone advise on how best to do interprocess communication with
TextMate:
I'd like to be able to write a script (or whatever) that will tell
TextMate to select a particular line in the front most document.
AppleScript would be the perfect fit here, but I get the feeling this
isn't possible with TextMate's current scriptability. Am I wrong?
Any other ideas on how to achieve this effect?
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
> Yeah, that's because folding patterns aren't currently
> sophisticated enough to
> allow folding for markdown lists, sections (between headings),
> quotations, etc.
> Hopefully this will be different in TextMate 2.0. We'll have to
> see how Allan
> decides to make folding work. If it's based on scope, I hope we'll
> be able to
> fold all of the above.
>
> If you want to have some other folding mechanism, you could make
> the folding
> pattern more complicated, but it would require mirrored beginning
> and ending
> markers of some sort.
Would it be possible to set it up so that two returns mark the end of
a section to be folded? I ask be cause I'm in the habit of using two
returns anyway to visually signal the end of a heading and if it were
possible to set this up via the Bundle editor, my life would be good.
Example:
# Heading
Some text here.
* Maybe a list.
More text here.
# Another Heading.
Hello everybody,
I just wanted to share this experience, to find out if someone else
can report this TextMate behaviour.
In a LateX-document I want to write the following
\emph{delay}
what comes out 90% of the time is something like this:
\emph{ldeay}.
At first I thought I just cannot control what my fingers are doing,
but having tried out \emph{de}
while watching on my fingers (getting \emph{ed}) I thought it might
be something related to
TextMate or my setup.
This is what I type:
cmd-i, d,e
This is what I use:
pbook 12" 1GHz
Mac OS X 10.4.8
TextMate Version 1.5.4 (1349)
Can someone report similar behaviour?
Can someone help?
Thanks
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
(I just joined this list, so I can't properly reply to the original message)...
In the earlier thread about MacFUSE and sshfs, Michael Reece mentioned
that his files get written with a "Dec 31 1969" modification time.
I've seen the same problem. I've only seen this problem when using
sshfs with TextMate. If I touch the file outside of TM, the timestamp
is updated properly.
sshfs works fantastic with TextMate otherwise, so I hope there's a
solution to this.
Kevin
Hi,
It's been bugging me for a while: "Shift Right" will leave all lines
consisting only of whitespace completely blank, even removing
existing whitespace.
That really bugged me, so I tried to write my own "Shift Right"
command to replace the built-in one. But it seems that the lines my
code gets are already stripped of 'trailing whitespace'.
Any idea how I can tell TM to leave my whitespace alone?
Thanks
Gerd
Hi all,
I have the following document preamble, and I want to compile in
PDFLaTeX, but TM keeps falling back to XeTeXk, and I can't figure out
why. Any suggestions?
-N
% !TEX TS-program = pdflatex
% untitled
\documentclass[12pt,english]{article}
\usepackage{babel}
\usepackage{pdfsync}
\usepackage{amsmath, amsthm, amssymb}
%\usepackage{palatino,eulervm}
\usepackage{fullpage}
\usepackage{setspace}
\usepackage{fancyhdr}
% Surround parts of graphics with box
\usepackage{boxedminipage}
% This is now the recommended way for checking for PDFLaTeX:
\usepackage{ifpdf}
%\newif\ifpdf
%\ifx\pdfoutput\undefined
%\pdffalse % we are not running PDFLaTeX
%\else
%\pdfoutput=1 % we are running PDFLaTeX
%\pdftrue
%\fi
\ifpdf
\usepackage[pdftex]{graphicx} \else
\usepackage{graphicx} \fi
%% LaTeX Preamble - Common packages
\usepackage[pdftex,colorlinks,breaklinks,bookmarks]{hyperref} % PDF
hyperlinks, with coloured links
\definecolor{dullmagenta}{rgb}{0.4,0,0.4} % #660066
\definecolor{darkblue}{rgb}{0,0,0.4}
\hypersetup{linkcolor=red,citecolor=blue,filecolor=dullmagenta,urlcolor=darkblue}
% coloured links
% \hypersetup{linkcolor=black,citecolor=black,filecolor=black,urlcolor=black}
% black links, for printed output
%\usepackage{epstopdf} % to include .eps graphics files with pdfLaTeX
\usepackage{natbib}
\newtheorem{hypothesis}{Hypothesis}
\newcommand{\superscript}[1]{\ensuremath{^\textrm{#1}}}
\newcommand{\subscript}[1]{\ensuremath{_\textrm{#1}}}
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
I'm working on an action to allow me to quickly open a url in textmate:
res=$(CocoaDialog inputbox --title "Open URL" \
--informative-text "URL:" \
--button1 "Okay" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
res=$(tail -n1 <<<"$res")
/usr/bin/env ruby -e "require 'net/http';require 'uri';Net::HTTP.get_print
URI.parse('$res')" | mate
Basically, I'm using ruby to grab the page and output the content to stdout,
then piping that to TextMate. If i call this from the command line, it
works perfectly. problem is, if i call this as an command from within
textmate, it completely freezed the app. The page does open, but tm becomes
completely unresponsive and I have to quit and restart. any ideas what I'm
doing wrong?
thanks
-dave
Hello all
I am new to Textmate and this list but so far really impressed by the
program and the people posting here. My background is in molecular
biology and I will mostly use TM for text (MultiMarkdown is appealing
to me) not so much code.
Although I am slowly making my way through the manual I have not found
anything that would allow me to compare two textfiles and highlight
changes between them. "Diff" is not what I am loooking for because it
is based on lines. Writing manuscripts I don't use carriage returns so
a single difference in a paragraph will highlight the whole thing not
just the difference only.
FileMerge (in the Apple developer tools) is much closer and also
visually intuitive, but getting long in the teeth and having
difficulties with UTF-8.
Is there a Textmate bundle that will do this kind of comparison for me?
My sincere apologies if this question has been answered already,
Christoph