John Yeates | 1 Apr 15:48 2012
Picon

Re: Save and strip whitespace

On Thursday February 16 2012, Ale Muñoz <bomberstudios@...> wrote:
> 
> Not sure if this is what you're looking for, but I have a "Strip Trailing Whitespace on Save" bundle on Github:https://github.com/bomberstudios/Whitespace.tmbundle

This bundle seems to have stopped working in build 9110: it doesn’t strip space in the buffer or saved file
any more. Has anything changed that would cause the callback.document.did-save hook to stop working?

--

-- 
John Yeates

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Ale Muñoz | 2 Apr 11:50 2012
Picon

Re: Save and strip whitespace

On 01/04/2012, at 15:48, John Yeates wrote:

> This bundle seems to have stopped working in build 9110: it doesn’t strip space in the buffer or saved
file any more. Has anything changed that would cause the callback.document.did-save hook to stop working?

I'm starting to think it never actually worked properly...

Here's how the bundle works on my end (with 9110, on 10.7.3):

- Open a document
- Add some trailing whitespace
- Hit 'Save'
- The trailing whitespace is removed, and the file *seems* to be saved
  I say "seems", because the document icon goes from semitransparent to opaque, but what TextMate is saving
is actually the file *with* the whitespace.

The command's semantic class is 'callback.document.did-save' and is set to Save: 'Current Document'
(see attached screenshot)

It looks like it first saves the document, and then it runs the command (makes sense, but then we need a new
semantic class: 'callback.document.before-save'). Still, there is a bug with TM2, as it doesn't show
the document as modified after running the command.

I've gotten used to hitting Command + S two times in a row to remove whitespace and have it saved on disk, but
it's a pretty crappy solution and doesn't actually solve the problem when using the 'Save on Focus Lost' bundle.


(Continue reading)

Erik Neumann | 2 Apr 18:05 2012

elastic tabstops

Hello All,


Apologies in advance if this is inappropriate to post here, but since there is a 2.0 Textmate on the way that is changing how fonts work...

Here is a proposal about "elastic tabs" that seems interesting:

http://nickgravgaard.com/elastictabstops/


"Elastic tabstops - a better way to indent and align code"


there's also a discussion going on here:

http://reddit.com/comments/ro3b0




The idea is more about lining up text in columns as opposed to just indenting text.  Which is a feature I don't use much for programming.  But for editing lists of things in columns, this looks pretty sweet.

Regards,
--ErikN


_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Greg | 2 Apr 18:58 2012

Re: elastic tabstops

I'm not a programmer, so may not know much about this, but the examples on the link had no lines that wrapped. Seems to me that wrapping has to be part of any indenting schemes. Particularly how comments at the end of a line wrap. I think they has been some discussion of that with TM2.

On Apr 2, 2012, at 9:05 AM, Erik Neumann wrote:

Hello All,

Apologies in advance if this is inappropriate to post here, but since there is a 2.0 Textmate on the way that is changing how fonts work...

Here is a proposal about "elastic tabs" that seems interesting:


"Elastic tabstops - a better way to indent and align code"

there's also a discussion going on here:



The idea is more about lining up text in columns as opposed to just indenting text.  Which is a feature I don't use much for programming.  But for editing lists of things in columns, this looks pretty sweet.

Regards,
--ErikN


_______________________________________________
textmate mailing list
textmate-qhrM8SXbD5LrQoZeqNtYVdAWLNoT+7d/@public.gmane.orgm
http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Steve King | 2 Apr 20:17 2012
Picon

Re: elastic tabstops

On 2012-04-02 12:05, Erik Neumann wrote:
Apologies in advance if this is inappropriate to post here, but since there is a 2.0 Textmate on the way that is changing how fonts work...

It's an interesting idea, and I'd like to try it. The main problem I see is that I have to work with other people, and they would lynch me if I checked in code like this! We have a completely heterogeneous environment. We all use different editors and different OSs. I think this unfortunately falls into the category of nifty ideas which won't get widely adopted because it's not a feature of most editors because it's not widely adopted...

