I hate to bring this up again, but are there any updates on rendering the indent guides?
At the moment working with space-based indentation is a real pain, especially in JavaScript that heavily relies on callbacks. As a workaround I do the column selection to figure out the indentation, but that feels wrong and take too much time.
If there's no progress planned, is there a way to create a plugin for TextMate that would add this feature?
On 24 Oct 2015, at 18:45, Igor K wrote:
If there's no progress planned, is there a way to create a plugin for TextMate that would add this feature?
I don’t understand this quetion. Do you not know that TextMate is open source?
Whatever is within your capabilities, you can add to TextMate.
On 25 10 2015, at 16:17, Allan Odgaard mailinglist@textmate.org wrote:
I don’t understand this quetion. Do you not know that TextMate is open source?
Whatever is within your capabilities, you can add to TextMate.
I know that. The thing is I really suck at Objective C++. So contributing to TextMate source code is not an option for me.
I could try hacking a simple plugin though just for myself that I would be ashamed to show to others, but that could do the thing for me hence I'm asking if a plugin in theory is capable of doing just that or I should not even bother.
On 25 Oct 2015, at 23:54, Igor K wrote:
I could try hacking a simple plugin though just for myself that I would be ashamed to show to others, but that could do the thing for me hence I'm asking if a plugin in theory is capable of doing just that or I should not even bother.
You can do a private fork.
If with “plug-in” you’re basically asking “is there a shortcut, like an example that does 90% of what I want, that I can just modify” then the answer is no.
Igor: Have you tried setting the tab character to "┊"? I find that this is a very good indent guide when using tab-indented files.
Add this line to ~/.tm_properties: invisiblesMap = "\t┊"
On 26 October 2015 at 16:54, Allan Odgaard mailinglist@textmate.org wrote:
On 25 Oct 2015, at 23:54, Igor K wrote:
I could try hacking a simple plugin though just for myself that I would be
ashamed to show to others, but that could do the thing for me hence I'm asking if a plugin in theory is capable of doing just that or I should not even bother.
You can do a private fork.
If with “plug-in” you’re basically asking “is there a shortcut, like an example that does 90% of what I want, that I can just modify” then the answer is no.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 26 10 2015, at 09:28, David Howden dhowden@gmail.com wrote:
Igor: Have you tried setting the tab character to "┊"? I find that this is a very good indent guide when using tab-indented files.
Yep, that's exactly what I'm using when I have tab-indented files. But for the last year I've been working with space-indented files.
There was a hack mentioned some time ago that involved creating a grammar that would highlight odd indentation columns. But it broke the syntax highlighting in some other grammars like HAML, so I had to discard it.
On 26 10 2015, at 07:54, Allan Odgaard mailinglist@textmate.org wrote:
If with “plug-in” you’re basically asking “is there a shortcut, like an example that does 90% of what I want, that I can just modify” then the answer is no.
Not really, I just wonder if it's technically possible to create a plugin that would be able to draw those guide lines without altering TextMate source code.
It's pretty clear that plugins can't do whatever they like in TextMate hence the question.
On 2015-10-26 09:24, Igor K wrote:
Not really, I just wonder if it's technically possible to create a plugin that would be able to draw those guide lines without altering TextMate source code.
In this case I think it would be possible.
It's pretty clear that plugins can't do whatever they like in TextMate hence the question.
In theory there are a couple of tricks you could do to basically allow you do to anything.
For the Objective-C code you could use the standard method swizzling trick. For the C++ it's a bit more difficult. In theory you could just swap the pointers for two C++ methods/functions to use your own implementation. For that to work you need to make the location where the pointer resides writable.
Not sure if there's a better way to do this.