I've been trying to get the Execute line command working in the Python
Bundle. I'm running Python 2.6.1 installed from Macports, latest
cutting edge TextMate, and the latest Python bundles. Each time I try
to run a line I get this error:
env: python: Permission denied
Any help would be appreciated,
Regards,
Mark P
Hi all,
I'm new to TextMate for Latex (and actually I'm new to Mac!) so excuse me if
my question is "stupid". I've been searching for an answer to my question in
the net for a lot but I didn't find anything.
Before switching to TextMate I tried TexShop and I really like its Latex
Panel (under the Window menu) because it helps you when you don't remember a
mathematical symbol or something like that. My question is: does it exist
something similar in TextMate? I like TextMate for the project option and
the tab navigation but I miss the Latex panel and I can't prefer any of the
2 editors. What's your opinion?
Thank you very much for your help, I really appreciate it.
Michela
--
View this message in context: http://www.nabble.com/Latex-facilities-tp21564371p21564371.html
Sent from the textmate users mailing list archive at Nabble.com.
hello everyone, I've just created a simple bundle, that is really just
a proof-of-concept.
check it out here: http://github.com/amiel/fuzzyfilefinder.tmbundle/tree/master
the idea is to use Jamis Buck's FuzzyFileFinder to find files instead
of the basic ⌘T file finder
what it does different, is gives you the ability to scope the file you
are looking for by directory
and if you've ever worked on a rails project with over 20
show.html.erb files (or whatever)
you'll see why this is useful
however, this bundle isn’t quite as useful as TextMate’s ⌘T as it
is not integrated enough with TextMate.
I’m hoping that somebody will be interested in rewriting this to work
with Dialog2.
let me know what you think,
I'll be hanging out the next couple of days on irc.freenode.net
#textmate as <amiel>
-amiel
Amiel Martin
VP Engineering
http://tatango.com
amiel(a)tatango.com
http://twitter.com/tatango_amielhttp://github.com/amiel
I'm probably missing something simple, but a few google
searches of the web and the mailing list didn't solve it.
How can I provide command line arguments for something
like a simple Ruby script? Is this possible? I thought I
remembered hearing something like this was possible.
Thanks,
Joseph Pecoraro
A little thing a little bit annoying is when I reach the end of the file
during programming.
I use very often to crtl-l to return at the middle of the file but when I
reach the end of the file it doesn't work (of course).
I sometimes solve putting many blanks line at the and adding new lines with
ctrl-o, but is't not very comfortable..
Are there other ways??
--
View this message in context: http://www.nabble.com/End-of-screen-tp21319865p21319865.html
Sent from the textmate users mailing list archive at Nabble.com.
CURRENT SITUATION: "Evaluate Line / Selection" barfs on lines like this
25/10 = 2.5
PROBLEM: This means the user has to manually delete the "= nnnnn" if
they wish to reevaluate the line
SUGGESTION: change the command to overwrite "( = [-0-9\.]+)" with the
new result.
I don't speak perl, but this is the bit that would like changing
printf " = %s" `{ tr -d ,; echo; } | bc -l`| perl -pe 's/(\.[^0]+)0+$|
\.0+$/$1/'
Bit early for xmas, but it would be great if a currency- and
formatting-friendly command was available, i.e., one which would be
happy to take
$250,000*12.5%
see "250000*12.5"
and return "$250,000*12.5% = $3,125,000"
Hi,
I'm trying out the Almost Plain Text (APT) bundle. It has snippets and
commands, but for some reason it doesn't do syntax highlighting. This
is strange because the bundle already defines the regex for some scopes:
http://macromates.com/svn/Bundles/trunk/Review/Bundles/Almost%20Plain%20Tex…
I want to try to finish the work and add syntax highlighting support
myself, but I'm not sure where to begin. For instance, how would I
make the "comment.line.tilde.apt" patten be highlighted by TextMate as
a comment? Likewise, how would I make "markup.bold.inline.apt" appear
in bold?
Thanks,
Trevor
Hello,
I have a problem with the "Documentation for word" command in the Ruby
bundle :
Some times, there is multiple entry with the same name (for example :
let's try find_command), then there is a pop-up menu listing the
different matches (wich is fine). But if I chose any item of the list,
I just get back to the same menu, again and again.
I looked the linked_ri.rb script, but did not find anything. Anyone
have an idea ?
Thanks,
David
Hi all,
I'm writing a macro right now and I'd like Textmate to save the document
when the macro is finished running. Unfortunately, when I save the document
while the macro is recording, the save operation is not recorded. Any ideas?
Thanks,
Michael
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings! I tried to install the bundles for R, SWeave, and Make
based on the instructions on
http://macromates.com/textmate/manual/bundles#installing_a_bundle. But
I do not see them in Textmate even after restarting the program. I can
confirm that the bundles were downloaded and placed in
/Library/Application\ Support/TextMate/Bundles.
Any thoughts?
Many thanks in advance for your assistance,
Kristen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkluE1wACgkQVEgA12HkABWangCfVp9SaLnAXHJqXOtnPlYOYE0G
PlEAnjxF4zfydKzGolYIfKZjpkfziyph
=Ucjs
-----END PGP SIGNATURE-----
Hello,
TextMate has a nice feature for people who want to use projects: when you
open several files, it opens them in a single window with a drawer.
But when I want to work with several files, not in a project but in separate
windows, what can I do? Do I need to open them one by one? It is the only
solution I found, and it's a bit irritating, so please help.
I didn't find the option in the Prefs window, so if I missed something, if
you can show me a hidden pref or a plugin for this, I'll appreciate. Thanks!
--
View this message in context: http://www.nabble.com/How-to-open-in-separate-windows--tp21454114p21454114.…
Sent from the textmate users mailing list archive at Nabble.com.
Works better with TM_RUBY set.
Thanks,
Jean-Michel
On Wed, Jan 14, 2009 at 3:29 AM, <textmate->
> Message: 1
> Date: Tue, 13 Jan 2009 10:14:14 -0800
> From: Jean-Michel Esnault <jesnault(a)gmail.com>
> Subject: [TxMt] plagued with invalid multibyte char (US-ASCII) since
> moving to ruby 1.9.1
> To: textmate(a)lists.macromates.com
> Message-ID:
> <2eef5a030901131014o1d7dab46tcbeef14e033c57a8(a)mail.gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> Hi,
>
> I got all kinds of invalid multibyte char (US-ASCII) since I moved to
> ruby 1.9.1.
> Not sure how to fix these, any help much appreciated.
>
> Show TODO List:
>
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:27:in
> `require': /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:44:
> invalid multibyte char (US-ASCII) (SyntaxError)
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:43:
> invalid multibyte char (US-ASCII)
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:43:
> syntax error, unexpected $end, expecting '}' install ?#{command}?. If
> you kno... ^ from
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:27:in
> `' from ruby:0:in `require'
>
> Invoking rake from TextMate:
>
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:4:in
> `require': /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
> invalid multibyte char (US-ASCII) (SyntaxError)
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
> invalid multibyte char (US-ASCII)
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
> syntax error, unexpected $end, expecting ')' ...
> #{e.message.sub(/`(\w+)'/, ''\1'').sub(/ -- /, ' ? ')... ... ^ from
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:4:in
> `'
>
> Thanks
> Jean-Michel
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 13 Jan 2009 10:25:37 -0800
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: plagued with invalid multibyte char (US-ASCII)
> since moving to ruby 1.9.1
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <9CBC6686-FDCF-46DB-A04B-80055FC47E4F(a)rosiba.com>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
> delsp=yes
>
> On Jan 13, 2009, at 10:14 AM, Jean-Michel Esnault wrote:
>
>> Hi,
>>
>> I got all kinds of invalid multibyte char (US-ASCII) since I moved to
>> ruby 1.9.1.
>> Not sure how to fix these, any help much appreciated.
>
> TextMate commands aren't yet compatible with Ruby 1.9. You can still
> install Ruby 1.9, just install it somewhere so that the system ruby is
> the first thing on the path. You can also use ruby1.9 with the Ruby
> bundle by setting TM_RUBY to the path of the ruby executable you'd
> like to use.
>
> ?Alex
>
> ------------------------------
>
> Message: 3
> Date: Tue, 13 Jan 2009 12:52:18 -0600
> From: James Gray <james(a)grayproductions.net>
> Subject: [TxMt] Re: plagued with invalid multibyte char (US-ASCII)
> since moving to ruby 1.9.1
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <3AA8732E-67A1-432E-A184-000E68BF473F(a)grayproductions.net>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On Jan 13, 2009, at 12:25 PM, Alex Ross wrote:
>
>> On Jan 13, 2009, at 10:14 AM, Jean-Michel Esnault wrote:
>>
>>> Hi,
>>>
>>> I got all kinds of invalid multibyte char (US-ASCII) since I moved
>>> to
>>> ruby 1.9.1.
>>> Not sure how to fix these, any help much appreciated.
>>
>> TextMate commands aren't yet compatible with Ruby 1.9.
>
> Actually, I've been working on this with the help of Dave Thomas. I
> believe we have most of the commands running now.
>
> You can checkout the latest bundles to get the updates:
>
> http://manual.macromates.com/en/bundles.html#getting_more_bundles
>
> James Edward Gray II
>
Hi everyone,
I recently have run into troubles with Ciarán’s ProjectPlus plugin.
It will simply prevent TM from launching. Console.app systematically
reports the following :
2009-01-12 16:54:59.339 TextMate[11730] *** -[NSBundle load]: Error
loading code /Applications/TextMate.app/Contents/PlugIns/
Dialog2.tmplugin/Contents/MacOS/Dialog2 for bundle /Applications/
TextMate.app/Contents/PlugIns/Dialog2.tmplugin, error code 2 (link
edit error code 0, error number 0 ())
2009-01-12 16:54:59.339 TextMate[11730] instance Dialog2 plug-in has
no principal class
I guess it’s the first time I relaunch TextMate since last update or
something (possibly ProjectPlus update).
Some information about my currrent config :
10.4.11
PPC
TM 1.5.8 (1496)
ProjectPlus 1.1 (if I trust the CFBundleVersion string entry of
ProjectPlus.tmplugin/Content/info.plist — nothing will appear in
system info)
I guess I’ll just work without Project+ for a while, but if any of
you has any idea of what it could stem from, help would be appreciated.
Édouard
Hi, I just joined this list, so I apologize if this bug was already
mentioned. When working with TextMate with the file tray visible, (having
opened an existing .tmproj file), I right click on a folder and try to make
a new file. After I click "Create", I get the Mac beachball for a little
while, and then no file was create, and no errors are thrown.
Is there any quick fix people are using for this? I'm using the latest
build, 1436.
Thanks,
- Jared
Hi all,
I'm sure this must be a common bug, but I do not see any posts on it.
When I try to correct a marked mis-spelling, I right click on a word.
But Textmate will highlight the word and the preceding text up to the
mis-spelled word. As a results the spellcheck correction is not
presented
in the popup box, because the software is not detecting the incorrect
word.
This came about with the last upgrade and was first noticed in Latex
mode, but I have demonstrated this in other modes.
I am using the cutting-edge version.
I have 'check spelling as you type' activated.
Any suggestions would be appreciated.
Jeff.
Why "Edit in TextMate" (that is really valuable as Markdown editor in
Moodle pages that are html-editor Safari-always-incompatible) doesn't
work with WebKit (the cutting edge nightly build for Safari)?
Is there any way to hack this to make Edit in TM Webkit compabible?
Thanks in advance.
I made this little command to search for examples of programming libraries /
construct:
#!/usr/bin/env python
import webbrowser
from os import environ
lang = environ['TM_MODE'].lower()
QUERY="http://google.com/codesearch?q=" + environ['TM_CURRENT_WORD'] +
"++lang:" + lang
webbrowser.open_new(QUERY)
It works fine, do you see any possible "problem"?
Could I maybe use the browser integrated inside Textmate?? How to call it
directly?
Another little thing:
I read on the dev guide that I should modify directly bundles and the svn
diff to view my changes.
Actually I'm not doing like that but I have all my changes in the "normal"
directory.
How is better to do to propose changes or some new features to bundles
mainatainers?
Thanks
--
View this message in context: http://www.nabble.com/Codesearch-tp21252252p21252252.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I got all kinds of invalid multibyte char (US-ASCII) since I moved to
ruby 1.9.1.
Not sure how to fix these, any help much appreciated.
Show TODO List:
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:27:in
`require': /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:44:
invalid multibyte char (US-ASCII) (SyntaxError)
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:43:
invalid multibyte char (US-ASCII)
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:43:
syntax error, unexpected $end, expecting '}' install «#{command}». If
you kno... ^ from
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:27:in
`' from ruby:0:in `require'
Invoking rake from TextMate:
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:4:in
`require': /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
invalid multibyte char (US-ASCII) (SyntaxError)
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
invalid multibyte char (US-ASCII)
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
syntax error, unexpected $end, expecting ')' ...
#{e.message.sub(/`(\w+)'/, ''\1'').sub(/ -- /, ' — ')... ... ^ from
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:4:in
`'
Thanks
Jean-Michel
It was supposed to be nice weather for those brilliant May 1st Labour
Day, but it's not, barbecue gonna be tommorow... so I'm writing here
about my favorite text editor :>
I was wondering if I'm missing some hidden TM option to enable some
more sophisticated undos in TM, and I found this:
http://nslog.com/2006/11/08/textmates_undo
So, are some non-single character undos on the horizon of TM? I'm
aware it is all about TM 2.0 will relay on NSTextView that does it for
free, but how about 1.x? Something easy at least as whole word or
whole edited line undo would be enough, just to keep our fingers less
stressed of pressing ⌘Z.
Regards,
--
Adam Strzelecki |: nanoant.com :|
Hello.
This is a simple feature request that I think is easy to implement for
anybody knowing something more about TextMate bundles than myself.
Is it easy to mark TABs at the beginning of the line that does not
have anything else?
I mean, mark as suspicious all lines that math /^\t\s*$/
Thank you,
Alberto
--
Alberto Simões
I am finding that Textmate will not color the syntax in my html document,
nor will it allow me to use any of the html bundle keyboard shortcuts or
even auto indent properly. If I save the exact same file as a php document
then I instantly get all these features back.
Why is this happening? Is it possible to get proper html handling within an
html document?
-Colin
Good day, hope its possible to post here asking for a feature request,
maybe it will be implemented in 2.0?
My suggestion is simple - subtle vertical grid on background color,
marking tab widths. So you can easily find matching bracket or opening
if() just by glancing at the code.
Like, if tab width set to 4chr - background gets lined up with
vertical bars: width:4chr darker, 4chr lighter, till the edge of window.
I use Select Balanced Tags Bundle http://subtlegradient.com/articles/2007/11/15/sel...to
quickly find my way around in html, and want some simple guidelines
so they can be used anywhere we use tabs. If you enable Show
Invisibles its not quite the same – too much clutter and essentially
useless.
Hello,
Sorry if this has been asked and answered previously - I quickly searched
but couldn't find an answer...
I have written a "push" command to save my current file/line/column (where
I'm at) and restore it with a "pop" command. I would like to run the "push"
command before I do operations like "Goto Current Tag [TM CTags]" so that I
can run my "pop" command to restore where I was at.
I cannot seem to figure out how to build a "macro" command that could do
both push and goto with a single key stroke (i.e. like remapping the ^] key
to do both) - I tried to record a macro but the macro stops recording when I
run the "Goto Current Tag" command.
Thanks,
-- dv
--
View this message in context: http://www.nabble.com/Run-multiple-commands-with-single-short-cut-key-tp212…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
The media wiki bundle lacks snippets for inserting references.
I wonder if whomever maintains that bundle could add the two attached
snippets which are triggered by "ref" and insert either
{{Fact|date=month year}}
or
<ref>$author ($year). $title. $journal, $vol $pages</ref>
I'm sure books and websites are common references too, but at least
this get the idea going. Feel free to edit/improve of course.
Happy hanukah,
tim
That directory re-creation seems to have fixed the problem. I'm typing
this in TextMate :)
Thanks Mel.
jon
/RNN (http://responsenotnecessary.com)
On Jan 5, 2009, at 7:01 AM, textmate(a)lists.macromates.com wrote:
> The old method works for Panther. For Leopard you need to look at
> this link
> Allan gave me
> See http://blog.macromates.com/2007/inputmanagers-on-leopard/
>
> Hope this is what you're looking for.
>
> Mel
Hi Dave,
Well, I've just started :) and probably wouldn't use it for quick
replies. But my motivations for using Edit in TextMate were:
* Snippets make it easy to boilerplate responses. I know there are
Mail plugins to help with this, but I haven't seen any with TextMate's
Regex capabilities. I used to use TextExpander but the current version
conflicts with my Dvorak keyboard.
* When I write a long email I often like to save a text file version
for future reference.
* I work in digital preservation and know that all those Microsoft
Word documents will eventually become unreadable. Using TextMate as my
text editor, blogging platform, and now email editor lets me keep non-
proprietary versions of all my documents. (I save most everything as
HTML.)
Of course, there are wrinkles I haven't smoothed out yet. For
instance, when I select part of a quoted message in Mail.app and Edit
in TextMate, the overall quote level seems to increase for some reason
when I return to Mail. But so far, so good.
jon
/RNN (http://responsenotnecessary.com)
> From: "David Frascone" <dave(a)frascone.com>
> Do you actually find it easier to compose mail in textmate? For me,
> I've
> replaced all of my programmers' editors with textmate -- and I've
> even gone
> so far as to set my EDITOR variable.
>
> But e-mail? Is it worth the effort?
>
> -Dave
Chaps,
The essay question I have is this:
"It would be great to save regexes from the find & replace dialog.
Discuss."
;-)
I have a number of projects running from the same codebase, and whilst
there's a basic framework that's mirrored across all of them (via a
hard linked directory) I'm finding myself wanting to use the same find
& replace fixes across them all.
I've tried a creating a super-project, which does work, but is
cumbersome (it's slow, and you have to be careful with mercurial and
with saving updates to the referenced framework).
What would be really nice would be the ability to save find & replace
regexes as matching pairs.
As an aside - 10 regexes aren't really enough in the dialog either ;-)
is there a way of upping them?
Happy new year,
R
--
Richard Dyce MA (Cantab.) MBCS MIET
Hello all,
I managed to get fullscreen editing with TextMate the way I want it
(no menubar, text not filling up the full width of the screen and
being centered on the screen). I know that I am not the only one who
wanted this feature...
I use BackDrop and a patched version of Megazoomer. You can find the
details in my blog: http://sadilek.blogspot.com/2009/01/fullscreen-editing-in-textmate-la.html
Best regards
Daniel Sadilek
hi,
any ideas why the standard indexing command doesn't work in the two
situations described below?
(i) given the following text which is to be inserted into the index:
``functional-typological'' approach
upon marking the phrase and issuing shift-control-i the following
erroneous output produced:
functional-typological'' approach\index{functional-typological''
approach}
this is the command behind the scenes:
{
command = "echo -n \"\\\\index{s\\$0}{$TM_SELECTED_TEXT}
$TM_SELECTED_TEXT\"";
input = none;
output = insertAsSnippet;
}
behind which we have:
selectWord:
executeCommandWithOptions:
what's the reason for "``" to be eaten by the command?
(ii) given the following text:
Proto-Indo-European (PIE) to
"Proto-Indo-European (PIE)" is to be inserted, hence this but not "to"
gets marked, then shift-control-i. the result is:
Proto-Indo-European (PIE) to\index{Proto-Indo-European (PIE) to}
that is, wrong position of the index-tag and an erroneously in the tag
included "to".
thanks,
christoph
I've followed the steps Allan recommends in his 2006/textmate-tricks blog entry:
>>>install the Edit in TextMate input manager, which is done by clicking the gear menu in the status bar (inside TextMate), navigating to the TextMate submenu and selecting Install "Edit in TextMate"
I relaunched all apps and my computer and confirmed that an "Edit in TextMate" alias is now in my ~/Library/InputManagers directory. But I seel no new edit item in my Mail.app pulldowns, and Ctrl-Cmd-E does nothing :(
I'm running TextMate 1.5.7, Mail.app 3.5 on OS 10.5.6. Does this trick not work in Panther, and/or are there any workarounds?
Thanks!
jon
/RR
Hello,
I am a website developer using php for my projects, along with the
CodeIgnitor php framework.
This works great, especially along with Transmit for ftp connectivity,
There is one missing link I'm looking for. It would be super great if
there was a way to browse a
project's classes. I know of the CodeBrowser plugin, but that is for
the file you are editing.
The function / code block selecter in TM's status bar is also very
good but again only for 1 file.
Does anybody know of an application that does a good view of classes /
methods / variables
in a multi-file php project? I like TM so much because of its speed
and "Mac feel".. I don't want
to switch to a big, clunky, slow IDE! So I'm looking for the "Mac
like" way in the middle.
Well, if anyone has any tips they would be greatly appreciated.
A very happy holiday wish to everyone in the TM and Mac community!
Michael, Haarlem, The Netherlands
Hello.
I recently did a fresh install of Mac OS X 10.5.6, downloaded TextMate
1.5.7 (r1436) from macromates.com and activated it with my serial
number. It's odd, but there are some things that doesn't work.
1. It can't create new files from templates. Nothing simply happens
when I try.
2. When I have open a folder I can't create new files in that folder
from TextMate, I can however create new subfolders.
Console shows no output. I have tried the standard troubleshooting
including reinstalling the application bundle, removing the preference
file and zapping the PRAM. It didn't help.
Does anyone have an idea of what this could be?
Marcus
I would like to add a couple of things (at least), but I'm afraid I need some
clarifications...
I need a disassembler command, it's just
import dis
dis.dis(module)
or dis.dis(function) or dis.dis(object)
Maybe I need a menu to let it know what I want to disassemble..
I tried something like this:
MOD_NAME=${TM_FILENAME%.py}
cd $TM_CURRENT_DIR && python -c "import dis; import os;
os.chdir(os.environ['TM_CURRENT_DIR']); print "Now in", os.getcwd(); import
$MOD_NAME; dis.dis($MOD_NAME)"; cd -
But it doesn't change dir at all, what am I missing?
Another nice command would be
execute line/selection as python, should I use eval?
I found that tm_helpers give me some nice functions, other sources of
"helpers"?
Last command is pylint "integration", this is alreadly not too bad
pylint $TM_FILEPATH 2>/dev/null | tail -n 2
It just gives me the score of my source code, but a better rappresentation
in html format could be better...
Thanks a lot
--
View this message in context: http://www.nabble.com/Adding-python-commands-tp21201499p21201499.html
Sent from the textmate users mailing list archive at Nabble.com.
I discovered the blogging bundle and I think is great, so I created a blog
for the first time in my life.
http://petitesnouvelles.wordpress.com/http://petitesnouvelles.wordpress.com/
Well if I can't write with textmate it means that I can't write in a certain
way :D
Now the problem is that if I paste code I need to use the <pre> (or the
equivalent in markup or textile) tag which keeps the indentation but hides
part of the code if I enlarge the font on my browser.
I could also limit the lenght of the strings but it does not solve
completely the problem...
It would be also nice some sintax highlighting and better formatting, any
advices?
So how could I do?? Is it also possible to attach automatically binary and
text files directly from textmate or not? (didn't see that function).
Thanks a lot
--
View this message in context: http://www.nabble.com/Blogging-and-code-tp20838410p20838410.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello.
I'm getting this error in Console
....
28/12/2008 01:42:52 TextMate[3577] didn't find rule source.ruby
28/12/2008 01:42:52 TextMate[3577] didn't find rule named source.ruby
28/12/2008 01:42:52 TextMate[3577] didn't find rule source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule named source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule named source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule named source.ruby
...
this messages appear in the list every time I press any button inside
the editor. So, looks like one of the bundles which has scope selector
'source.ruby' activated after pressing on keyboard. But how to find
which of them and to fix it?
Any suggestions? Thanks.
---
Best regards, Vladimir Prudnikov.
Blog: http://prudnikov.com/
E-Mail: prudnikov(a)tobeedo.com
I looked somewhere on the internet to find out why I get this problem and it
looks like is a problem of python versions, but I didn't find a way to fix
it..
Here it is the error, maybe someone else got the same problem here...
Thanks
Traceback (most recent call last): File "", line 7, in File
"/Users/andrea/Library/Application Support/TextMate/Pristine
Copy/Bundles/Python.tmbundle/Support/DocMate/docmate.py", line 7, in import
urllib2 File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 91, in import hashlib File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/hashlib.py",
line 133, in md5 = __get_builtin_constructor('md5') File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/hashlib.py",
line 60, in __get_builtin_constructor import _md5 ImportError: No module
named _md5
--
View this message in context: http://www.nabble.com/Problems-with-python-bundle-tp20577401p20577401.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am working on a latex document and using the newcommand
"\newcommand{\comisc}[1]{\lstinline[style=comisc]|#1|}". When I write
something like "\comisc{$MATH_SCALE_FACTOR}". Textmate now colours the
rest of text in the colour of an equation (here green). I think this
happens because of that dollar sign for inline formulas and TM thinks
that is not closed.
Is there way to avoid this behaviour?
Thanks
Christian
Hello,
I'm trying to run a ruby script and get this error:
/Users/sam/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/
Support/RubyMate/run_script.rb:1:in `require': no such file to load
-- /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
executor (LoadError) from /Users/sam/Library/Application Support/
TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1
any idea what might have gone wrong here, I've run scripts plenty of
times in the past no problem
I received an error message when attempting to run a ruby script that
asked I report it:
> Select threw Errno::EINVAL. Please report this error to the TextMate
> mailing list or to ##textmate on irc.freenode.net. /Applications/
> TextMate.app/Contents/SharedSupport/Support/lib/io.rb:28:in
> `select': Invalid argument (Errno::EINVAL) from /Applications/
> TextMate.app/Contents/SharedSupport/Support/lib/io.rb:28:in
> `exhaust' from /Applications/TextMate.app/Contents/SharedSupport/
> Support/lib/tm/process.rb:168:in `run' from /Applications/
> TextMate.app/Contents/SharedSupport/Support/lib/tm/executor.rb:
> 122:in `run' from /Applications/TextMate.app/Contents/SharedSupport/
> Support/lib/tm/executor.rb:184:in `process_output_wrapper' from /
> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
> executor.rb:121:in `run' from /Applications/TextMate.app/Contents/
> SharedSupport/Support/lib/tm/htmloutput.rb:135:in `call' from /
> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
> htmloutput.rb:135:in `show' from /Applications/TextMate.app/Contents/
> SharedSupport/Support/lib/tm/executor.rb:96:in `run' from /
> Applications/TextMate.app/Contents/SharedSupport/Bundles/
> Ruby.tmbundle/Support/RubyMate/run_script.rb:65
Ryan Neufeld
neufelry(a)gmail.com
Hi,
Maybe I'm a bit paranoid, but I just tried out the new GetBundles and
GitHub integration. I like the idea (that it dynamically finds GitHub
projects).
I'm just worried about the security implications. Does TextMate
sandbox bundles? I mean, technically speaking, GetBundles lets you
download unknown bundles which can execute arbitrary code on my machine.
I'm also inspired by the GitHub/TextMate solution and would like to
use a similar interface for downloading script modules in my app. I'm
just hoping there's a good way to secure them.
Thanks so much!
-Geoff
Is it possible to prevent the svn bundle from stealing focus after it
finishes an update? I've got a couple repos that take a while to
update so i'll start the update, switch the browser and get the
environment ready or switch to mail and read up on my mail. It's
really annoying when TM steals focus back.
--
Jacob Coby
I did this for myself a while back, assuming it was only a matter of
time before someone more knowledgeable would make an official LDAP
bundle. That hasn't happened, and searching in GetBundles indicates
that no one has worked on an LDAP/LDIF related bundle, so I've cleaned
mine up and am submitting it for consideration. (Surely there are
other people that work with LDIF? I notice vim has a syntax for it.)
One good way to test it: If you have an OpenLDAP server, run `slapcat -
l somefile.ldif`, then open that file in TextMate. You should see
everything scoped nicely, every entry should be listed in the symbols
list, and you should be able to fold entries. You shouldn't see any
"invalid" sections.
I've looked at man pages and other documentation and I think I've
covered the LDIF syntax pretty well. The only thing I can't figure out
the regex for is "more than one space before an attribute's value".
(It should be scoped as invalid.) Since the first space is part of the
"begin" pattern, it's difficult to identify additional spaces without
matching every space in the string. Any suggestions there would be
appreciated.
Thanks.
--
Rob McBroom
<http://www.skurfer.com/>
Because it screws up the order in which people normally read text.
Original message:
> Why is it bad to top-post your reply?
I typically LaTeX with a translucent background with the file in front
of TeXniscope (and sometimes Skim). On my new machine, however, the
workflow speed-up is greatly diminished, because the rendered file
often looks... bad. The standard font looks all blocky, the math
renders incorrectly, etc.
If I make no changes to the .tex file, save, and re-examine the .pdf,
the pdf changes---it seems to cycle through a few stages:
bad http://www.eberkowitz.com/images/tm/incorrect.png
medium the text renders correctly, but the math is bad
good http://www.eberkowitz.com/images/tm/correct.png
As far as I can tell (ie. 10 or 12 experiments), no such issue exists
when I compile with Latexmk.pl
I've tried deleting my font caches, after reading Q0.1 here at [ http://www.tug.org/mactex/faq/
], but to no avail.
Anyone else have a similar experience? Anyone have an idea how to get
this to stop happening?
Thanks a lot,
Evan
--------------------------------------------------
It was mentioned on CNN that the new prime number discovered recently
is four times bigger than the previous record.
John Blasik
I'm using TextMate to compile a Java class (I usually use a Java IDE, but
TextMate should be great for a "quick and dirty" check). When I attempt to
compile and run my class, I get an error. I suppose there are paths to
define. How do you do that in TextMate?Thanks in advance,
marc
Guys,
I just read in the documentation that it is not possible to change the
Fonts & Color style on a per file type base. This is a pity. I don't
want the same style for my Twiki files and my C source files.
Do any of you have a trick to do that? Hopefully better than creating
a new color and style entry for every scope of the Twiki grammar. ;-)
Thanks in advance.
Best regards,
Mathieu
___________________________________________
Mathieu Godart
Skype: mathieu_godart
MSN: mathieu_godart(a)hotmail.com
ASIC Integration Manager
Coolsand Technologies
___________________________________________
Does anyone know if ReMate has compatibility issues with TextMate
Version 1.5.8 (1496)? I have recently found this fantastic plug-in,
but it doesn't appear to work for me. I connect to remote drives
using ExpanDrive, and it seems to take ages to load large projects.
---
chad gulley
I would like to add this command to my python bundle and it should be easy..
I would like to go to a line in TM and getting something like that in
ipython:
run -d -b$TM_LINE $TM_FILEPATH
So i can easily start to debug from where I want.
Best way could be also automatically "continue" to that breakpoint.
But if I try to do
ipython2.5 << EOF
run -d -b30 file.py
EOF
It launches correctly ipython but exits just after, why??
--
View this message in context: http://www.nabble.com/Debug-in-ipython-tp21037085p21037085.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello
When using Emacs or VI it is possible to add a specific comment on the
source code (unfortunately they use different syntaxes) to specify (in
the middle of other things), the number of spaces a tab have, and if
they should be soft, or not.
Is there any such markup under TM?
Thanks In Advance,
Alberto
--
Alberto Simões