--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Hans-Jörg Bibiko | 3 Apr 14:07 2012
Picon

[TM2] weird crash

Hi,

I have a a kind of a weird crash with TM2 (I encountered it several weeks ago but now I do need the procedure
quite often). I'm on MacOSX 10.7.3 (9110).

I have created a new bundle with several commands. All these command have the same structure:
Save: Nothing
Input: Nothing
Output: Show in New Window
Caret: After Output

and the actual command:
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"

pbpaste | perl -e '

$word = <>;
chomp($word);
...
print $result;
'

In other words each of these commands takes the content of the clipboard and send it to a Perl script. The
script and the clipboard's content have to handle real UTF-8 stuff and the PErl script contains lots of
non-ASCII characters.

Now the weird thing: The crash doesn't always occur. I tried to find a more or less 'reproducible' workflow.

- TM2 is not running
- I copied a word from another program into the clipboard
- I open TM2
- an 'untitled' window appears
- I invoke one of these commands in question
- TM2 crashes with: 
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libundo.dylib                 	0x004e3f79 ng::undo_manager_t::end_undo_group(ng::ranges_t const&) + 11
1   com.macromates.TextMate.OakTextView	0x005d9356 0x5a9000 + 197462
2   com.macromates.TextMate.OakTextView	0x005c1242 0x5a9000 + 98882
3   com.apple.AppKit              	0x93315727 -[NSView _performKeyEquivalent:conditionally:] + 49
4   com.apple.AppKit              	0x93315914 -[NSView performKeyEquivalent:] + 340

BUT THEN I reopen TM2 and do _exactly_ the same and IT WORKS!
Step two of WEIRDNESS: If I quit TM2 after that and reopen it and run the command with the same clipboard
content again TM2 crashes once again.

It doens't matter whether I invoke the command via key equivalent or via mouse Bundles > ...

I didn't encounter that problem if TM2 was running before I copied the text, switched to TM2, and invoked the command.

Any help, fix would be really appreciated :)

For more details, don't hesitate to contact me.

Cheers,
--Hans

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Artie Ziff | 4 Apr 21:09 2012
Picon

User's platform


"The usage statistics will be monitored..."
  -- <http://blog.macromates.com/2012/leopards-and-questions/>

Can you please post an update to the statistics of Users and their OS 
version. Perhaps it will change as more people become aware of the 2.0 
alpha release.

Cheers,
AZ

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Curt Sellmer | 5 Apr 00:28 2012
Picon

[TM2] Go To File defect

In the "Go To File" dialog if you tab to the file types drop down control and change the selection with with either the keyboard or  mouse, the list of files immediately changes to reflect the new glob pattern. 

Also, if you type in a new glob pattern that is already in the list and hit the enter key, the list of files is updated.  

However, if you type in a glob pattern that is not already in the list and hit the enter key, the list of files is not updated.  You must must use the arrow key to select a different pattern, then use the arrow key to re-select the desired pattern.

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Timothy Reaves | 7 Apr 00:50 2012

Invisibles color

Is it possible to change the color of the characters used for invisibles?


_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
minimal design | 8 Apr 15:40 2012
Picon

HTML bundle "Insert Entity" does not work anymore

When I try the keyboard shortcut, I just get the alert sound from my Mac, and when I choose Bundle > HTML > Entities > Insert Entity... via menu bar, it opens the entity panel, but when I select one to insert, instead it pastes this error in my document:


-------------
/tmp/temp_textmate.IH1pV6:21: undefined method `to_i' for true:TrueClass (NoMethodError)
from /tmp/temp_textmate.IH1pV6:15:in `open'
from /tmp/temp_textmate.IH1pV6:15
-------------

Unfortunately, I was testing out Sublime Text 2 (shame on me, I know...) for a while so I'm not sure when this started to happen. Sorry...

I tried to reinstall of TextMate (removed the textmate folder in app support and downloaded a fresh copy) but that didn't change anything... I get the same with the 1.5 latest release and the alphabeta 2.0 (well, I get the error in a window in 2.0 instead of as text in the document in 1.5).

Any idea? Thanks!

--Yann

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Gmane