Guillaume Carbonneau | 1 Oct 2007 02:09
Picon

[PATCH] Prolog run command

There are some annoyances with this Bundle. It does not work.

It tries to call the application called "Term" but it should be "Terminal" (was Terminal ever called Term in previous versions of OS X?). 
Then, it moves the terminal window to an awkard position (100,100 ?) (See the diff).
So the diff to repairs those. It is not a big patch but it corrects annoyances I get everytime I checkout that bundle or tell someone else to.

Also, not included in the diff : The bundle shows support for gprolog on the command line. Some people (like at my university) prefer using swi-prolog (swipl). Should I make a patch that supports gprolog but falls back to swipl if it is not installed? Is it appropriate for a "texmate Run command" to support 2 implementations of Prolog?

Thanks

Guillaume Carbonneau
Attachment (prolog_run_command.diff): application/octet-stream, 827 bytes

Allan Odgaard | 1 Oct 2007 13:14

Re: [SOLVED] Re: Blogging-Bundle again

On 30/09/2007, at 12:17, Niels Kobschätzki wrote:

> [...]
> Btw. is there anyway to change the password which TextMate accesses  
> within TextMate or would there be a possibility to add a command  
> which allows typing in the password if the username/password- 
> combination is wrong?

Ciaran recently wrote a keychain ruby extension which we could use in  
the blogging bundle for better interaction (presently it relies on the  
Apple-provided ‘security’ shell command, which is pretty limited).

Somewhere on my list of things I’d like to do is, to give the blogging  
bundle a major overhaul -- but it probably will have to wait for me to  
finish a dozen other things first.

Allan Odgaard | 1 Oct 2007 13:19

Re: Context menu: Help me get my mind around this...

On 28/09/2007, at 20:18, pixpop wrote:

> [...]
> Task 1:  I work on a code base of about 50,000 lines of ordinary C  
> code,
> spread over about 30 files. Most of what I do is cut, paste, search,  
> make. I
> want to add some functions to the context menu. First, I want a  
> function
> that would take me to the definition [...]

Perhaps the CTags bundle will be of use to you: http://macromates.com/svn/Bundles/trunk/Bundles/CTags.tmbundle/

For install instructions see http://macromates.com/textmate/manual/bundles#getting_more_bundles

> Task 2: I want to add an item to the context menu that will do the
> following: save any dirty files, then run the makefile of the  
> project. If
> there are any errors, take me to the place in the source file that  
> contains
> the first error.

There is a Makefile bundle, it does this, but it is *very* rudimentary  
(I wrote the build command, but I rarely ever work with Makefiles, so  
I didn’t spend much time prettying up the output).

See above for how to get it.

> This would be something like the Command-B, but as a context menu  
> item.

You can’t add stuff to the context menu, but it is on ⌘B, though  
only for Makefiles. If you go to the build command you can change the  
scope selector to be more broad (i.e. be all your C files by  
specifying source.c).

Allan Odgaard | 1 Oct 2007 13:21

Re: [LaTeX] Entering greek letters “à la Mathematica”

On 28/09/2007, at 16:04, guerom00 wrote:

> [ something about entering greek letters ]
> So, what do you think ? Would it be possible to implement this way of
> entering greek letters in TextMate ?

Haris did something for the WIP LaTeX bundle that allowed writing  
plain text and pressing ⌃G to convert it into a greek letter.

Allan Odgaard | 1 Oct 2007 13:23

Re: SmartyPants references in the Markdown bundle

On 27/09/2007, at 05:18, Rob McBroom wrote:

> On Sep 26, 2007, at 5:28 PM, Rob McBroom wrote:
>
>> If someone gets a chance, can they be updated to use "$ 
>> {TM_SMARTYPANTS:-SmartyPants.pl}" instead?
>
> Maybe I spoke too soon. It's probably fine (better even) to use  
> SmartyPants when the eventual output is PDF, for example. It's just  
> the commands that generate HTML that you may one day have to view/ 
> edit where SmartyPants should be optional (in my opinion), but if  
> the consensus is that the commands should all be consistent, I won't  
> argue.

