Donovan Chandler | 3 May 18:00
Gravatar

[SVN] Best Practice for Packaging Ruby Gem with Bundle?

I plan to distribute a bundle that relies on a couple ruby gems. What is the easiest way to deliver those gems
with the bundle? It needs to be very user friendly, assuming that the user doesn't know how to configure a
ruby environment or even install gems on their own.

I see that the Ruby on Rails bundle has a Rakefile, but I'm not familiar enough to see how it's being used.

Thanks for any guidance.

- Donovan
Attachment (smime.p7s): application/pkcs7-signature, 4891 bytes
_______________________________________________
textmate-dev mailing list
textmate-dev@...
http://lists.macromates.com/listinfo/textmate-dev
Ron DeVera | 25 Apr 08:30
Gravatar

[SVN] Can't read `$TM_PROJECT_DIRECTORY` in TM2 bundle

Hey there,

I'm having trouble reading `$TM_PROJECT_DIRECTORY` from within another shell
variable. I have a TM2 bundle whose settings contain this:

    {	shellVariables = (
    		{	name = 'TM_TEST_A';
    			value = 'test A: $TM_DIRECTORY';
    		},
    		{	name = 'TM_TEST_B';
    			value = 'test B: $TM_PROJECT_DIRECTORY';
    		}
    	);
    }

Elsewhere in the bundle (in a `Support/` file), I have Ruby like this:

    puts "ENV['TM_TEST_A'] : #{(ENV['TM_TEST_A']).inspect}"
    puts "ENV['TM_TEST_B'] : #{(ENV['TM_TEST_B']).inspect}"
    puts "ENV['TM_PROJECT_DIRECTORY'] :
#{(ENV['TM_PROJECT_DIRECTORY']).inspect}"

When this runs, the `ENV['TM_TEST_A']` and `ENV['TM_PROJECT_DIRECTORY']` output
are correct, but the `ENV['TM_TEST_B']` output fails to read
`$TM_PROJECT_DIRECTORY` from the environment:

    ENV['TM_TEST_A'] : "test A: /path/to/my.tmbundle/Support"
    ENV['TM_TEST_B'] : "test B: "
    ENV['TM_PROJECT_DIRECTORY'] : "/path/to/my.tmbundle"

(Continue reading)

Paulo Moura | 27 Mar 23:15
Picon
Gravatar

[SVN] Re: textmate-dev Digest, Vol 46, Issue 7


> Message: 1
> Date: Sun, 25 Mar 2012 11:29:09 +0700
> From: Allan Odgaard <mailinglist@...>
> To: Bundle developers <textmate-dev@...>
> Subject: [SVN] Re: textmate-dev Digest, Vol 46, Issue 5
> Message-ID: <AE85C8D2-6B48-453F-9ACB-2E97CD9ABC07@...>
> Content-Type: text/plain; charset=windows-1252
> 
> On 22/03/2012, at 23.16, Paulo Moura wrote:
> 
>> [?] I got syntax errors the first time I tried it to add (as per the FAQ):
>> 
>> { disableIndentCorrections = :true; }
>> 
>> [?] I'm using TM 1.5.10 (1631) [?]
> 
> Right, :true is a boolean value introduced in 2.0 and only the 2.0 bundle editor understands that. But the
plist produced will be backwards compatible.
> 
> If you want to insert a ?true? value into a plist and not use 2.0 to edit the plist, you either need to edit the
plist ?by hand? (<true/>) or you can use ?1? which technically is an integer value but will work as ?true?
for most contexts.

Thanks. I tried to push the bundle change but I'm getting an error when committing:

