I've just been troubleshooting why so many of my files have hard tabs
in them. Now I see that whenever I create a new file in TextMate, it
defaults to hard tabs. Two questions:
(1) How do I have TextMate automatically assume soft tabs 2 when I
create a new file?
(2) Is there a way to have TextMate convert hard tabs to soft tabs on
save, so I can easily fix this mess?
I think once upon a time I knew that I had to manually set soft tabs
for each new file, but at some point I forgot.
~joe
On 15 Oct 2010, at 17:32, brad tittle wrote:
>> I installed a bundle for Titanium Developer. Every time I use the
>> Ti. trigger I get a popup "failed to load /Users/userdir/.gemrc". I
>> have .gemrc in my directory. My searches haven't been too fruitful
>> for an answer.
>>
>> Does this file need to be permissioned specially? Is there some
>> other magic involved? Or is it related to ruby issues.
>>
>> Ti. actually does bring up the list.
>>
>> The directories referenced in .gemrc do exist.
>I don't know anything about Titanium Developer, nor Ruby, but if that
>error message is verbatim then the error is with a setting somewhere:
>"Failed to load /Users/userdir/.gemrc" should be /Users/[your
>login]/.gemrc. It's probably set in the bundle somewhere. Select
>Bundles->Bundle Editor->Show Bundle Editor menu option and have a
>browser through the bundle.
>If that error is not verbatim, and you substituted your login name for
>'userdir', then I don't know the solution to this.
The error was actually "Failed to load /Users/[userdir]/.gemrc" where
[userdir] is my login.
The error shows up when I do "gem install ..." also.
It is mostly an annoyance right now.
--
Brad Tittle
Tech Support
Hi,
is it correct that curly brackets feature a special behaviour in Textmate? I mean the fact that if I enter a Curly bracket { and hit enter, it will create a newline after the tab. This is not the case with other brackets:
So with curly brackets I get:
{
Cursor
}
With other brackets I get:
(
Cursor)
Note that this is _not_ set in the indentation rules section, to my understanding. I want to mimic the behaviour of Curly brackets for other brackets as well. I know that I can use this trick used in the Snippet: "Special: Return Inside Empty Open/Close Tags" in the HTML bundle to mimic this behaviour, which I am happy to do. I just wanted to know whether I get this correctly, that the special behaviour of curly brackets is unique and built into Textmate.
Thanks a lot,
Stephan
Hello... I feel like there is a super-simple answer to this, but I've spent more than enough time trying to figure this out on my own, so now I get to ask the TM community.
I'm making a simple drag command, and part of the output involved a backtick. I'm using Ruby as the language of choice for the command itself, and it seems to be having trouble with the backtick.
I know that the backtick, on it's own, means to run the string at the command line. But I'm doing something like this:
puts "`"
(Thats double quote, backtick, double quote; in other words, print a backtick, please)
I've actually reduced my command to this simple line in trying to figure out where it's going wrong, and this does not produce any output. As another example, this:
puts "abcd`efgh"
Will output abcd and that's it.
Now, when I open a new ruby document, add those lines, and run it straight from TM, I get every character I would expect.
This would lead me to believe that somehow, in process of writing ruby that gets interpreted as a snippet, the backtick is actually being used as a backtick, not just another string character. Do I need to escape this somehow? I've tried this:
puts "\`"
Which still produces nothing.
Any insight is greatly appreciated. Thanks.
+dru
Hi,
my HTML and PHP bundles use different numbers of characters for indentation via TAB: In HTML it’s 3 chars, in PHP it’s 4 chars.
How can I adjust this to 4 characters both?
Thanks for any tipps!
Tom
I installed a bundle for Titanium Developer. Every time I use the Ti.
trigger I get a popup "failed to load /Users/userdir/.gemrc". I have .gemrc
in my directory. My searches haven't been too fruitful for an answer.
Does this file need to be permissioned specially? Is there some other magic
involved? Or is it related to ruby issues.
Ti. actually does bring up the list.
The directories referenced in .gemrc do exist.
TIA
--
Brad Tittle
Tech Support
My ruby Completion is gone when I try to change the ruby I am using. This is
one of my favorite features of programming ruby with TM. Is there a way to
get this working with the ruby I want to use.
I want to use ruby-1.9, which I have installed using RVM
When I put the following TM variable.. the Completion is gone:
TM_RUBY /Users/Ted/.rvm/bin/textmate_ruby (specifically I get Parse error)
When I remove it.. Completion works again.
Ted
--
View this message in context: http://old.nabble.com/Ruby-completion-not-working-with-another-version-of-R…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
I'm writing a macro:
selectBlock:
copySelectionToFindPboard:
findWithOptions:
All I'm doing is getting some text between square brackets, pasting it into the find dialog, and hoping to search with "wrap" enabled.
Trouble is, the findWithOptions: wants to hardwire my find selection:
{
action = findNext;
findInProjectIgnoreCase = 0;
findInProjectRegularExpression = 0;
findString = "[^f100914110843]";
ignoreCase = 0;
regularExpression = 0;
replaceAllScope = document;
wrapAround = 1;
}
I tried removing the findString property, but then I lose the wrapAround for some reason. That is, the property is in the macro text, but wrap doesn't work when the macro is executed.
Any idea what I'm doing wrong here?
Thanks!
Charles
Hi Ben,
Delighted to see another writer who doesn't buy into Microsoft/Open/Neo/Office bloatware.
I'm not a TextMate power user, but I do have some personal snippets that you could have or build on if you create an "Author" Bundle (select sentence, swap this word and next, that sort of thing). I've also got a syllabus template and snippets that I've been hacking together for a while.
Good luck!
jon
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
On Oct 13, 2010, at 3:27 AM, textmate-request(a)lists.macromates.com wrote:
> I'd rather drink the TextMate kool-aide
> and create a Bundle that does what I want. I bought Scrivener (the
> document project tool), but it's not quite my style---I don't like the
> text in RTF, don't like how it manages content under the covers. I
> probably shouldn't care about that, but I did write a novel in LaTeX.
> Published an unwieldy Sci-Fi milieu "mock encyclopedia" in LaTeX, too.
> So, I'm used to under the covers. :-)
>
> Looking at the assorted bundles, I noticed the TODO bundle has some of
> what I want (ability to display output via pop-up screen like word
> counts). But, I'm looking for some sort of tutorial or guide to
> creating a bundle.
Hi all,
I was wondering if it was possible to adjust the font line spacing in
TextMate? i.e. the amount of horizontal whitespace between each line of text
in the editor window.
Cheers,
Diego
Linux user for 10 years. Bought a Mac six months ago. Bought TextMate
5.99 months ago. Wrote a novel (most of a first draft) with Vim in
LaTeX compiling to PDF. Plan to write one during NaNoWriMo using
TextMate; using Markdown that compiles through LaTeX to PDF (and also
compiles to EPUB). First Post here. Enough. Staccato. Typing.
Howdy.
Presently, I've modified Kitabu (github) which gives me a set of rake
tasks that do this just fine. I'd rather drink the TextMate kool-aide
and create a Bundle that does what I want. I bought Scrivener (the
document project tool), but it's not quite my style---I don't like the
text in RTF, don't like how it manages content under the covers. I
probably shouldn't care about that, but I did write a novel in LaTeX.
Published an unwieldy Sci-Fi milieu "mock encyclopedia" in LaTeX, too.
So, I'm used to under the covers. :-)
Looking at the assorted bundles, I noticed the TODO bundle has some of
what I want (ability to display output via pop-up screen like word
counts). But, I'm looking for some sort of tutorial or guide to
creating a bundle. Maybe my googler isn't working and I just couldn't
find it when I went looking.
BTW, stoked that PmWiki is the wiki engine; been using it for six years.
--
Ben Wilson
"We cannot determine the character or nature of a system within
itself. Efforts to do so will only generate confusion and disorder."
Boyd
Hello,
is it possible in Textmate to use autoindet to format programming code?
E.g the code
______________________________________________
with timeout of 86400 seconds
set theList to {"Mac OS:Users:malte:Movies"}
repeat with nItem in theList
set Ordner to nItem
tell application "System Events"
set these_files to (every file of folder Ordner whose name extension is "avi")
end tell
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_file1 to (item 1 of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
open file quelldatei
end tell
end repeat
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set zieldatei to "Mac OS:Users:malte:Movies:mov_version:" & fileName & ".mov"
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
save window fileName in file zieldatei
close window fileName
end tell
tell application "Finder"
delete file quelldatei
end tell
end repeat
end repeat
say "fertig"
end timeout
is changed by my program to
with timeout of 86400 seconds
set theList to {"Mac OS:Users:malte:Movies"}
repeat with nItem in theList
set Ordner to nItem
tell application "System Events"
set these_files to (every file of folder Ordner whose name extension is "avi")
end tell
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_file1 to (item 1 of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
open file quelldatei
end tell
end repeat
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set zieldatei to "Mac OS:Users:malte:Movies:mov_version:" & fileName & ".mov"
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
save window fileName in file zieldatei
close window fileName
end tell
tell application "Finder"
delete file quelldatei
end tell
end repeat
end repeat
say "fertig"
end timeout
Is there any way, that Textmate could do this for other languages?
best regards
Malte Christian
Hi gang,
What I'd love is to be able to use a single TextMate project to hold all txt
files opened from the finder.
Is there a way to tell Finder to Open With TextMate and add to an open
project? Or to just add a new tab onto the existing project? Instead of TM
just opening up a new window for each file...
Or is there a way to tell TextMate, through a bundle or some other way, to
receive newly opened files into the currently open project?
Thanks hugely,
Chris
--
View this message in context: http://old.nabble.com/Open-files-from-finder-into-single-project-%28single-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi All,
Apologies if this isn't the right place to post this questions!
I have recently installed textmate on the advice of 'Ruby on Rails Tutorial Learn Rails by Example' : http://railstutorial.org/chapters/beginning#top
I am up to the part where you open a file for the first time using Textmate with: mate Gemfile
This works and opens up the relevant file but all of the code is black - there is no differentiation between comments, variables etc it is just a page of plain text.
I have tried changing the themes but that simply changes the background colour vs the text colour but doesn't help distinguish between the different code elements.
In the tutorial everything is highlighted as per a proper code editor but I just cannot find how to do this - please help!!
I am sure it is something incredibly simple that I am not doing but I've watched some tutorials and searched through the help and on Google but still no luck.
Any help will be very much appreciated!!
Thanks
Matt
The information contained in this e-mail is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise, is not intended to waive privilege or confidentiality. Internet communications are not secure and therefore Conde Nast does not accept legal responsibility for the contents of this message. Any views or opinions expressed are those of the author.
The Conde Nast Publications Ltd (No. 226900), Vogue House, Hanover Square, London W1S 1JU
Hey has anyone experienced problems with textmate running a ruby file
against RVM set to 1.9.2. The "Command R" runs ruby code, but I noticed it
is running 1.8.7 (based on the errors I get when I try to run something
specific to Ruby 1.9, such as the symbol short cut for hashes...)
x={a: 1, b: 2, c: 3}... Does not work
But the ruby 1.8.7 short cut
x={a, 1, b, 2, c, 3}.... Does work.
Is there a preference setting in Textmate that tells it to use which Ruby
interpreter?
Thanks
10/3/10 9:36:02 AM TextMate[5413] This application is trying to draw a very large combo box, 145 points tall. Vertically resizable combo boxes are not supported, but it happens that 10.4 and previous drew something that looked kind of sort of okay. The art in 10.5 does not break up in a way that supports that drawing. To avoid breaking existing apps, NSComboBox in 10.5 will use the 10.4 art for large combo boxes, but it won't exactly match the rest of the system. This application should be revised to stop using large combo boxes. This warning will appear once per app launch.
Hello all,
Two questions:
1. I noticed that in the stock CSS bundle the snippets do not have a 'source' namespace.
this is inconvenient since it means they popup when they're not supposed to and take up abbreviations that I would like to use in other contexts for other snippets.
so - since there are about 40+ of these things, is there an easy way to change the source on all of them at once?
2. I have little to no experience building TM commands but I am wondering if it is possible to pass parameters from snippet expander shortcuts.
perhaps an example would be better:
In CSS bundle using snippet Tab Trigger: 'p' for 'padding', being able to input - for example - 'p20' and get 'padding: 20px;' and then later 'p10' and get 'padding: 10px'
in other words the number is a variable that gets written into the expanded snippet.
this seems like it should be possible but I'm not the man to figure it out.
that's it!
thanks,
bennett
Hello,
I started to use TextMate with an Actionscript 3 Bundle at the office where
i work and since then I'm much more productive and organized with my code,
which is very important.
So I installed also at home, however i cannot get it to work correctly here.
When I open the Bundle Editor, I see the Actionscript 3 Bundle and all the
commands, it seems to be the same at work. But they don't work here at home
(except for some, like shift+return which is a 'function' snippet).
For example there's a 'get' command and it is associated with the 'tab'
trigger. It just doesn't work, however, it worked when I left the field
"Scope Selector" blank in the Bundle Editor settings for the command 'get'.
So I must be missing something there...
Another thing, I use the 'clouds' theme at home and it also doesn't look the
same as it looks at the office.
One thing I miss is that I'm used to use class variables with an "_" before,
and those variables get a different color, which helps a lot. For example: I
have a class with a private var "_xOffset", and the constructor of that
class receives the argument "xOffset", then "_xOffset" (in blue) receives
the value of "xOffset" (in black).
Here at home I can't manage to make the variable with an underline in front
to get the color blue. Even though I installed TextMate, the as3 bundle file
and the clouds theme from the same sources, at home and at the office. What
could I be missing ?
Thanks in advance !
--
Isaac
Hi there,
I am trying to reproduce a table, which I copied the elemnts out of a
pdf-file to create a LaTeX-Table.
Fortunately there is a macro in the LaTeX-Bundle, which creates a table of
selected items automatically.
But my items, when pasted into TextMate aren´t properly formated. There a 3
blocks consisting of 10 rows. The blocks are seperated by an empty line. But
I would like to have the block (name it vector) as a column, and the second
vector as the second column...ending with a 10x3 Matrix
So, how to change this:
a
a
a
b
b
b
c
c
c
Into:
a b c
a b c
a b c
Thank you very much for your help.
--
View this message in context: http://old.nabble.com/Reformatting-several-blocks-of-rows-to-a-table--tp298…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Before I start to write my own, anybody has a Nagios configuration bundle?
Thanks,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:melo@simplicidade.org
mailto:melo@simplicidade.org
On Thu, Sep 23, 2010 at 8:00 AM, <textmate-request(a)lists.macromates.com>wrote:
> On Wed, Sep 22, 2010 at 20:55, minimal design
> <textmate(a)minimaldesign.net> wrote:
> > I've looked through the docs but can't figure it out...
> > I'm trying to add CSS3 stuff to the default CSS bundle, but I don't want
> to
> > touch the original bundle off course so in my own bundle I try something
> > like:
> >
> > { scopeName = 'source.css.mcss'; fileTypes = ( 'css', 'css.erb', 'less');
> > foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))';
> > foldingStopMarker = '(?<!\*)\*\*/|^\s*\}'; patterns = ( { name =
> > 'meta.selector.css'; begin = '^(?=\s*[:.*#a-zA-Z])'; end = '(?=\{)';
> > patterns = ( { name = 'entity.name.tag.css'; match =
> >
> '\b(article|aside|audio|canvas|command|datalist|details|embed|figcaption|figure|footer|header|hgroup|keygen
> >
> |mark|menu|meter|nav|output|progress|rp|rt|ruby|section|summary|time|video|wbr)\b';
> > }, ); }, { include = "source.css"; } ); }
> > and I get all the new elements highlighted like they're supposed to, but
> > that "cancels out" the standard CSS elements. I thought adding the
> > "source.css" would take care of that but obviously it doesn't... Do I
> have
> > to include the standard elements back into the regex? Is there a better
> way?
> > Thanks for any pointer in the right direction!
>
> Not sure if it'll work but you could try adding your pattern after
> including
> `source.css`, i.e.
> patterns = ( { include = "source.css"; }, ? );
>
> HTH,
> Martin
>
It seems that whatever I put last, it cancels the other one out... From the
DOc, I though that it would inherit if you use the name convention... But
the inheritance doesn't happen within patterns that have the same name? Is
that what the deal is? Or I"m doing it wrong? It seems counterproductive not
to be able to ad on to a rule, so I tend to think I'm doing it wrong, but
I've tried all the option I could think about... Anyone has done this
before? If I have to just have to duplicate and modify the whole default CSS
language, that's fine, but I want to make sure there's no better way
first... Thanks!!
I was wondering if it was possible to use xelatex in place of latex
from within Texmate (using the LateX bundle)?
Would it be as simple as using directives such as:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
Or doing some other manual edition of the bundle code?
Thanks!
I've looked through the docs but can't figure it out...
I'm trying to add CSS3 stuff to the default CSS bundle, but I don't want to
touch the original bundle off course so in my own bundle I try something
like:
{ scopeName = 'source.css.mcss'; fileTypes = ( 'css', 'css.erb', 'less');
foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))';
foldingStopMarker = '(?<!\*)\*\*/|^\s*\}'; patterns = ( { name =
'meta.selector.css'; begin = '^(?=\s*[:.*#a-zA-Z])'; end = '(?=\{)';
patterns = ( { name = 'entity.name.tag.css'; match =
'\b(article|aside|audio|canvas|command|datalist|details|embed|figcaption|figure|footer|header|hgroup|keygen
|mark|menu|meter|nav|output|progress|rp|rt|ruby|section|summary|time|video|wbr)\b';
}, ); }, { include = "source.css"; } ); }
and I get all the new elements highlighted like they're supposed to, but
that "cancels out" the standard CSS elements. I thought adding the
"source.css" would take care of that but obviously it doesn't... Do I have
to include the standard elements back into the regex? Is there a better way?
Thanks for any pointer in the right direction!
HI,
I am trying TextMate for my RoR development needs, and I see with
exasperation that, when I am in Ruby on Rails scope, I cannot type lowercase
'a'! Hence, I cannot type :all, or 'class', or any word that contains a
lowercase 'a'!!!
Anyone envcountered anything of this sort? I am on Snow Leopard, TextMate
1.5.8.
Thanks,
AE
Hello,
when I save a file in Textmate it doesn't remember the directory. The
path in the save as dialog is always set to the root directory (/).
Textmate: Version 1.5.9 (Revision 1589)
System: Mac OS X 10.6.4 (10F569)
It might have something to do with NSNavLastRootDirectory as the
following tweets indicate:
http://twitter.com/davybrion/status/21932571235http://twitter.com/scott_to_s/status/21937812511
NSNavLastRootDirectory gets written upon termination of Textmate, but
after restaring it gets set back to the root directory.
Cheers, Stefan
Hi,
I just recently downloaded the Pandoc bundle from GitHub, but have run
into the following error message when I try any of the 'Convert
to...' scripts in the bundle:
/tmp/temp_textmate.U3BOyu: line 12: pandoc: command not found
However, I do indeed have pandoc on my system. I built the pandoc
library from source, but have added the necessary directory to my PATH
variable.
Are there any future modifications that I need to make to shell
variables accessible to TextMate ?
Thanks!
Dan
Any one know how to set up textmate to use the D compiler? There is a
"Build and compile" single file option, but I am not sure where to tell
Texmate, where the D compiler is...
Hi All,
I'm currently just starting to get into TextMate on my Mac, and E-TextEditor
on Windows. One thing I'd like to be able to do is launch the currently
active ruby file in Ruby at the terminal, as opposed the to the default
"RubyMate". I essentially want a command prompt to open and the following
command to be run: /path/to/ruby "/path/to/current/ruby/file". Does anyone
know of a simple command to do this so I can add to my Ruby "bundle". Note,
I want to manually specify the path to my ruby executable in the command. I
don't want to use the Ruby version bundled with TextMate.
Cheers,
Tom
Hi everyone,
I have a small program that detects
errors and outputs their presence in
a file "error.txt" with the following format:
<Error> found in line 84
<Error> found in line 98
<Error> found in line 129
<Error> found in line 300
<Error> found in line 620
<Error> found in line 1000
I was wondering can I build something (macro? command?)
that will help me navigate through this errors, without
me going manually to each line. Like when textmate displays
errors where you can just simply click on a link to jump to
that line number.
Ted.
--
View this message in context: http://old.nabble.com/utility-to-navigate-through-errors.-tp29739203p297392…
Sent from the textmate users mailing list archive at Nabble.com.
Hi, is there any support in TextMate for PHP's Alternate Syntax?
e.g. Regular Syntax:
<?php
if (1 == 1) {
//Output
}
else {
//Output
}
?>
e.g. Alternate Syntax:
<?php
if (1 == 1):
//Output
else:
//Output
endif;
?>
At the moment, I can't find a way to get code-folding working with the
alternate syntax, and I would also like to be able to set TextMate's TAB
auto-complete to use the alternate syntax.
Tim Mackey
Hi everyone,
I want to write regular expression that
allows me to search for things like:
abc (blah blah blah)
dre (blah blah blah)
but that it only does it if the line does not contain
a % sign
this is what I have so far:
\w+\s+\(\w+\)
Any help appreciated,
Ted
--
View this message in context: http://old.nabble.com/Regular-Expression-needed-tp29734413p29734413.html
Sent from the textmate users mailing list archive at Nabble.com.
When I press Option + Escape to use the intelligent auto-complete
functionality of TextMate, the following is dumped to the file I'm currently
editing...
*/tmp/temp_textmate.KzzomC:38:in `<main>': undefined method `to_a' for
"":String (NoMethodError)*
The "KzzomC" string is variable, but the rest is always the same. Does
anyone know how to fix this as it would be really good to be able to get
this functionality working.
Tom
Hello:
I was editing my bundle in the Bundle Editor of TextMate, and I inadvertently hit some key combination that caused my entire bundle to get deleted. The worse part is that I can't seem to be able to restore it!
Where are TextMate's bundle settings stored? I used Time-Machine to restore the preferences file and the bundle package from a back up, but this did not restored it.
Please help,
dZ.
How do I close a file that is open but that doesn't have a tab because
too many other files are open with tabs? These are the files that
appear when you click on the double-arrow to the right of the tabs. I
keep clicking on the window's close button and closing all my files.
(Grrr!)
Ideally, when I'm editing a file, its tab would appear at the top of
the window, displacing some other tab, so that I have an X button to
click and a clearer picture of what file I'm editing. I'm in a habit
of looking at the tab for the name of the file, but it's only
sometimes there. I know it's consistently in the window's title line;
because it's usually in the tab, I'm not making a habit of looking at
the title line.
Thanks for your help!
~joe
I need help getting Textmate to find gems. I've spent quite a bit of type
researching the problem, but being new to both OS X (Snow Leopard) and the
use of Ruby gems, I can't seem to figure out what the problems are. Many
others have had similar problems, but their solutions don't seem to fix my
problems. (Among other things, I did read Section 8--Shell Commands--of the
Textmate manual.) I expect it largely has to do with the setting of
environmental variables, but that's just a guess. A secondary--and no doubt
related--problem is that Ruby cannot find the gem active-record when invoked
in a terminal (or in irb), as shown below.
I've tried entering a TM_PATH shell variable in Textmate preferences, but
that hasn't helped.
Here are some possible clues. No doubt I have provided some unnecessary
information and have left out important information.
I recently used RVM (Ruby Version Manager) to reinstall Ruby. From a
terminal I then ran
gem install xml-simple
gem install sqlite3
gem install activerecord
They all appeared to install OK.
Then I wrote the following short script (test.rb):
************
#!/usr/local/bin/ruby
# Ruby 1.9.2
require 'rubygems'
print 'Gem.path = '
puts Gem.path
print 'ruby_description = '
puts RUBY_DESCRIPTION
require 'xmlsimple'
require 'sqlite3'
require 'active-record'
*************
When I run test.rb in a terminal I get:
*************
MacBook-Pro-2:economics101 cary$ ruby test.rb
Gem.path = /Users/cary/.rvm/gems/ruby-1.9.2-p0
/Users/cary/.rvm/gems/ruby-1.9.2-p0@global
ruby_description = ruby 1.9.2p0 (2010-08-18 revision 29036)
[x86_64-darwin10.4.0]
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load
-- activerecord (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from test.rb:12:in `<main>'
*************
When I run Ruby test.rb from within Textmate (cntrl-r), I get:
*************
Gem.path =
/Users/cary/.rvm/gems/ruby-1.9.2-p0@global
/usr/local/lib/ruby/gems/1.9.1
ruby_description = ruby 1.9.2dev (2010-07-02 revision 28524)
[x86_64-darwin10.4.0]
LoadError: no such file to load — sqlite3
method require in test.rb at line 11
method <main> in test.rb at line 11
copy output
*************
(If I have <require 'active-record'> before <require 'sqlite3'>, I get the
same message, with 'active-record' substituted for 'sqlite3'.)
Notice that xmlsimple was found when running test.rb from a terminal, but
not with cntrl-r in Textmate. See below (near the end) where I think
Textmate found xmlsimple.
Next I ran irb:
*************
MacBook-Pro-2:~ cary$ irb
/Users/cary/.rvm/rubies/ruby-1.9.2-p0/bin/irb:4: warning: Insecure world
writable dir /Users/cary in PATH, mode 040777
ruby-1.9.2-p0 > RUBY_DESCRIPTION
=> "ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]"
ruby-1.9.2-p0 > Gem.path
=> ["/Users/cary/.rvm/gems/ruby-1.9.2-p0",
"/Users/cary/.rvm/gems/ruby-1.9.2-p0@global"]
ruby-1.9.2-p0 > require 'xmlsimple'
=> true
ruby-1.9.2-p0 > require 'sqlite3'
=> true
ruby-1.9.2-p0 > require 'active-record'
LoadError: no such file to load -- active-record
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from (irb):1
from /Users/cary/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>'
(ibr's message, "warning: Insecure world writable dir /Users/cary in PATH,
mode 040777" is something I should look into as well.)
*************
(It makes no difference if I precede the above with <'require rubygems'>.)
and then back at a terminal:
*************
MacBook-Pro-2:~ cary$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
MacBook-Pro-2:~ cary$ which ruby
/Users/cary/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
MacBook-Pro-2:~ cary$ echo $PATH
/Users/cary/.rvm/gems/ruby-1.9.2-p0/bin:
/Users/cary/.rvm/gems/ruby-1.9.2-p0@global/bin:
/Users/cary/.rvm/rubies/ruby-1.9.2-p0/bin:
/Users/cary/.rvm/bin:/usr/local/bin:
/usr/local/sbin:
/usr/local/mysql/bin:
/usr/bin:/bin:
/usr/sbin:
/sbin:
/usr/local/bin:
/usr/X11/bin
MacBook-Pro-2:~ cary$ ls /Users/cary/.rvm/gems/ruby-1.9.2-p0
bin cache doc gems specifications
MacBook-Pro-2:~ cary$ ls /Users/cary/.rvm/gems/ruby-1.9.2-p0/gems
activerecord-3.0.0 arel-1.0.1 ffi-0.6.3 rake-0.8.7 tzinfo-0.3.23
activesupport-3.0.0 builder-2.1.2 i18n-0.4.1 sqlite3-0.1.1
xml-simple-1.0.12
MacBook-Pro-2:economics101 cary$ ls
/Users/cary/.rvm/gems/ruby-1.9.2-p0@global/gems
MacBook-Pro-2:economics101 cary$
MacBook-Pro-2:economics101 cary$ ls /usr/local/lib/ruby/gems/1.9.1/gems
libxml-ruby-1.1.4 xml-simple-1.0.12
*************
The last line suggests to me that, from Textmate, Ruby is using an old
version of xlm-simple.
Any help would be greatly appreciated.
Cary
--
View this message in context: http://old.nabble.com/Textmate-cannot-find-Ruby-gems-tp29724886p29724886.ht…
Sent from the textmate users mailing list archive at Nabble.com.
Dear TextMate users,
I work with textmate 1.5.8 (1505) under Mac OS X 10.6.2. I installed the latest version of latexmk (version 4.11) and tested it in the terminal, works like a charm. I then tried to compile a .tex document with latexmk via TextMate. If I click the button "Show Latexmk.pl Messages" I can see which version of latexmk is used. It turns out that some old version is used (version 3.21j of 2 December 2007). After that I changed the variable "TM_LATEX_COMPILER" explicitly from "latexmk.pl" to "/usr/local/texlive/2009/texmf-dist/scripts/latexmk/latexmk.pl" --- still the old version is used. I have no idea where this old version is located and how I can force TextMate to use the new one. The new one is correctly installed, I can use "latexmk foo.tex" from everywhere on my system.
How can I tell TextMate to use the correct version of latexmk?
Cheers,
Marius
Hi.
I like TextMate and i want to by it.
But i haven't a job now and price for program very expensive for me.
Have you any discount for me?
I respect copiright and anyway not will be to use not license product.
Konstantin. Russia.
Hi all-
I'm writing a command where it would be really great to preserve a string for later use by other commands.
I'm assuming there no way to define a environment variable (like LAST_STAMP or something) that could be set from a command, would persist, and could be read from a later invocation of another command?
Any other kind of scratchpad memory that I could take advantage of? (I realize I could write a small file somewhere.)
Many thanks in advance!
Charles
Hi,
I have a list of functions ( thousands ) for a certain proprietary
language and I would like to enable some sort of autocomplete in
textmate but that works similar to Eclipse's, IDEA's, etc. in that it
allows you to
1. Search or autocomplete
2. Once you select the method, you get a "snippet" template so you can
tab around the parameters
I imagine lots of people have tried this and I am also afraid that
there is no simple solution.
What's the best path here?
FYI. The library consists of around 2000 functions.
Regards,
A
--
Aldo Bucchi
@aldonline
skype:aldo.bucchi
http://aldobucchi.com/
Hi,
I am developing a Bundle that will startup a local database server (
think SQLite ). Some of the questions I have are:
* What's the recommended way of bundling binaries into Bundles, if any?
* What startup/shutdown hooks exist, if any?
Regards,
A
--
Aldo Bucchi
@aldonline
skype:aldo.bucchi
http://aldobucchi.com/
I thought this workflow should work, but it’s running into trouble:
I open a new message in Apple Mail.
I type the keyboard command for Edit in TextMate.
I write a simple document in Markdown.
I use the Markdown bundle command to convert to HTML.
I use the Mail bundle command Send HTML as email via mail.
I get “Syntax Error: Expected end of line but found property (-2741)"
Problem seems to occur whatever the language grammar is set to. I’m using TM version 1.5.9, with updated bundles. I didn’t find a mention of this in the archive.
Thanks very much for any suggestions about a fix or a better workflow.
I'd like to:
1) close all foldings at level 0
2) open all foldings at level 1
casting a single command.
i.e. without having to manually cmd+opt+0 cmd+opt+1
I don't have a clue about how to do it, can somebody help please?
--
venera Lo'oris su http://looris.net
Hello,
thanks for the help, I have tried yoursuggestions and it helps.
But maybe it could be put in the next version as a possible feature, it
would be useful for people writing texts in textmate, especially when
using a screenwriting mode.
Best,
Daniel
Is there a possibility to change the width of the caret so that it would
appear to be a blinking rectangular?
_______________________________________________
Not that I know of, but you might at least try to turn on the "highlight
current line" preference:
go to Preferences
General tab
Check "Visual Ornaments: Highlight current line"
You can then move over to the Fonts & Colors tab and pick a background
color for the current line.
Also, the shortcut Command-L is good for centering the current line
vertically in your window (if it's possible). Between those two, I can
usually find my current line.
I realize that's only one dimension, and you were hoping for two. I
don't know of anything to help you locate the current column, short of
doing something manual, like pressing Shift-RightArrow to make a
selection that would stand out. Not what you were after, but that's the
most hope I can offer.
I betcha, if challenged properly, one of the wunderkinds of this list
like Hans or Ciarán can whip together a plug-in that does just what
you're looking for. But that task is not for me.
+dru
Hi,
When I used to have a project open and then close it, the next time I would open the project all the files that were open would still be open and I could just start working on them again. Now, when I open the project again, all the files are closed and I have to open them all again. It did not used to do this, whatever was left open, would still be open. Now whatever was open, is closed. I cannot find any preference to change this and I'm not sure why this behaviour changed at all.
Does anyone know how change it back, or what I may have done to change it? I want all the files I was working on when I close the project to still be open when I open it again.
Thanks,
Jon
When you want to start a new thread ALWAYS write a NEW letter to the
mailing list rather than reply to an existing one (and change subject).
When you reply to an existing letter the threading gets messed up
which makes managing threads problematic (and messes up the archive)!
Hi all-
Started working with Scala, but am bewildered by the number of bundles available for TextMate. Can anyone offer some info on which ones I should look at if there isn't an obvious choice?
Currently using Mads Hartmann's version...
Thanks!
Charles
Hello,
wenn i use run makeindex under Texmate i got this
____________________________
Input index file report.idx not found. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
Found 0 errors, and 0 warnings in 0 runs
index exited with status 1
____________________
I wante to use this command, then i run makeindex under textmate.
_______
makeindex Studienarbeit.nlo -s nomencl.ist -o Studienarbeit.nls
_______
Is it possible to change that?
cheers Malte
Hi, some time ago I asked a question about the Reformat Comment command from
the Source bundle and Allan kindly made some suggestions. In the interim
this command has continued to sort of not work the way I thought it should
in a few cases, and the other day I actually sat down and spent an
embarrassingly long time trying to fix it, and I was hoping someone could
give me some feedback. There were two problems that I wanted to fix:
1.) The command doesn't respect the wrap column set by the user
2.) The command sometimes adds extra whitespace where it shouldn't, for
example if you reformat
// lorem ...
//
// lorem...
it will add an extra space at the end of the empty line.
The first problem was pretty straightforward, and I think I corrected the
second problem as well. It looks like the problem was in the rubywrap.rb
script; a regular expression is used to identify comment lines, and this
regexp would incorrectly match the newline at the end of the empty line. I
changed it so that it only matches trailing spaces.
I've been using the modified rubywrap for a little while now and haven't
noticed any problems introduced by this change. A diff patch is attached; if
anyone has a few minutes to take a look I would appreciate it. Or if anyone
thinks this is just a non-issue, I would appreciate hearing that too. Is
this the right place to submit changes to be included in the Source
repository? Thanks in advance!
-Daniel Grady
Hello,
this is a little bug I found. When you try to open a named pipe (FIFO)
in TextMate, it crashes.
It's not that I do it regularly, I just tried to do it from curiosity :)
Karel
I would like to manage a few settings on a per-document basis (including unsaved documents). I'm not seeing any way to get a unique identifier associated with the document to make this possible. The documentation discuses TM_FILEPATH and TM_DIRECTORY which might be a start, but those don't seem to be set even when I execute the command with a saved document.
I looked into Applescript - I can get a list of application documents, but there does not seem to be any associated identifier. Even if there was, I would need to figure out the document associated with frontmost window. In Textmate, the window document property always seems to be null.
Thanks for any suggestions.
John DeSoi, Ph.D.
Hello,
I have used TextMate for editing LaTeX documents for a while now and I'm
very pleased with it. But I find it difficult to find the caret in the
text, especially when correcting documents and therefore browsing
through larger amounts of text without any commands.
Is there a possibility to change the width of the caret so that it would
appear to be a blinking rectangular?
Thank's in advance,
Daniel
Hi,
I am a flash developer and seeking the best way to use TM as my main development environment. I am using the flex and as3 bundles but I still find myself not having a debugger. If any of you out there could help me get set up with something that would be most helpful. I have heard fdb is useful (the command-line flex debugger), but I'm more use to GUI like the one included with Flash Builder. If there was any way to use that it would be great.
Thanks,
Dave
Stephen Oravec asked...
> Hello I'm a new user to textMate,I made a HTML Template, but don't know how
> to add it to TM, the help file doesn't really give much info on where to
> save the template.
Open the bundle editor (command-control-option-b) with at least one
file open in TextMate.
Select the bundle you'd like the template to be associated with (and
make a new one if appropriate). Then choose "new template" from the
"+" at the bottom left of the window, and fill in the template
appropriately. The file is saved to a "Templates" directory inside
that particular bundle. (Choose "show package contents" on one of
TextMate's existing bundles that has at least one template available
from the File menu and you'll see how it's all structured. They're
saved inside /Applications/TextMate/Contents/SharedSupport/Bundles/
for the bundles that come with TextMate, and in your
Library/Application Support/TextMate directory for any that you add.)
Cheers,
Paul
Hello I'm a new user to textMate,I made a HTML Template, but don't know how
to add it to TM, the help file doesn't really give much info on where to
save the template.
I've patched the ackmate plugin for textmate to fix the problem described in this issue:
Searching inside symlinked folders opens a new window
http://github.com/protocool/AckMate/issues#issue/5
Trevor Squires had been opening a a file like this from the plugin:
[[[NSApplication sharedApplication] delegate] openFiles:[NSArray arrayWithObject:absolute]];
Evidently after passing through Cocoa the original path to the file, which includes a dir symlink, is converted to the
equivalent path without the symlink before textmate proper gets the event. Texmate then opens the file in a new window because
it isn't in the project path anymore.
Here's the change I made:
http://github.com/stepheneb/AckMate/commit/1bc7e4ca698b51b2a0d523ecea277bfb…
Which was to call Texmate going through the shell with an NSTask.
I'm wondering if there is a better way -- Trevor thought my hack was a bit ugly ;-)
Hi there -
just in case anyone else runs into the following issues when using TextMate's Perl bundle and trying to run scripts:
1) TextMate has its own PATH variable (in the settings)... It's obvious but, make sure that the perl you are using is on that path (TM doesn't pick up the path in your env).
2) there is a problem with tainting in the file - to get round this (if you are using the -T in your shebang line for example)
change line 17 of exception_handler.pm in bundles/Perl.tmbundle/Support/exception_handler.pm to:
$ENV{"TM_ERROR_FD"} =~ /([0-9]+)/; my $error_fd =$1;
This will ensure that $error_fd is untainted.
3) You may find the following error, if a module you are using uses Carp, e.g. you are using use strict (or just use strict 'vars') and you have an error in the file:
Attempt to reload Carp/Heavy.pm aborted.
Compilation failed in require at /Applications/TextMate.app/Contents/SharedSupport/Bundles/Perl.tmbundle/Support/exception_handler.pm line 30.
If you do, make sure you add a use Carp::Heavy; in the script you are running. I think this is due to clearing up a circular import that would happen otherwise (because of some cleverness in exception_handler.pm)
If anyone can clarify any of this, great.
all the best
Tim
Tim Diggins
http://red56.co.ukhttp://tim.teamportfolios.com/
I am sure this has been discussed before but I cannot track it down.
I get the following error when using the TODO bundle with a latex file:
----
Scanning directory: ~/Dropbox/Aston/Research/Papers/Ontology_Evaluation
(erb):4: undefined method `+' for nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:99 from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/erb.rb:716:in `grep' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `each' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `grep' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77 from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76:in `open' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76 from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75:in `each' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75 from /Library/Application Support/TextMate/Support/lib/textmate.rb:201:in `call' from /Library/Application Support/TextMate/Support/lib/textmate.rb:201:in `each_text_file' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:71
----
How can this be fixed?
Thanks,
Christopher
Thanks,
I have tried to add "text.html -source.php" in the scope selector for the TAB snipped in HTML bundle, unfortunately the problem seems to be still there. What could be wrong?
I would like to remove that function from there only as I would like to disable other things when in phpDoc scope.
thanks
>> How is it possible to disable such behavior? I just want a tab space there.
>
> Open the bundle, scroll to the HTML bundle and find the snippet with the name "?". Either add " -source" to the scope or just remove the tab trigger.
--
Ciao
Fabio
I'm looking for a way to allow the user to login via a web page and then grab the session cookie set by the server. I want to use this to make further queries to the same server using curl. I discovered the MoinMoin bundle does something like this by reading the browser cookie file, but the cookie I need is a session cookie so it does not get written to the file.
More generally, is there any way to get a list of HTML output windows and query their properties, e.g. current URL, etc?
Thanks!
John DeSoi, Ph.D.
Hi All,
i'm getting errors when trying to use comands from the rails bundle. likei:
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17:
invalid multibyte char (US-ASCII)
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17:
invalid multibyte char (US-ASCII)
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17: syntax
error, unexpected $end, expecting ')'
...Mate.exit_show_tool_tip("The ‘create partial from selectio...
... ^
I am using latest edge, so
http://github.com/drnic/ruby-on-rails-tmbundle/issues/issue/14 isn't
it.
my ruby_path his /Users/Administrator/.rvm/bin/textmate_ruby
--
dc
David Clark
16 Harcourt St #2I
Boston, MA 02116
I am very curious about git. I understand roughly
how it works and it can be used, but since there
are ppl here using it massively, would you kindly
write a short 'git/git bundle for dummies' ? What I'd like
is an example of how concretely you use it every day
and what it gives you. My needs are basic, I have
many joint projects (=joint papers) with several people
scattered around the world, and I would like to
understand if it is worth learning to use it or not
to manage my collaborations.
Piero
Hi,
like suggested by Allan I'll try to explain again the problem:
1. create a new file from template -> HTML -> XHTML - 1.0 STRICT;
2. save it like test.php and edit it in HTML mode;
3. before the head ends, type "style" and press tab;
4. go inside style tags, now it should be possible to use autocomplete for CSS;
5. start typing something like:
#test { font
now hit the Esc key while the cursor is near the "t". It does nothing here.
Now try to create a new empty file, save it as test.css: you are in CSS mode.
Like before type:
#test { font
and hit Esc near the "t": it will start to rotate autocomplete choices like:
font-family
font-size
font-size-adjust
etc.
This is what I would like to have inside <style> </style> in the HTML head.
Here is not working in such way: yes I can hit TAB and I will get similar choices but I like so much the Esc key that I would like to know if it is possible to have it work inside html page head style tags.
It is so annoying to have to type all the words like "border" when you can just type "bor" and hit Esc!
It works in CSS file not in php / html one.
Is there a fix?
Thanks!
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Risparmia fino al 90% con Groupon CityDeal.
* Gruppi D'Acquisto Sicuri e Risparmi Garantiti
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid813&d-8
The code completion keyboard shortcut (ALT+ESC) is not working for me in
'css' files. Instead, the following message gets generated wherever my
cursor is:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/codecompletion.rb:319:in
/bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of filemap' for
nil:NilClass (NoMethodError)
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/codecompletion.rb:88:in
/bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/codecompletion.rb:60:in
I'm not super techy, so I'm not exactly sure what that means. Is my
'codecompletion' file corrupt? Is some path broken?
Do I need to re-install or replace a file to fix this?
Thanks in advance!
Clay
Hi
I want to find a way to have history of changes/movement over a file/ files in project. I've already found a way to go to last 1 change, but I love to see ability to move over last editing places with ease.
Is there any way?
best regards
Hi,
According to the texmate
manua<http://manual.macromates.com/en/preface.html%20>l
back-tab should be triggered by Shift-Tab.
For some reason, Shift-Tab isn't working for me. I can trigger back-tab
with Shift-Alt-Tab.
Shift-Tab would be preferable, any ideas why it's only working with
Shift-Alt-Tab or how to get Shift-Tab to work?
many thanks,
-Mike
I can't run .rb files in TextMate; get this error:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1:
undefined method `+' for nil:NilClass (NoMethodError)
Did a lookup for this error on Google; is my Ruby bundle outdated?
Thank you in advance.
--
View this message in context: http://old.nabble.com/Can%27t-run-Ruby-files-in-TextMate-tp29563002p2956300…
Sent from the textmate users mailing list archive at Nabble.com.
When I change the language in the Edit > Spelling > Show Spelling & Grammar
menu from English to Italian, it seems to change the language for all
textmate files, not just the one I'm working with.
I suspect I'm doing something wrong here, but is there a way to have a
per-file language for the spell checker?
--
View this message in context: http://old.nabble.com/Multiple-Languages-for-Spell-Checker-%28Per-file-lang…
Sent from the textmate users mailing list archive at Nabble.com.
Hello Allan - I have a request for 2.0:
in the Bundle Editor I've several times made the grave error of hitting delete one too many times and accidentally deleting an entire bundle.
for whatever reason, when I'm in the BE and going through my commands, macros, etc, I've managed to accidentally select the bundle itself and hit delete.
not such a big deal if they're stock bundles but many of mine have been customized to suit my needs.
anyway, I've made this mistake a couple of times and I'd just like to suggest a warning dialog of some kind that pops up before you delete an entire Bundle.
I know it's kind of a spaz move on my part - but if it's happened to me than it's happened to other people too.
thanks!
Bennett
>> Rob McBroom <mailinglist0(a)skurfer.com> wrote:
>>> The fancy ?new? web preview, not the built-in boring one. :)
>>
>> I'm not sure what you mean by that, for all I know the features you're
>> talking about are available in the built-in web preview?
>
> OK, so they're both bundled with TextMate, but there's the one that's on the application's Window menu (which is what I meant by ?built-in?) and then there's the one that uses stuff in the support folder.
Out of curiosity, do you consider the Web Preview enabled via Application Support/Textmate to be "fancy" just because it has a different theme, or does it have some other codebase?
The reason I'm asking is that a few months ago the option to run WebMate, the WYSIWYG editor, disappeared from my "boring" Web Preview and I've been unable to conjure it back:
http://lists.macromates.com/textmate/2010-July/031152.html
I'm wondering if I should be trying this other, "fancy," Web Preview? If it's as simple as downloading a Theme that reveals the "Enable live editing" link, I'll be a happy camper.
jon
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
Bennett, rather than a dialog warning, Cmd-Z should be your friend.
Undo is my favourite command....
Carl Forde
Our doubts are traitors and make us lose the good we oft might win by
fearing to attempt.
— William Shakespeare, "Measure for Measure", Act 1 scene 4
Message: 10
> Date: Wed, 25 Aug 2010 11:54:16 -0700
> From: plastichairdoo <plastichairdoo(a)gmail.com>
>
> Hello Allan - I have a request for 2.0:
>
> in the Bundle Editor I've several times made the grave error of hitting
> delete one too many times and accidentally deleting an entire bundle.
> for whatever reason, when I'm in the BE and going through my commands,
> macros, etc, I've managed to accidentally select the bundle itself and hit
> delete.
> not such a big deal if they're stock bundles but many of mine have been
> customized to suit my needs.
>
> anyway, I've made this mistake a couple of times and I'd just like to
> suggest a warning dialog of some kind that pops up before you delete an
> entire Bundle.
>
> I know it's kind of a spaz move on my part - but if it's happened to me
> than it's happened to other people too.
>
> thanks!
>
> Bennett
>
>
Hi, sorry if this is a well-known issue.
I purchased a site license and installed TextMate on my classroom machines. The students will be using network accounts.
What I discovered, to my dismay, is that registering TextMate using the local admin account does not unlock it for a network user. (When I logged on using a test student account, I needed to register again.)
This will be, to put it mildly, a pain in the ass, as students are not assigned to a particular machine.
Is there a way around this? I don't immediately see where TextMate maintains license information locally.
Thanks!
Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104
Phone: (215)596-8691
FAX: (215)596-8543
E-mail: r.zauhar(a)usp.edu<mailto:r.zauhar@usp.edu>
Web: http://binfcompsci.usp.edu/~zauhar
"We have always known that heedless self-interest was bad morals; we know now that it is bad economics."
-- Pres. Franklin Roosevelt, 20 January 1937
Hello,
I am trying to use the "reformat document" command in the stock JavaScript bundle. When I run this command I get the following PHP error:
PHP Notice: Undefined index: TM_BUNDLE_SUPPORT in /private/tmp/temp_textmate.i7oQrD on line 19
PHP Stack trace:
PHP 1. {main}() /private/tmp/temp_textmate.i7oQrD:0
PHP Warning: require(/lib/beautify.php): failed to open stream: No such file or directory in /private/tmp/temp_textmate.i7oQrD on line 19
PHP Stack trace:
PHP 1. {main}() /private/tmp/temp_textmate.i7oQrD:0
PHP Fatal error: require(): Failed opening required '/lib/beautify.php' (include_path='.:/usr/lib/php') in /private/tmp/temp_textmate.i7oQrD on line 19
PHP Stack trace:
PHP 1. {main}() /private/tmp/temp_textmate.i7oQrD:0
Can someone help me troubleshoot this? Have already lost several hours.
The fancy “new” web preview, not the built-in boring one. :)
I'm trying to create my own theme for the web preview and I have a couple of questions. I've got CSS in `~/Library/Application Support/TextMate/Themes/Webpreview/Liberation/style.css`. Among other things, it contains this:
body {
background: #FAF4DC;
font-family: "Liberation Sans";
}
pre, code {
font-family: "Liberation Mono";
}
So, my first question is: Why does this font get applied to all themes and not just when I select “Liberation” from the drop-down?
Second question…
I'm a plain-text e-mail guy, but on occasion, I'll want to copy and paste something out of the web preview (generated using Markdown) to send to Windows/Outlook-using coworkers that don't care about standards. Since they probably won't have the Liberation fonts, I tried to add some fallbacks like this:
body {
background: #FAF4DC;
font-family: "Liberation Sans, Helvetica Neue, sans-serif";
}
pre, code {
font-family: "Liberation Mono, Consolas, monospace";
}
This causes the font to be ignored completely and everything reverts to Times (again, in all themes). That should be valid CSS, so why does it break? Isn't this just being parsed by the system's WebKit?
Can I do what I'm trying to do? Thanks.
--
Rob McBroom
<http://www.skurfer.com/>
Hi,
I am trying to comment my functions using phpdoc, supported by php bundle.
Unfortunately I have a little problem, when I type:
/**
* Summary
*
* @return
*/
and the cursor is just after the "n" of "@return" tag, I cannot press the TAB key because the return chars are converted:
/**
* Summary
*
* @↩
*/
How is it possible to disable such behavior? I just want a tab space there.
Thanks!
--
Ciao
Fabio
at some point opening a file with Textmate from terminal like this $mate
filename worked great but some where along the way it does not work anymore.
Now I have to do this $open filename -a TextMate.
What do I need to do to get the shortcut working again ?
thanks,
--
Matthew Wallace
----------------------------------
http://mswallace.comhttp://twitter.com/mswallace
Hello,
i have a problem to use the "run MakeIndex"-function in Textmate.
If i try it, i got the following message.
Input index file report.idx not found. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
Found 0 errors, and 0 warnings in 0 runs
index exited with status 1
I guess, that Textmate tries to use the wrong command. If i use "makeindex report.nlo -s nomencl.ist -o report.nls" in the terminal it is working fine. Is there any possibility, that i could change the command, which is used by the makeindexfunction?
Is it by the way possible to use a short key for "run makeIndex" and "run BibText"?
best regards
Malte
I'm new to the list, and I'm sure that this has been hashed, rehashed, and dragged up by every new member. What is the plan for it? Anything new besides what's on the blog?
Thanks,
-Josh
____________________________________
Joshua Kehn | Josh.Kehn(a)gmail.com
http://joshuakehn.com
Hi,
I was about to report a bug (I think I can use the word here), but I did my duty and searched the mailing list first, and I found an email dating from... 2004, which describes the exact same thing:
http://lists.macromates.com/textmate/2004-October/000581.html
I agree with item 1, that's exactly how I felt too (thought TextMate crashed until I realised I didn't have spinning pizza of death, to use the same wording).
Item 2 doesn't really bother me as I use the OakWrapColumns preference.
Item 3 is what I wanted to report: when using a black background, some weird things happen...
There's no really any question I guess, just to say this bug is still here.
Thanks,
enas
hey all,
so - I'm probably missing something or just brain-farting - but is there a way to have a popup menu of *just* the commands/snippets for the *current bundle* you're using?
basically like opt-esc but with just the current bundle's commands/snippets/etc
thanks,
bennett
> What do you see when you put the cursor somewhere in the CDSS and hit ??P?
>
> `source.css.embedded.html` should be on the list somewhere. If not, I?m guessing your HTML bundle has changed from the default somehow.
If I move inside the tags:
<style type="text/css" media="screen">
</style>
of and html page ( a .php page in html mode ), I see : text.html.basic and source.css.embedded.html
If I move to a css file and do the same, I just see source.css .
Thanks
--
Ciao
Fabio
Hi, I made two small changes related to the Reformat Comment command in the Source bundle. The first is to have the command respect the wrap column set in TextMate's interface. The second is a fix to the rubywrap.rb script; it previously did not handle empty comment lines correctly. For example, if you were to run
// lorem ...
//
// lorem ...
through rubywrap, it will add an extra space at the end of the empty line in the middle. Within the script a regular expression is used to identify comment lines, and this regexp would incorrectly match the newline at the end of the empty line; I changed it so that it only matches trailing spaces. A diff of the changes is attached.
I haven't noticed either of these changes causing problems that didn't exist before; maybe they could be rolled in to the Source bundle?
-Daniel Grady
Hi,
I'm interested in some SQL improvements for TextMate. I'm trying to implement a command to execute the selection or SQL line. Not the current textual line, but the SQL line from the beginning of the command to the ending semicolon which may span many textual lines.
I've made some progress with the grammar and understanding scopes. I think I need to create a "SQL Statement" scope, but I don't see how to write the ending regular expression for the semicolon. Is there a way to do this in the grammar that ensures the semicolon found is not in a string or comment?
And TM_SCOPE tells me what scope I'm in, but how to I get the text of the current scope?
Thanks,
John DeSoi, Ph.D.
Hello,
I just installed Textmate on OS X 10.6.4, but the disk image did not create
the Textmate folder in Application Support, which is perplexing. Has anyone
encountered this issue? Either way, does anyone know how I could resolve it?
Here are the steps I executed:
1. Downloaded Textmate.app from
http://download.macromates.com/TextMate_1.5.9.dmg
2. Launched disk image
3. Dragged Textmate.app to my user's Application folder
4. Launched Textmate.app
5. Entered previously purchased license
Thank you.
>> Hi, hmm for me it works. If I locate the cursor after "1em; ", type b and press ESC I can see the autocompletion stuff.
>
> What happens if your cursor is inside the css stuff and you press CTRL+ESC? Does the CSS bundle pop up? If not, is the CSS bundle available? Is the document set to HTML?
In an empty css file, I can hit Esc after a "b" and I will get all the list of possible choices like border, background etc., if I hit CTRL+ESC it opens a popup with the bundles list with the focus on CSS.
If I do the same in html mode inside css stuff, the ESC key does only show me keywords that start with "b" it shows only "body" "base" "big" "blockquote" "br" "button", seems like html autocomplete instead of css one.
If I hit CTRL+ESC it opens a popup with the bundles list with the focus on PHP Smarty and that could be the problem!
I have just see that if I disable PHP Smarty bundle the problem seems to be solved.
But what if I want to use both bundles? Is there a bug to be solved in one of the two packets?
Thanks!
--
Ciao
Fabio
Hi,
Would anyone be able to tell me how I can get TextMate to use zsh as the default instead of bash for running commands?
I've tried adding #!/bin/zsh at the top of commands but that just runs them through bash first and it's altering some of the commands along the way.
Any help is much appreciated.
Iain
Is there a way of modifying the Typeset & view command in the LaTeX bundle so
that it will run make before typesetting the .tex file?
I have a Makefile that is used to run a script that generates a .tex file
that includes information from the current Git repository. (I'm using the vc
package, hence the need for the Makefile.)
Thanks,
APC
--
View this message in context: http://old.nabble.com/Run-make-when-typesetting-a-.tex-file-tp29337376p2933…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
That's maybe a basic usage question, but I couldn't find any answer on my own or by searching through the mailing list.
Is there any way to specify that I want to keep the HTML output window of some command in the background?
What I'm doing is that I'm editing some latex document, and what I'd basically like is that when I trigger a compilation, the compilation window doesn't gain the focus. For one thing, this allows me to keep editing the document while compiling, plus, it allows, once the focus has been given to the PDF viewer (i.e. Skim) to switch back to the editor with a simple Cmd-Tab.
Is that possible?
enas
Most of the Hyperlink Helper commands in that bundle do not work for me.
For example, if I run the 'Look up selection on wikipedia and link' command, I get:
----
sh: : command not found
/Library/Application Support/TextMate/Support/lib/ui.rb:297:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from /Library/Application Support/TextMate/Support/lib/ui.rb:20:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filecall_with_progress'
from /tmp/temp_textmate.Wzo5AT:63:in
----
What do I need to do to fix this?
Thanks,
Christopher