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
>
Alan,
here is the command in question (I've also attached a screenshot of the command setup in the bundle editor):
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
"/usr/local/bin/uncrustify" -l OC -c "$TM_UNCRUSTIFY_OBJC_CONFIG";
There doesn't seem to be any special pattern, it doesn't always do it and immediately running the command again seems to restore the syntax colouring. Making any further edit to the file also restores the syntax colouring.
I mostly work on Objective-C files, a simple test case would be:
1. open a largish ObjC .m file (say 500+ lines).
2. make an edit, e.g.: unindent a line of code
3. run the command
4. try this a few times
Often I see the code lose its syntax colouring from the point where I made the last edit onwards, sometimes its only the actual line or lines in question. All the affected text goes white, it's as though it has lost its scope although selecting some text in the unhighlighted area and showing the scope reveals a perfectly normal scope list.
I have seen this behaviour on 3 separate Macs: 2 Mac Pro's and 1 MacBook Pro, running pretty much all of the alphas so far, on Lion 10.7.4.
Hope that helps
Chris
On 2 Sep 2012, at 01:16, textmate-request(a)lists.macromates.com wrote:
> This should not be able to happen.
>
> Can you send step-by-step about how to reproduce (that is, where to get this command from and how you get it into this unhighlighted state).
> On 2 Sep 2012, at 16:25, Allan Odgaard wrote:
>
> > On Sep 2, 2012, at 5:09 PM, Jonas Zimmermann <listen at jonaszimmermann.de> wrote:
> >
> >> OK, I've been using ⇧⌘Y for a while. This doesn't show added folders (for SVN) as uncommitted, however. So commits depending on those folders (such as added files within) fail.
> >
> > That sounds like something that could easily be fixed if you provide steps-to-reproduce.
Thanks for including the steps as I was able to reproduce this.
> ...
>
> So added folders should be shown as uncommitted changes; don't know whether there should also be a check for dependencies when trying to commit (probably not).
I talked to Allan this morning and I am in agreement with you. I've
suggested why to Allan in IRC but for posterity, I'll post here as
well. Basically, Subversion treats folders as versionable objects.
They can be added/modified/deleted to the repository with/without
files in them and they even have their own versioned properties like
files do. That being said, I think it makes sense to have a folder in
the "Uncommitted Changes" view whenever the folder has changes on
itself or below it. While Allan and I talk about this in IRC, there
are a few workarounds:
* When committing from the "SCM Status" view, make sure there are no
files selected when you show SCM command (⌘Y) (Note: When you have no
files selected and initiate a commit, TextMate will show you all
changes in the working copy)
* Commit from the file browser and select the path(s) you want to
commit including the newly added folder (Note: When selecting a folder
and initiating a commit, it will of course include paths for all
descendants)
Using those two options above, I was able to work around this
situation. The reason you're only seeing the file in the commit
dialog is because in your step #6 (6. Select new file there, ⌘Y,
Commit), you selected the file prior to initiating the commit thus
telling TextMate that you wanted to commit that file alone.
I hope this helps explain why this is happening and gives you a
workaround until Allan and I can come up with something suitable.
--
Take care,
Jeremy Whitlock (@whitlockjc on Twitter)
http://www.thoughtspark.org
Hi All,
TM2s HTML output window is somewhat limited compared to TM1:
- it uses sort of *tabs*, so I can't have multiple windows next to each other (handy to remove clutter and usually welcome, but when I run multiple apps/scripts in parallel I need separate windows to monitor them)
- it only allows one 'long running' process at a time
Since my projects often include multiple apps and/or scripts that interdepend and I need to run them side by side (eg client server etc). I used to use HTML output windows, so that I could have specially formatted log messages be clickable and get me to the correct location in the source code etc.
So I wrote an application that provides multiple HTML output windows and remembers their individual placement and size. It is called ApLo, and available as source here:
https://github.com/gknops/ApLo
and wrapped into a TextMate bundle here:
https://github.com/gknops/aplo.tmbundle
For starters I wrote an Xcode4 bundle that goes with it:
https://github.com/gknops/xcode4.tmbundle
As time permits I plan to add support for iOS projects as well, and STDOUT/STDERR parsers for other languages (perl, lua) as I come across them.
Maybe these bundles will be useful for others as well.
Gerd
Hi,
I regularly run the uncrustify command to tidy up my ObjC source, often when I do this the syntax colouring in the current file becomes broken until I make an edit (like a new line return), does anyone know a way to force a refresh of the syntax colouring after a command that replaces the entire document?
Chris
Just an idea, maybe it's like this for a good reason, but it's always bugged me that the "Go To" windows just float around. I can see a few reasons why it's awkward (at least for me):
• if you're using multiple displays the "Go To" windows can end up opening on a different display than the actual textmate window you're calling it from, this seems to be inconsistent amongst them though
• if you have multiple projects open, the "Go To" position is shared, so if you move it over to the current textmate project window that you're working with and then switch to the other project, the "Go To" window will be in its last location
• in general it feels like it brings you out of the interface the way they are implemented now
Not like there are "bugs" or real problems with it, but i do feel like interface wise, it's a little clumsy. Thoughts?
So I’m running the latest nightly of Textmate 2 and seeing some weird
behaviour from Find in Project…
I have a project(or what I’m assuming is a project, it has a .™_properties
in its root folder with projectDirectory = '$CWD’ in it)
and no matter what i do i can’t make Find in Project… find anything, i type
a search query that i know exists in the project and it returns nothing.
But if i load up for example the Textmate project Find in Project… seems to
work just fine and i can’t for the life of the figure out what the problem
is. Maybe I’m not understanding what Find in Project… does or maybe I’m
confused as to what or how a project is made in Textmate 2. Any ideas are
most welcome.
~//M
Defunct processes