This isn't really directly related to TextMate at all, but... :)
I've been doing some automation work to help make me all the more efficient
in various ways. That's generally involving writing up scripts glued to
various places-- and I've recently sort of wanted something like tm_dialog
to integrate with them, entirely outside of TextMate. I mean, I use
tm_dialog with a couple custom bundles for certain purposes but I don't
really "live" in TextMate so much.
Anyone know if there's a way to poke tm_dialog into just doing its thing
/outside/ of TextMate? Or, something else out there which fulfills a similar
use? I saw CocoaDialogs, but what I loved about tm_dialog was that it could
run custom nib's.
Anyhoo. Sorry for the OT post. =)
--Stephen
I caught this on a thread in reddit I think. Watch the animated image:
http://code-and-hacks.blogspot.com/2009/06/stealing-from-padre-for-vim.html
Something like this would be very cool. I know I can do it with find
and replace, but having a command that was aware of the scope you are
in, and only altering the variables you want within that scope, and
narrowed to that specific variable would be super nice.
Not something I would use all the time, but I have a habit of slamming
out some pretty off the top of my head code. To be able to go back,
and give nice logical well thought names, and have those changes not
break my code, would be a great addition.
Anyone cone close to this in TextMate today?
--
Scott * If you contact me off list replace talklists@ with scott@ *
On Jun 22, 2009, at 8:00 AM, textmate-request(a)lists.macromates.com
wrote:
> Personally I'd be in favor of simply using rhino as the js script
> runner. Just need to include it in your bundle of the shared TM
> support folder.
>
> ?Thomas Aylott / subtleGradient
Hi Thomas,
As a JavaScript devotee, I'd love to do this. I've installed Rhino and
got it running in
~/Library/Java/Extensions
per instructions found at
http://peter.michaux.ca/articles/installing-rhino-on-os-x
When I open ~/Library/Application Support/TextMate, however, I just
see the Bundles, Plugins, Pristine Copy, and Themes folders. Do I just
copy Rhino's js.jar file to a new "Extensions" directory?
Presumably I would also need to start a command with a shebang line to
tell TextMate I'm using a particular scripting language, like
#!/usr/bin/env perl
What would be the equivalent path for Rhino's JavaScript?
Thanks in advance for any guidance!
jon
/RR (http://responserequested.com)
______________________________
Still Water--what networks need to thrive.
http://newmedia.umaine.edu/stillwater/
Wherever I can I have switched to git. When switching branches (a
common thing with git), git replaces files 'in place'.
That has some side effects with TM:
- when I switch branches (say from the stable to the development
branch) and forget to close the project window first, TM happily
overwrites the project file. Thus I loose all the changes (eg new
classes added etc). Ideally TM should recognize that the project file
changed and reload it.
- Transitory information: TM seems to store transitory information
(window position or some such) in the project file, thus dirtying my
project. I'd prefer that TM would write that kind of info into a
separate file, so I can chose to track it or not.
How about some TM2 teasers?
Thanks
Gerd
The diff folding of blocks also folds away the first three lines of
the next block, for instance:
diff --git a/app/models/questionnaire.rb b/app/models/questionnaire.rb
index 14284d6..b9ee4f5 100644
--- a/app/models/questionnaire.rb
is also folded away if I fold the block before it.
It seems to me that something is going wrong here.
This diff was generated using 'git diff', but can also be created
using 'diff -u'.
Hope you can fix this.
Cheers,
Samuel
Hi All,
I’ve started using the Create HTML from Document command in the
TextMate bundle, but for small snippets the code it produces is
slightly weighty. I came across a post by Scott Stevenson:
http://theocacao.com/document.page/517
in which he mentioned modifying the command to only add class names
for the scopes that the current theme had styling for, eliminating
most of the unused class names. Unfortunately he hasn’t published his
modifications. How to do this is beyond me, so I wonder if anyone who
has made improvements to this command (to remove unused class names
and/or CSS rules) would care to share. Alternatively if there’s a
tool that would do this please let me know (I couldn’t see suitable
options in HTML Tidy’s config).
Thanks in advance
peace - oli
I have found that "Edit in TextMate" no longer works on 10.4.11 (not
sure about Leopard) with any build after 1498 -- it fails silently
although the key press gets picked up by Key Codes. Re-installing 1498
gets it working again. Anyone else found this?
Hi,
The DokuWiki bundle does highlight <del>foo</del> markups only if they
are at the beginning of a line or have max 2 spaces. I looked into the
bundle, but I can't find why that happens.
Wolfgang
Hello,
Does Textmate's code folding have limitations when a method declaration
is split across lines? Sometimes I have long parameter lists which
necessitate this style:
class MyClass():
def __init__(self,
var1=var1Default,
var2=var2Default,
var3=var3Default,
var4=var4Default,
var5=var5Default,
var6=var6Default,
var7=var7Default,
var8=var8Default):
pass
def method1(self):
pass
def method2(self):
pass
def method3(self):
pass
When I format the __init__() method above across line boundaries, I lose
code folding. Bummer. I know. I could use a work-around idea if this is
the way it is. :)
Cheers!
AZ
Any chance of a intel only bin of textmate? I've noticed a hell of a
difference in pretty much every app bar textmate in snow leopard.
If you could spit out an intel binary that would be great!
Many thanks
-Lawrence
Hi, there
I was doing my test programming in objective-c and i was doing some UI
work with interface builder, but whatever I did in the header file I
added, interface uilder does not recognize it. unless i open everything
in Xcode, and did the same thing, interface builder recognized it
immediately.
Is there anything I can do to get around that?
Cheers
Allen
Will having multiple preference files scoped to the same scope cause
any conflicts?
I've written a custom print command, and want each supported scope to
have a shell Variable,
specifying how to syntax-highlight the file.
-------------------------------------------
Engineers supporting greenpeace: Comparable to Afroamericans who wants
to join the Ku Klux Klan
----------------------------------------
Tommy Nordgren
tommy.nordgren(a)comhem.se
During my "gentle" introduction to Terminal in OSX, I was introduced to perl.
perl #!ed my brain so hard %-|, that without much introduction, I chose to
learn python because I thought it gave so much better ! for the $ (bang for
the buck) without help from hard core programmers. =^D
Now am trying to learn textmate and got stumbled on Ruby.
Sure it sounds a lot of fun to learn a new language.
But is there a way to use UI in python scripts within TM?
May be my question is a bit precocious because I just found a textmate
podcast series on itunes that has 2 podcasts on dialog2 in TM.
Oliver Taylor-2 wrote:
>
> On Jun 1, 2009, at 5:12 PM, MDX-LE wrote:
>
>> Could someone tell me how to install dialog2 available at
>> http://macromates.com/svn/Bundles/branches/WIP/Tools/Dialog2/
>> Dialog2 @
>> macromates.com
>
> I believe Dialog has been renamed UI and is already included in
> TextMate at TextMate.app/Contents/SharedSupport/Support/lib/ui.rb
>
> You can call UI with something like: require ENV['TM_SUPPORT_PATH'] +
> '/lib/ui.rb'
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
>
--
View this message in context: http://www.nabble.com/newbie-question..-How-compile-source-code-for-dialog2…
Sent from the textmate users mailing list archive at Nabble.com.
As of late (last month or so), I keep getting this error message every
time I try to run basic bundle operations that use ruby under the
hood. A typical example is "comment out" (apple-slash) (in C++ or
Latex bundle) that replaces the corresponding text section with the
error message.
I read the posts on this problem that date back to 2006 and could not
solve the problem. I am running the latest version of Textmare
(Version 1.5.8 (1498)) and a very recent version of ruby.
'which ruby' followed by Ctrl-r yields:
/usr/local/bin/ruby
ls -lh /usr/local/bin/ruby gives me:
-rwxr-xr-x 1 root wheel 13K Jun 4 15:04 /usr/local/bin/ruby
and /usr/local/bin/ruby -v produces:
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.7.0]
I tried everything I could think of, including reinstalling Textmate,
reinstalling ruby, and setting explicitely the TM_RUBY shell variable
but to no avail.
Thanks in advance for any insight into the cause of this problem.
Xavier
This hit the front page of reddit today, thought it would be good to
let the list know about it. I found it to be a well written piece and
keeps me happy moving forward.
http://blog.macromates.com/2009/working-on-it/
There are a good deal of comments on the blog as well as reddit about
the no pay for version 2 issue. I am more or less in the camp of
"charge for version 2", especially if the lack of a charge is in any
way adding to a lack of motivation to get 2 out the door.
That being said, I do not believe it would be wise to go against a
statement made in the past that version 2 would be a free upgrade.
Remember, there is nothing stopping any of us from just buying version
2 outright when it comes out if that is the direction you want to go in.
This may skew stats a little on new users, versus upgrade users which
could be undesirable. My suggestion, when this day comes, simply make
version two require a checkout process, to get a new serial, and
charge $0.00 to whatever you feel it is worth.
Personally, if version 2 solves a good deal of my needs that are
lacking in version 1, I will be donating one way or another, $100.00
for my copy. I pay my mortgage, dinners, clothes, and the rest of my
life as a result of TextMate, $100.00 is a small price to pay for
making it easier for me to make a living.
Thank you for coming forward with a new plan to keep users updated on
the progress. It has been long overdue, though users are generally
forgiving. I also feel, the most vocal, that make a lot of noise, are
probably a very small percentage of the true count of the user base.
Yay for 2.0 news! Very nice to know at least one person is using 2.0
on a daily basis as well.
Have a nice end of the weekend to you all.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hi folks. I'm starting to get into javascript, and am having problems
with the Reformat Document (Beautify) command.
I want soft tabs of 2 spaces. I read in a .js file, with the 2 space
indentation, and call the Reformat Document. It alas, does not use
the current 2 space soft tabs, but defaults to 4.
Yet if I edit the file, the auto indent correctly uses the 2 space
indent.
So clearly the tab setting I use (bottom of textmate, tabs menu) is
used by the auto-indent, but apparently not for Reformat Document.
What am I doing wrong?! Is there a textmate/javascript variable or
preference that needs to be set? Should the tabs menu control both
the auto-indent and Reformat?
-- Owen
Hi everyone,
I just upgraded to SnowLeopard GM1 and cmd+left/right no longer seem
to go to the beginning/end of lines. I'm not sure if this is Apple's
fault or TextMate's fault, but other apps that use standard Cocoa
editing controls in GM1 (i.e. TextEdit) seem to work fine with
cmd+left/right. Is anyone else experiencing this?
I know you can use ctrl+a/e to get to the beginning and end of lines,
but I prefer to use the cursor keys.
Thanks,
Ben
I know it's silly but I'd rather keep my serial number that shows I've
been using TM from the early beginning... So I'd prefer a donation
option or some sort of custom upgrade path than buying a brand new
license...
I said it was silly!
On Jun 18, 2009, at 8:00 AM, textmate-request(a)lists.macromates.com
wrote:
> As I have mentioned, there will be nothing preventing any if us from
> ignoring the free upgrade option and just buying version 2 outright.
> No donation button needed.
Hi there!
Is there any way in TextMate to navigate back to the previous cursor
position? In VIM I use "CTRL-O" to go back and "TAB" to go forward in
command mode.
Thanks a lot in advance!
Regards,
Alex
--
View this message in context: http://www.nabble.com/Is-it-possible-to-go-back--tp24074243p24074243.html
Sent from the textmate users mailing list archive at Nabble.com.
Dear All,
Many years ago, in a state of innocence, I hard-coded my LaTeX quotation marks.
> Thus I have text that `looks like this'.
I now find that it would have been MUCH better (if not essential) to have done:
> Thus I have text that \enquote{looks like this}
I can't do a search and replace, because there is no algorithm that
will get the quotes right, but I would like to be able to do the
following:
1. Select the text that needs changing with the mouse
2. Hit a key and have the text changed to the \enquote version.
I feel like this ought to be the sort of thing that TextMate excels
at. How should I do it?
Very best wishes,
Nicholas
Hi all,
I understand from the text accompanying the font "Anonymous Pro"
<http://www.ms-studio.com/FontSales/anonymouspro.html> that we should
expect a new build which will take care of some problems associated with
TTF font files with included bitmaps.
Any prognosis on when to expect this?
Andrew
Hi,
I tried to use
\usepackage{epstopdf}
to convert the eps into pdf files on the fly. But nothing is created
during the compilation process. I only get the error message that the
pdf-file could not be found.
How could I get the "epstopdf" to work?
Thanks
Christian
Dear TextMate folks,
Is there any way to invoke the "Create HTML from Document with line
numbers" command on a source file from the command line? I'd like to
be able to write a shell script to take several source files and
pretty-print them into HTML.
Alternately, is there any other way to automate the process of taking
a number of source files and creating corresponding HTML files (e.g.,
with Applescript)?
Thanks,
Lorin
I have a Ruby code project with several TODO comments in it. When I run the
TODO list command, the bundle displays an empty list.
If I open one of the Ruby source files in the project by itself, the TODO
bundle does list to TODO items it contains. Presumably the Bundle doesn't
like the way I have my project set up. I have *.rb source files in the
standard Ruby gem directory structure (i.e. in lib, test, bin
subdirectories). I manually add all files to the project (i.e. I don't have
Textmate automatically import them.) I have created lib, test, and bin
groups in the project. I have tried highlighting various collections of
items in the sidebar when running the show TODO list command to no avail.
Any suggestions as to what is wrong?
--
W.P. McNeill
http://staff.washington.edu/billmcn/index.shtml
Sent from Seattle, WA, United States
Using the bundle to write my thesis. Fantastic work; thanks for all
who contributed.
Just having one problem. I have my TM_LATEX_MASTER variable set to
"thesismaster.tex", i.e a relative path to the current project
directory. I do this because I sync my thesis folder using Dropbox,
and work on another computer occasionally. This process works for
typeset and view, i.e. it will compile thesismaster.tex even if I am
editing a different file; but watch document will not work, it keeps
complaining that there is no "/" in my file path. If I make the file
path absolute, i.e. /Users/name/Dropbox/thesismaster.tex etc, then it
works. But obviously, won't work on my other computer because I have a
different username. Using ~ doesn't work for the file path in textmate
seemingly.
Anyone have any ideas?
Thanks.