Hi,
I am trying to run python (the enthought python distribution version) via cmd-R in TM2.
I set under Preferences - Variables "TM_PYTHON" to /Library/Frameworks/EPD64.framework/Versions/7.3/bin
I have no shebang line at the beginning of the script.
When I hit cmd-R, it results in
Program exited with code #1 after 0.00 seconds.
What is wrong with this approach?
Additionally, also under Preferences - Variables "PYTHONPATH" to point into the paths where I want it to be - is this the right way?
Thanks for your help,
Cheers,
Claus
Any users of CTags might find this useful. It uses the history file as a stack of places to return to. Create a new command in the CTags bundle.
Name Go Back
Scope Selector source
Key equivalent ^[
Save nothing
Input nothing
Output discard
#!/usr/bin/env ruby -wKU
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate.rb'
history = ENV['TmCtagsHistoryFileName'] || 'tmtagsHistory'
lines = IO.readlines(history)
if lines.shift =~/=file:(.*?)&line=(\d+)/
File.open(history, 'w') {|f| f.puts lines}
TextMate.go_to :file => $1, :line => $2.to_i
end
Dave.
I have done this loads of times in TM1, but I am failing to change the invocation key for looking up a word in ctags. The default is cmd click but I wan to set ctrl ] so I don't have to use the mouse. Should be simple - just edit the key equivalent in the bundle editor and the job is done. Unfortunately when I do this it makes no difference.
Dave.
I don't know whether it's intended behaviour, but I find it counter-intuitive:
When the file browser has the focus, starting a Find (Cmd-F) with search scope 'Document' or 'Selection' does not initiate a search (or give a warning).
The expected behaviour is to search in the currently open file (or, if one wants to be fancy, search in the files selected in file browser).
And another anomaly I have just spotted testing this:
Having one file open and some text selected and the focus on the editor, opening the Find window with Cmd-F , the Find window opens as expected with 'Selection' as scope. However, actually performing the search finds the needle in a different file within the same project; it'll even open it if it's closed.
Strange.
Jonas
Hi Allan & everyone,
I just made an effort to work with TM2 over the past few days, and love many aspects of TM2, but I am just not happy with the design and functionality of the File Browser in TM2.
So could someone please clue me (us) in about the plans for the TM2 file browser.
1) Is it / Will it be possible for users to change the background colour of the file browser?
I'm using "Pastels on Dark" theme, and the file browser pane is a bright distraction for the eyes.
2) Why have some of the core functionality of the file browser (project drawer) changed so much between TM1.5 and TM2?
a) Why do we need to double-click on the file name to open the file, but can single-click on the tiny icon?
b) Is this by design or a temporary bug that will be fixed some day?
c) Why have the "Create New File" functionality been removed from TM2?
d) Is this by design or another temporary issue that will be fixed some day?
e) Also, why does TM2 not remember the previously saved file name and format like TM1.5 does?
I love the SCM integration in the file browser, but other than that the TM1.5 file browser was much better!
By the way, I really like the newly designed "update window change log" I just saw after updating TM2 this morning.
Kind regards,
Matz
Dear all,
Another question regarding the subversion bundle:
I understand the scope of the operation is selected by marking the file or folder in the file browser pane. In TM1 the parent folder had its own item at the very top, so it could be selected instead of a subfolder or file. Now, if my list of files is shorter than the space in the file browser pane, I can click in the empty space to get the parent folder as scope. However, I haven't found how to do this if my list of files/subfolders fills the entire pane.
And here are some other things; sorry if they've been covered before, but I didn't see them mentioned:
Is it possible to detach the results view from the window? For both tasks I use (LaTeX type setting and SVN) having this view attached to the main project window wastes a lot of space, as the information is concentrated in the left third or so of the window. Vertical extent of that window is more important.
So can I get the old detached windows back?
Can bundles in file browser get a triangle so they can be unfolded? Having to do the right-click, 'show package content' thing is a bit cumbersome (especially since you then dive into the hierarchy).
Find window: can the result view for 'find all' get horizontal scrolling and and option for line wraps? Right now I cannot see the results of my search for long lines.
Thanks,
Jonas
PS: I'm very, very happy to see the frequent updates. I'm prepared to pay (again) for TM2 once it becomes stable.
Allan,
No, that doesn't fix it, the text stays white even after switching tabs, or scrolling or even selecting a block of text (including the non-coloured text).
I have just noticed that the colour the text goes to depends on what code the most recent edit took place on, so if it were:
object.aproperty = @"foo"
then the text takes on the colour of "aproperty", which in my case is blue (Twilight theme), this time the code lost its syntax colour up to the line that got reformatted but not beyond, whereas if I do this in a block of @synthesize statements at the top of the file the text goes white from the edit onwards, but not before.
Chris
On 3 Sep 2012, at 11:44, textmate-request(a)lists.macromates.com wrote:
> OK, so it might be a refresh problem (rather than a parse problem).
>
> Next time it happens, try switch to another tab and back, to see if that fixes the problem (and let me know the result).
Hi,
Take a code snippet like this:
1:
2: if true
3: puts "Hello, world"
4: end
5:
6: puts "Bye"
7:
If I triple-click on line 2, then drag my selection down, I'm unable to make the selection 2-5. I get to 2-4, then as I drag downwards the selection jumps to 2-6.
The converse is not a problem, I can triple-click line 4, then drag upwards and make a selection of 4-1.
Initially I had gotten the idea that this was a regression since TM1, but I've just tested it and it isn't so.
Is there a reason that I can't select that blank line? Currently if I find myself in a position where I need to, I place the caret in line 5, hit Shift-Cmd-L, and up arrow until I have the selection I want.
Adam
On Sat, 01 Sep 2012 12:00:07 +0000,
textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. Re: TM2 support HTML win -> Javascript -> AppleScript ->
> Insert chars (Timothy Bates)
> 2. Re: TM2 support HTML win -> Javascript -> AppleScript ->
> Insert chars (Hans-J?rg Bibiko)
> 3. Tab bar colours (Dave Baldwin)
> 4. Re: Tab bar colours (Hans-J?rg Bibiko)
> 5. Re: Tab bar colours (Timothy Bates)
> 6. Find in Project... (Mikael Hultgren)
> 7. Php code coloring is not working with TextMate
> (textmatenightmare)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 31 Aug 2012 14:10:27 +0100
> From: Timothy Bates <timothy.c.bates(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: TM2 support HTML win -> Javascript -> AppleScript
> -> Insert chars
> Message-ID: <B5DACD7B-6A9F-4F2E-AAFD-0C2144596141(a)gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> insert doesn?t seem to be in the script dictionary for tm2...
>
> t
> On 31 Aug 2012, at 12:39 PM, Hans-J?rg Bibiko <bibiko(a)eva.mpg.de> wrote:
>
>> Hi,
>>
>> I'm just reviewing some of my bundles and came across with this issue:
>>
>> I have several commands which display as HTML output window some
>> characters and the user can insert a given character by clicking on
>> it. The mechanism is done via the Javascript-system bridge to an
>> AppleScript which should insert the character.
>>
>> For TM2 it doesn't work. Thus my question is:
>> Is this
>> - not supported by AppleScript,
>> - not yet implemented in TM2,
>> - broken,
>> - or is there an other more elegant way to achieve the insertion of
>> a string from the HTML window to TM2?
>>
>> I'm using TM2 (9293) on 10.7.4
>>
>>
>> Hmm, it seems that this:
>> echo -en 'tell app "TextMate" to insert ?data utf8e1b894? as Unicode
>> text'| osascript --
>>
>> is not possible under Lion.
>>
>>
>> Any hints/ideas?
>>
>> Cheers,
>> --Hans
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 31 Aug 2012 15:22:00 +0200
> From: Hans-J?rg Bibiko <bibiko(a)eva.mpg.de>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: TM2 support HTML win -> Javascript -> AppleScript
> -> Insert chars
> Message-ID: <BB9059AD-82F0-4C0E-B75B-79E473296A20(a)eva.mpg.de>
> Content-Type: text/plain; charset=windows-1252
>
>
> On Aug 31, 2012, at 3:10 PM, Timothy Bates wrote:
>
>> insert doesn?t seem to be in the script dictionary for tm2...
>
> ... oops, yes, you're right. Just looked inside TM1 script dict and
> there I found it ;)
>
> ok, then I'll be patient ;)
>
> Thanks,
>
> --Hans
>
> ------------------------------
>
> Message: 3
> Date: Fri, 31 Aug 2012 14:28:49 +0100
> From: Dave Baldwin <dave.baldwin(a)3dlabs.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Tab bar colours
> Message-ID: <7A841ED5-C364-4546-8292-19739938758C(a)3dlabs.com>
> Content-Type: text/plain; charset=us-ascii
>
> Is there any way to change the colour of the text and/or background
> in the tabs as the dark grey text on slightly less dark grey
> background makes it hard to read the text. Ironically when Textmate2
> is in the background it is easier to read the tab titles than when
> Textmate is in the foreground and being used!
>
> Thanks,
>
> Dave.
>
> ------------------------------
>
> Message: 4
> Date: Fri, 31 Aug 2012 15:32:33 +0200
> From: Hans-J?rg Bibiko <bibiko(a)eva.mpg.de>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Tab bar colours
> Message-ID: <21DC91C2-7136-40B0-844B-169E743249BC(a)eva.mpg.de>
> Content-Type: text/plain; charset=us-ascii
>
>
> On Aug 31, 2012, at 3:28 PM, Dave Baldwin wrote:
>
>> Is there any way to change the colour of the text and/or background
>> in the tabs as the dark grey text on slightly less dark grey
>> background makes it hard to read the text. Ironically when
>> Textmate2 is in the background it is easier to read the tab titles
>> than when Textmate is in the foreground and being used!
>
> +1
>
> Best,
> --Hans
>
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 31 Aug 2012 14:47:17 +0100
> From: Timothy Bates <timothy.c.bates(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Tab bar colours
> Message-ID: <4915CE26-4DFA-4708-A5C4-C5BED63DB9BF(a)gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> I kind of wonder I think the theme background, text, and selection
> colors could flow through the whole interface.
>
> Not having seen it, it?s hard to know. But I set my gutter to
> background, and I liked it.
>
> Letting that flow across into the file browser, and up into the tab
> bar (selected tab = line highlight, other tabs = background, text in
> tabs = gutter line text or default text color) would create a single
> set of desired contrasts and meanings for colour on the screen.
>
> bg-colored tab bar would play nicer with distraction free full screen also.
>
> my 2?
> t
>
> On 31 Aug 2012, at 2:32 PM, Hans-J?rg Bibiko <bibiko(a)eva.mpg.de> wrote:
>> On Aug 31, 2012, at 3:28 PM, Dave Baldwin wrote:
>>> Is there any way to change the colour of the text and/or background
>>> in the tabs as the dark grey text on slightly less dark grey
>>> background makes it hard to read the text.
>> +1
>> Best,
>> --Hans
>