Well, you want the use of SmartyPants.pl to be optional rather than  
mandatory, by allowing the user to override the call to SmartyPants.pl  
by going through TM_SMARTYPANTS, right?

Since there is no harm in doing that, I won’t object to having it  
changed. Though I would prefer to receive a patch, rather than do the  
search’n’replace myself ;)

guerom00 | 1 Oct 2007 15:10
Picon

Re: [LaTeX] Entering greek letters “à la Mathematica”


Thanks for your answer.
Yes, I remember this function… Where can I find
this bundle ? It seems to have disappear…

Allan Odgaard-2 wrote:
> 
> On 28/09/2007, at 16:04, guerom00 wrote:
> 
>> [ something about entering greek letters ]
>> So, what do you think ? Would it be possible to implement this way of
>> entering greek letters in TextMate ?
> 
> Haris did something for the WIP LaTeX bundle that allowed writing  
> plain text and pressing ⌃G to convert it into a greek letter.
> 
> 
> ______________________________________________________________________
> For new threads USE THIS: textmate@...
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
> 
> 

--

-- 
View this message in context: http://www.nabble.com/-LaTeX--Entering-greek-letters-%E2%80%9C%C3%A0-la-Mathematica%E2%80%9D-tf4534729.html#a12978901
Sent from the textmate users mailing list archive at Nabble.com.

Neil Baylis | 1 Oct 2007 16:46
Picon
Gravatar

Re: Context menu: Help me get my mind around this...


Allan Odgaard-2 wrote:
> 
> 
> You can’t add stuff to the context menu...
> 
> 

Oh. That's disappointing. Is there any chance this will become possible in
the future?
--

-- 
View this message in context: http://www.nabble.com/Context-menu%3A-Help-me-get-my-mind-around-this...-tf4523563.html#a12980517
Sent from the textmate users mailing list archive at Nabble.com.

Jacob Rus | 2 Oct 2007 08:08
Picon
Gravatar

Re: [PATCH] Prolog run command

Guillaume Carbonneau wrote:
> Also, not included in the diff : The bundle shows support for gprolog on the
> command line. Some people (like at my university) prefer using swi-prolog
> (swipl). Should I make a patch that supports gprolog but falls back to swipl
> if it is not installed? Is it appropriate for a "texmate Run command" to
> support 2 implementations of Prolog?

The best is to fall back on $TM_PROLOG or similar.  Then it can be 
specified by the user w/o changing the bundle.

Ruben Debeerst | 2 Oct 2007 09:12
Picon
Picon

Re: LaTeX Bundle: Wrap in left...right

On 2007-09-19 19:25:58 +0200, Alain Matthes 
<alain.matthes@...> said:

> but I will prefer
> 
> "{something}" into "\left\{something\right\}" but I don't know
>   how to make  a conditional insertion

Yeah, I don't know how to do conditionals in snippets either. But you 
could make another snippet with
${TM_SELECTED_TEXT/{(.*)}/\\left\\{$1\\right\\}/}

Regards,
Ruben

Édouard Gilbert | 2 Oct 2007 11:44
Picon

[LaTeX]PDF "can't be open" by Skim, but still is

Hi gang,

I'm using TM/Skim for some LaTeX and when typesetting — using  
mklatex.pl —, nearly everything is alright. Except for a little  
annoying message : Skim tell me that “The document 'file.tex' can‘t  
be opened. File does not exist.” Yet, it just has been. This happened  
on different files, but only when there are non ascii characters in  
the file path. Removing those character make the message disappear.  
I'm not sure wether it is a problem with Skim or TM. I tried with  
both "retail" and svn version of the LaTeX package.

Any hint of what it could be?

Thanks,

Édouard

Gmane