Hans-Jörg Bibiko | 10 Sep 2010 15:38
Picon

[SVN] r11949 (GetBundles)

• applied new github structure to GetBundles' info window for info.plist and README

Changed:
U   trunk/Review/Bundles/GetBundles.tmbundle/Support/getBundles.rb
U   trunk/Review/Bundles/GetBundles.tmbundle/Support/help.markdown
U   trunk/Review/Bundles/GetBundles.tmbundle/Support/lib/infoWindow.rb
_______________________________________________
textmate-dev mailing list
textmate-dev <at> lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev
Ryan Joseph | 11 Sep 2010 10:31
Picon

[SVN] Newbie questions

Hello all, I've decided I wanted to attempt a Pascal bundle for the FPC compiler on OS X but need some basic
help first.

1) I can't quite understand how I return output from a command that would work for auto-completion (or
produce a popup menu which would act as a snippet). I have seen this done before but I don't see any obvious
options in the bundle editor and the bundles I looked at didn't make sense to me unfortunately.

2) How can I make a link from HTML output select a line in a file? I learned about the "mate" UNIX command which
seems to do this but I'm not skilled enough a web developer to know how I can invoke that from HTML. Again I
know the Xcode bundle this so there must be a way.

3) Is it possible to make a command return a list (popup menu) which could invoke UNIX commands? I think I saw
another bundle do something similar to this but I wasn't sure.

4) Finally, does TextMate offer any way to dynamically load language syntax? For example could I make a
command that parsed information from a document then saved it into a file that TextMate could read to
extend the language grammar? I wanted to make symbols from the current document being syntax styled but
I'm not sure if this is possible (never saw it before either so likely not).

Thanks for your ideas, I look forward to them!

Regards,
	Josef
Paulo Jorge Lopes de Moura | 15 Sep 2010 08:44
Picon
Gravatar

[SVN] r11950 (Logtalk)

Added syntax coloring and code completion support for the new coinductive/1 predicate.

Updated the commands used for generating (X)HTML, PDF, and TXT documentation in order to be independent of
the default settings for the "altdirs" and "xmldir" Logtalk compiler flags.

Changed:
U   trunk/Bundles/Logtalk.tmbundle/Commands/Compile.tmCommand
U   trunk/Bundles/Logtalk.tmbundle/Commands/Generate PDF documentation.tmCommand
U   trunk/Bundles/Logtalk.tmbundle/Commands/Generate TEXT documentation.tmCommand
U   trunk/Bundles/Logtalk.tmbundle/Commands/Generate XHTML documentation.tmCommand
U   trunk/Bundles/Logtalk.tmbundle/Preferences/Completions.plist
U   trunk/Bundles/Logtalk.tmbundle/Syntaxes/Logtalk.plist
Paulo Jorge Lopes de Moura | 15 Sep 2010 08:47
Picon
Gravatar

[SVN] r11951 (Logtalk)

Renamed the documentation commands for consistency with the corresponding shell variables.

Changed:
A   trunk/Bundles/Logtalk.tmbundle/Commands/Generate HTML documentation.tmCommand
D   trunk/Bundles/Logtalk.tmbundle/Commands/Generate TEXT documentation.tmCommand
A   trunk/Bundles/Logtalk.tmbundle/Commands/Generate TXT documentation.tmCommand
D   trunk/Bundles/Logtalk.tmbundle/Commands/Generate XHTML documentation.tmCommand
Mads Hartmann Jensen | 23 Sep 2010 20:18
Picon
Gravatar

[SVN] Refresh document

Hey guys, 

I'm currently working on my Scala bundle [1] and was wondering if it is possible to force TextMate to 
refresh it's files to contain the current contents of the file on the HDD. My use-case is the following: 

I've got a reformat command which will 
	1. Reformat the document
	2. Store the reformatted content in a temp file
	3. Display a diff of the two files
	4. If the user likes it, replace the contents of the current file with the contents of the temp file.
	    cat ~/.difffile.scala > filepath

My problems is that TextMate won't refresh the file until you focus another app. Is it possible to 
force this refresh?

[1] http://github.com/mads379/scala.tmbundle

Thanks,
Mads Hartmann Jensen
Michael Sheets | 24 Sep 2010 08:22

[SVN] Re: Refresh document

On Sep 23, 2010, at 1:18 PM, Mads Hartmann Jensen wrote:

> My problems is that TextMate won't refresh the file until you focus another app. Is it possible to 
> force this refresh?

If this is a bash command you can use the command 'rescan_project' to rescan the project. There is also a ruby
library (textmate.rb) in the support folder which contains a method that does the same.
Mads Hartmann Jensen | 25 Sep 2010 12:21
Picon
Gravatar

[SVN] Re: Refresh document

Thanks Michael, it works. 

Mads

On Sep 23, 2010, at 8:18 PM, Mads Hartmann Jensen wrote:

> Hey guys, 
> 
> I'm currently working on my Scala bundle [1] and was wondering if it is possible to force TextMate to 
> refresh it's files to contain the current contents of the file on the HDD. My use-case is the following: 
> 
> I've got a reformat command which will 
> 	1. Reformat the document
> 	2. Store the reformatted content in a temp file
> 	3. Display a diff of the two files
> 	4. If the user likes it, replace the contents of the current file with the contents of the temp file.
> 	    cat ~/.difffile.scala > filepath
> 
> My problems is that TextMate won't refresh the file until you focus another app. Is it possible to 
> force this refresh?
> 
> [1] http://github.com/mads379/scala.tmbundle
> 
> Thanks,
> Mads Hartmann Jensen
Mads Hartmann Jensen | 25 Sep 2010 12:45
Picon
Gravatar

[SVN] Scrolling in output of while expecting input (executor.rb)

Hey guys,

I'm working on a "Run Scala REPL: Preload file" command which will start the Scala REPL with the current file
preloaded. The user can then play around with the code in the file. 

This is currently done using the TextMate::Executor module. One of the users of my bundle raised the issue
that if the REPL prints out a lot of lines it's not possible to read the output or scroll down because the
input field won't allow the loose it's focus. 

I wanted to hear if anyone has fixed this in their bundles before hacking away myself. 

Thanks,
Mads Hartmann Jensen
Allan Odgaard | 25 Sep 2010 13:05
Favicon

[SVN] Re: Scrolling in output of while expecting input (executor.rb)

On 25 Sep 2010, at 12:45, Mads Hartmann Jensen wrote:

> This is currently done using the TextMate::Executor module. One of  
> the users of my bundle raised the issue that if the REPL prints out  
> a lot of lines it's not possible to read the output or scroll down  
> because the input field won't allow the loose it's focus.

Perhaps place the input field below the output, that way, you can  
always scroll to the bottom on new output, making the input field  
somewhat fixed at the bottom — not much different than the experience  
you get in Terminal.

Gmane