403 forbidden (http://svn.textmate.org)

Assuming that's a transient issue, I will try again latter.

(Continue reading)

Paulo Moura | 22 Mar 17:16
Picon
Gravatar

[SVN] Re: textmate-dev Digest, Vol 46, Issue 5


> Message: 2
> Date: Thu, 22 Mar 2012 10:53:13 +0700
> From: Allan Odgaard <mailinglist@...>
> To: Bundle developers <textmate-dev@...>
> Subject: [SVN] Re: Indentation issues (Allan Odgaard)
> Message-ID: <1B025FCA-BC89-41CE-9456-30F294BEC85B@...>
> Content-Type: text/plain; charset=windows-1252
> 
> On 22/03/2012, at 07.11, Paulo Moura wrote:
> 
>>> The new auto-correction behavior can be disabled, see http://wiki.macromates.com/FAQ/TextMate2
>> Thanks for the FAQ. It would be nice if the solution for disabling the auto correction behavior would be
syntactically valid (even if not operative) for TM 1.x (so that the same language bundle could work on both
TM 1.x and TM 2.x), however.
> 
> It is.

I got syntax errors the first time I tried it to add (as per the FAQ):

{ disableIndentCorrections = :true; }

Tried it again today by creating a new bundle preferences item and adding the line above. I get:

line 1:30: unexpected char: ':'

I'm using TM 1.5.10 (1631). I can workaround the error by writing instead:

{ disableIndentCorrections = ':true'; }

(Continue reading)

Paulo Moura | 22 Mar 01:11
Picon
Gravatar

[SVN] Re: Indentation issues (Allan Odgaard)


On 21/03/2012, at 12:00,
textmate-dev-request@... wrote:

> Message: 1
> Date: Wed, 21 Mar 2012 10:27:30 +0700
> From: Allan Odgaard <mailinglist@...>
> To: Bundle developers <textmate-dev@...>
> Subject: [SVN] Re: Indentation issues
> Message-ID: <657B9C2F-2787-4F15-A239-D1923115D7C1@...>
> Content-Type: text/plain; charset=windows-1252
> 
> On 02/03/2012, at 22.27, Paulo Moura wrote:
> 
>> TM have a "indentNextLinePattern" but not "unindentNextLinePattern". Is there a way to define a
pattern such that the next line is unindented but not the current line? I tried "decreaseIndentPattern"
but this setting insist on acting on the current line (while "increaseIndentPattern" acts on the next
line; why the apparent lack of symmetry?).
> 
> The indentNextLinePattern affects only next line, although it ?stacks up? the indent, incase next line
is also matched by this pattern. E.g.
> 
>   1. if true
>   2.    while false
>   3.       /* loop */;
>   4. /* back to normal indent */;
> 
> Here line 1 is matched and so, line 2 is indented. Line 2 is also matched, so line 3 gets double indent. Line 3
is _not_ matched, so line 4 is back to the indent of line 1.
> 
(Continue reading)

Picon
Gravatar

[SVN] r12072 (Logtalk)

Added syntax coloring and auto-completion support for the min/2, max/2, acos/1, and asin/1 built-in
functions and the term_variables/2 built-in predicate.

Changed:
U   trunk/Bundles/Logtalk.tmbundle/Preferences/Completions.plist
U   trunk/Bundles/Logtalk.tmbundle/Syntaxes/Logtalk.plist
Paulo Moura | 2 Mar 16:27
Picon
Gravatar

[SVN] Indentation issues


Hi,

TM have a "indentNextLinePattern" but not "unindentNextLinePattern". Is there a way to define a pattern
such that the next line is unindented but not the current line? I tried "decreaseIndentPattern" but this
setting insist on acting on the current line (while "increaseIndentPattern" acts on the next line; why
the apparent lack of symmetry?). The only indentation rule I have (for the Logtalk language) is:

	increaseIndentPattern = '(:-|-->)$';

This rule works as intended. For example, if I type:

	foo :-

as soon as I hit return, the first character in the next line will be intended:

	foo :-
		bar

Now, I would like to unindent the line that *follows* "\.$". For example:

	foo :-
		bar.
	foo2

But I cannot find a way to get this behavior using "decreaseIndentPattern", which results in the line
ending with a "." getting unindented instead of the next line.

On TM2, using the same settings that work fine on TM1, indentation is driving me crazy and preventing me to
switch to TM2 for everyday programming tasks. Specifically, on TM1, when you insert one of more black
(Continue reading)

Paulo Moura | 2 Mar 14:40
Picon
Gravatar

[SVN] TM2 9090: "Replace & Find" functionality


Hi,

On TM2 9090, the "Replace & Find" button is missing from the Find Panel and the Edit > Find > Replace & Find menu
item lacks a keyboard shortcut. This makes it painful to use this functionality when needed. Is this
something that will be fixed in a future release? Or there's a suggested alternative that is deemed better?

Cheers,

Paulo

-----------------------------------------------------------------
Paulo Jorge Lopes de Moura, PhD
Assistant Professor
Dep. of Computer Science, University of Beira Interior
6201-001 Covilhã, Portugal

Office 3.18  Ext. 3276
Phone: +351 275 242081 Fax: +351 275 319899
Email: <mailto:pmoura@...>

Home page: <http://www.di.ubi.pt/~pmoura>
Research:  <http://logtalk.org/> Blog: <http://blog.logtalk.org/>
-----------------------------------------------------------------
gualdron . | 29 Feb 14:52
Picon
Favicon

[SVN] Problem with R bundle

Hi ,
I have a problem with the R bundle, when I try to put  " ( " in a code in R, the program stop and I have to close and open again TextMate, the only way to put the " ( " is by copy - paste.
Do you have any solution for that problem?

Thanks.

--
José Luis Gualdrón Duarte
_______________________________________________
textmate-dev mailing list
textmate-dev@...
http://lists.macromates.com/listinfo/textmate-dev
suprMax | 24 Feb 12:15
Favicon

[SVN] tm2 update modification time of all opened files on save


Hi. I have a problem with latest TM2 alpha. When I hit CMD+S it keeps
updating all opened in this session files. Not opened tabs, not only current
file. All ever opened files. It messes up background sync to remote server.
Can you please check and fix this?
--

-- 
View this message in context: http://old.nabble.com/tm2-update-modification-time-of-all-opened-files-on-save-tp33370435p33370435.html
Sent from the textmate-dev mailing list archive at Nabble.com.
Gerd Knops | 12 Jan 19:12
Favicon

[SVN] "Buffer/Cursor position changed" event

Hi Allan,

One feature that I have always missed in TextMate is a browsing history. I envision something that whenever
I move the cursor more than a few lines or switch to another file records the previous position. Then in a
utility window it would on demand show the last n locations with a few lines of context. A click would return
me to that place.

Or keyboard shortcuts for back/forward in the history.

Any chance TM2 could provide the necessary events for something like that?

Thanks

Gerd

Gmane