1 image worth 100s words. So here is a screenshot.
Same "column" in both lines... But first (ASCII-only) says its 47th column while second reports about 76th col.
Not very handy while trying to fit in 56/80 or other boundaries.
-- Alex
I do not know if anyone asked you about that already, but was tighter scripting integration via MacRuby (or Lua) ever considered for TM2?
Since I can see half of the bundle scripts (these doing heavier work) are Ruby already, I can see that integrating with MacRuby could bring potential benefits:
(1) persistent memory structures, each bundle could possible create some class storage variables, i.e. keep there autocompletion information
(2) TM2 could expose more dynamic API to the scripts: hooks, callbacks
(3) direct access to the editor buffer & GUI elements, exposing scope tree to the scripts
(3) scripts running via MacRuby could use all Cocoa API, making life easier for other apps integration, i.e. via AppleScript
(4) many (most?) of the work now done by TM2 core could be offloaded to the bundles and its developers, so TM2 itself could be just set of classes driven by MacRuby scripts
(5) possible to make more advanced autocompletion for various languages, thanks to (1) (2) (3)
But also I can see potential problems:
(1) no compatibility with TM1 (but anyway TM2 is about to be free upgrade to TM1, and also superior to its predecessor)
(2) bundle script can hog TM memory, and also hang TM, more discipline is needed for such scripts, but TM2 could supervise such scripts and kill them if necessary (similar way the browsers do with JavaScript)
(3) potential class namespace collisions, but then each bundle could possibly run inside its own MacRuby environment
(4) TM2 would need to bundle some version of MacRuby.framework
Regards,
--
Adam Strzelecki
Hey all.
Was playing with TM2 Ruby bundle lately, and found one interesting thing.
I had code:
require 'rubygems'
require 'mysql'
conn=Mysql.new('localhost', 'user', 'user')
puts conn.server_info
When I run this code in irb, or with ruby command line interpreter from Terminal.app I'm getting server version back (thats what I expect to see)
I have Mac OS Lion, rvm installed and TM_RUBY variable points to /Users/troyanov/.rvm/bin/textmate_ruby what is correct.
If I hit cmd+R in TM2, I'm getting:
(tried to edit catch_exception.rb, commented all cgi stuff... but no success, had a strange call to Mysql.new() with error like it should run with no args.)
/Users/troyanov/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:15: [BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
-- Control frame information -----------------------------------------------
c:0004 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :sub
c:0003 p:0170 s:0013 b:0008 l:000718 d:000007 BLOCK /Users/troyanov/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:15
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000308 d:000308 TOP
-- Ruby level backtrace information ----------------------------------------
/Users/troyanov/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:15:in `block in <top (required)>'
/Users/troyanov/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:15:in `sub'
-- C level backtrace information -------------------------------------------
See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.
-- Other runtime information -----------------------------------------------
* Loaded script: /Users/troyanov/Desktop/untitled.rb
* Loaded features:
0 enumerator.so
1 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin11.2.0/enc/encdb.bundle
2 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin11.2.0/enc/trans/transdb.bundle
3 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
4 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin11.2.0/rbconfig.rb
5 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
6 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
7 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
8 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb
9 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin11.2.0/pathname.bundle
10 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/pathname.rb
11 /Users/troyanov/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb
12 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
13 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
14 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
15 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
16 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
17 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
18 /Users/troyanov/.rvm/gems/ruby-1.9.3-p0(a)general/gems/mysql-2.8.1/lib/mysql.rb
19 /Users/troyanov/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/escape.rb
20 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/cgi/core.rb
21 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/cgi/cookie.rb
22 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/cgi/util.rb
23 /Users/troyanov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/cgi.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Am 17.01.2012 um 20:28 schrieb textmate-request(a)lists.macromates.com:
> Yes, some visual indication in browser/goto of these being 'hidden' would be helpful I think.
Agreed, a visual clue would have been great.
Also, since I don't have a habit of reading the description of each menu item, my brain assumed »hidden« referred to files that are hidden in the Finder (e. g. ~/Library in Lion or .* files), and that these hidden files are added to the list of files and folders to be filtered.
Max
Just created a new file (Cmd-N). Made the drawer visible and then got beach balled for about a minute while all the folders under the Sites directory got expanded recursively. None of the other directory on the same level - like Applications were expanded. Is this a bug or just some switch I need to turn off?
Ed Wong
Hi,
I am using TM2 almost exclusively now, but one thing still keeps me
reaching for TM1 - multiline find and replace. On TM1 you can click the
triangle to show multiple lines for the search and replace boxes. In TM2
the arrow is there but it doesn't seem to do anything - I'm hoping this is
on the list of things to implement!
Thanks,
Nigel
I think the lack of projects also leaves out the opportunity to innovate: beyond the points that some of you have mentioned, not gluing yourself to the file system layout also give you the opportunity to do things that go beyond what you can think of when relying on the filesystem alone.
One idea, for instance, is to add not a directory to a project, but a repository. You'd have access to previous versions of the file with a right click, peruse the commit logs in the morning over a cup of coffee, etc. Since not every file needs to be tracked by git, mirroring the file system would not be sufficient.
So then TextMate would know that the repository (or repositories, e. g. your local and the »official« one that you share) belongs to your project. You could add metadata, sort things as you wish, add settings, etc.
> Open the project folder. Bam. You're done. You've opened your project. If your project contains a bunch of directories lying around your system then, my friend, you are doing it wrong.
I think it's less about replicating functionality that projects offer, but that for certain jobs (and people), organizing your stuff in projects is just easier than to do it via the file system.
I also second the sentiment that using symlinks or so are not always an option. I use Dropbox to collaborate with colleagues on research projects. I keep one bibliography file. If I were to use a symlink, this would mess things up for my colleagues.
Beyond the fact that certain things cannot be replicated, it's a difference in styles. Some people merely prefer Projects to doing it on the file system level.
Max
I have 2 files open. I'm trying to find a couple of words in file 2 by selecting using Cmd-E those words in file 1. The first find (say the word is "Dumpty") using Cmd-G works as expected and the "Dumpty" is selected in file 2. But if the second word (say "Humpty") exists before the first word in file 2 then I get 'No more occurrences of Humpty' but the word "Humpty" doesn't get selected, selection stays on the "Dumpty". It looks like find doesn't wrap to the beginning.
If I do the find in reverse, find "Humpty" then "Dumpty", this works as expected.
Cheers,
Ed Wong
Hi,
I use the Watch Document feature all the time when typesetting LaTeX
documents and in TM2 I have the problem that the dialog that says
"LaTeX Watch: Compiling document" never disappears. If I force quit the
Cocoadialog things work just fine, but it is annoying to have to force quit
the process every time I Watch a new document.
Is there a fix for this problem?
Btw, is there a way to put to the folder drawer on the right as opposed to
the left? (I knew how to do this in TM1 but can't find a way to do it in
TM2).
Thanks.
--
View this message in context: http://old.nabble.com/TM2%3A-Latex%5CWatch-Document-problem-tp33154714p3315…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
pageup/down and home/end keys work fine in TM 1.5 by following the man pages.
In TM2 Alpha, pageup/down is not working, although home/end keys are working
fine. Any ideas?
Thanks,
CR
Dear all,
The Avian R bundle has been updated several times recently on GitHub,
but TM2 is not picking up the newer version. It still says that the
bundle was last updated 4 weeks ago. The bundle metadata seems to be
pointing to the right place, and other bundles (e.g. Ruby) have
autoupdated, so I'm at a bit of a loss. The bundle did have local
modifications but I've deleted the delta just in case, with no effect.
Any ideas, please?
All the best,
Jon
I'm trying to use .tm_properties to replicate functionality I've had with projects and I'm a bit at a loss. I've created a .tm_properties file in my home directory:
exclude = "{*.{aux,run.xml,tex.blg,thm,blg,bcf,fdb_latexmk,DS_Store,git}}"
softWrap = true
fontName = "Bitstream Vera Sans Mono"
fontSize = 11
tabSize = 4
windowTitle = "$TM_DISPLAYNAME – ${TM_DIRECTORY/([^\/])[^\/]+\//$1…\//g}"
The fact that the window title reads "file name.tex - abbreviated directory" indicates to me that the file is processed.
My project directory's .tm_properties file contains only the following entries:
[ *.tex ]
spellChecking = true
spellingLanguage = 'en'
projectDirectory = "$CWD"
The problem is that in the list of files and folders, not a single file is excluded. I've tried the following things already:
(1) Remove the .tm_properties file in ~/ and write the list of excludes in the project directory's .tm_properties file.
(2) Start with exclude = "{*.aux}" or exclude = "{name_of_exisiting_file}".
No luck. What am I doing wrong?
Max
Hello
I have some problems with Textmate 2 and the Latex-bundle.
1) I can't run the documents (Command + R)
2) I can't edit the bundle preferences file
I get the following error when I try to run the document:
File "/Users/ahlqvist/Library/Application
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texMate.py",
line 54 print "Using Tiger Compatibility version of Popen class" ^
SyntaxError: invalid syntax
which I don't really understand.
When I try to open the bundle preferences, I get this message:
Failure running “Preferences…”.
Traceback (most recent call last):
File "/Users/ahlqvist/Library/Application
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/configure.py",
line 4, in <module>
import tmprefs
File "/Users/ahlqvist/Library/Application
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/tmprefs.py",
line 77
print '<p class="error">There was a problem reading the
preferences file, continuing with defaults</p>'
^
SyntaxError: invalid syntax
I have tried to Google it and fix it myself, but I have not found any
information that can help me solve this issue.
/Viktor
I have the same issue as below, except I have removed TextMate 1 so now when using the colour insert picker from within TextMate 2 (Bundles->CSS->Insert Color), TextMate 2 hangs requiring a force quit. After force quitting TextMate 2, it re-opens automatically, and I am presented with the colour picker but am unable to do anything until the colour picker
is closed.
Thanks,
Tom
ExploZe wrote:
>
> Just to say there is a problem with the snippet "Insert Color..." Of Css,
> when you have the 2 version of TextMate on you're mac TextMate 2 Call the
> "Insert Color..." of TextMate 1 and so you loose the focus, but in the
> most of case i'm unable to get the focus back and i will force to "Force
> Quit" TextMate 2.
Hi,
I noticed that every time I try to run the command Comment Line/Selection from the source bundle I get the following error:
Failure running “Comment Line / Selection”.
Comment Line / Selection:16:in `require': no such file to load -- /lib/escape (LoadError)
from Comment Line / Selection:16
Looking at the particular line in the command I find:
require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape"
I assumed TM_SUPPORT_PATH does not exist, so I tried to hunt down lib/escape for TM2. However, a 'locate lib/escape' only gives me one hit, and that is for TM1:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/escape.rb
Looking into /Applications/TextMate2Alpha/TextMate.app/Contents/SharedSupport I indeed do not find a Support folder.
Now I am wondering if I am running into a particular problem with my TM2 installation (already tried downloading it again) or whether Comment Line/Selection can generally not be used with TM2 right now.
Regards,
Carsten
First, I just want to say how much I'm enjoying TM2. However, I'm seeing a problem with the indentation, and while I originally thought it was the Haskell bundle, I think it's really just TM2 being overly aggressive in correcting indentation.
If I tab in or delete indentation before typing anything on a new line, TM2 undoes my change in indentation when I start typing. if I start typing first, then I can change it with cmd-[ or cmd-], but cmd-[ or cmd-] doesn't do anything until I've typed something on the line.
So, say I have the following:
convert acc x
and I hit return after the x, TM2 puts me in column 0. If I hit tab to indent because I'm going to type a guard, I'm now at column 4. But as soon as I start typing the guard (which begins with a | character) I'm outdented to column 0 again. I can, of course, correct it with cmd-].
Also, if I simply paste some code in with the cursor in column zero, TM2 indents everything an extra tab. If I select the below and paste it into column 0 of a file whose language mode is set to Haskell, it all gets indented an extra tab.
myInt (x:xs)
| x == '-' = -1 * myInt xs
| otherwise = foldl convert 0 (x:xs)
where convert acc x
| x `elem` ['0'..'9'] = 10 * acc + digitToInt x
| otherwise = error ("bad input: not an int - " ++ [x])
Hi,
I've done my best to search the archives and follow tutorials (http://blog.macromates.com/2011/git-style-configuration/), but haven't been able to squash this bug.
In a git commit message, I can't turn soft wrap off. When I enable/disable the setting from the menu item, it enables/disables the soft wrap *indicator* but not soft wrapping itself.
In a Markdown document, enabling/disabling soft wrap works as expected.
I have also tried tons of different combinations in my ~/.tm_properties, to no avail (and sometimes TM2 stops even assigning the right filetype to .git/COMMIT_EDITMSG). This is my current configuration:
TM_GIT = "/usr/local/bin/git"
softTabs = true
tabSize = 2
[ .git/COMMIT_EDITMSG ]
fileType = text.git-commit
softWrap = false
[ "git-rebase-todo" ]
fileType = text.git-rebase
Any ideas?
Thanks,
Adam
The behavior of Control-k seems to have changed in TM2. In TM1 and other
standard Mac OS X application, control-k will delete to the end of the line
and if the cursor is already at the end of the line, it'd delete the end of
line and bring the next line up. In TM2, if it's the end of the line, it'd
just sit there refusing to bring the next line up.
How do I get the old behavior back?
I'm running build 8971.
Thanks
--
Chris
When using "Go -> Current Document", the File Browser changes to the
containing directory. Is there any way to get it to stay in the project
folder? Sort of a 'pin to project folder' type option?
OK so having solved SCM badges not showing on one machine (updated git to
latest). On another machine having done this, clicking on the SCM Status
purple folder icon or accessing he menu item Go -> SCM status has no affect.
The click does nothing does not show untracked, uncommited files etc. The
repo is on a standard HFS+ drive.
Please help. Many thanks
Anthony
-----------------------------------------
**************************************************************************
The information contained in the EMail and any attachments is
confidential and intended solely and for the attention and use of
the named addressee(s). It may not be disclosed to any other person
without the express authority of the HPA, or the intended
recipient, or both. If you are not the intended recipient, you must
not disclose, copy, distribute or retain this message or any part
of it. This footnote also confirms that this EMail has been swept
for computer viruses, but please re-sweep any attachments before
opening or saving. HTTP://www.HPA.org.uk
**************************************************************************
Hi,
is TM2 already supposed to detect when some other process has changed a
file it has opened – on a file system without fsevents? Right now, I
need to notice that myself, close the file, and reopen it. (If that is
expected for now, fine.)
Christopher
Hi,
trying to open my ~/.ssh/config, TM2 asks me which file type to use. I
accept the suggested “SSH Config”. Then, I get a progress bar that fills
quickly and then does nothing. The window is blocked; I can continue
using TM in other windows, but cannot close the window or quit.
Stab in the dark: Does this selection require installing a new bundle
and does TM wait for some file system event in that case? My home
directory is on NFS …
Christopher
Looking at the post http://blog.macromates.com/2011/format-strings/, I was
excited by the idea of being able to dynamically include other patterns
into the matched scope.
However, it doesn't quite work. I have in my Jekyll grammar, a pattern:
{
begin = '\{% highlight (html) %\}';
end = '\{% endhighlight %\}\n';
name = 'source.$1.embedded.html.markdown';
patterns = (
{ include = 'text.html.basic'; },
);
},
This is handled fine: it matches as intended, and puts the html into the
name as expected.
However, I can't use the same trick in the included patterns:
{
begin = '\{% highlight (html) %\}';
end = '\{% endhighlight %\}\n';
name = 'source.$1.embedded.html.markdown';
patterns = (
{ include = 'text.$1.basic'; },
);
},
In this case, the syntax highlighting of the embedded code is not applied.
I know this is a simple example: I am hoping to be able to extend it to
automatically match whatever type of file I want highlighted (python, js,
ruby, html, css, ... you get the picture).
Regards,
Matt.
Is there by any chance a user defaults setting to control the length of the recent searches / recent replaces lists in TM1?
(I notice they are much longer, and scrollable, and zebra striped in TM2, which is a nice improvement)
Cheerio,
Michael Johnston
lastobelus(a)mac.com
When I open a folder which is a git working repo the SCM status icons do not
show and the go to SCM status folder does not work either by pressing the
puprple cog folder or the menu item. I¹ve fixed a previous git issue where
TM2 was not finding git by adding TM_GIT = "/usr/local/bin/git" to a
~/.tm_properties file. However the SCM status problems still persist.
Any ideas please? Thanks in advance.
Anthony
-----------------------------------------
**************************************************************************
The information contained in the EMail and any attachments is
confidential and intended solely and for the attention and use of
the named addressee(s). It may not be disclosed to any other person
without the express authority of the HPA, or the intended
recipient, or both. If you are not the intended recipient, you must
not disclose, copy, distribute or retain this message or any part
of it. This footnote also confirms that this EMail has been swept
for computer viruses, but please re-sweep any attachments before
opening or saving. HTTP://www.HPA.org.uk
**************************************************************************
Hi,
in TM1, the incremental search (^s) allows me to jump to the next match
by pressing ^s again. This silently fails in TM2. (If it's just NYI,
please simply ignore the noise.)
Christopher
I have an old TeX file which I need to recompile.
It cannot be compiled with pdflatex, but it can be compiled with
latex then dvips and then pstopdf.
Has anybody written a Textmate macro directly using this toolchain
or do I need to write the macro myself?
> When in XML mode, with the caret inside <a></a> like <a>|</a>, pressing
> ^< does not result in <a><p></p></a> as it does in TM1, but in
> <a<>></>></a>, which is not well-formed XML.
I had noticed this in HTML mode as well and I think I've found kind of a workaround. In the HTML bundle, select "Insert Open/Close Tag (With Current Word)" and change "Input" from "Selection" to "Nothing". This will prevent the behavior you are seeing but will also remove the ability to type an element name and invoking this function to make a tag out of it. TM1 seems to have more"Input" filter options.
Not sure what to do about your other issue with the ^<a completion. Maybe it is related to the input filters as well.
Hope this helps,
Craig
Dear all,
The R bundle for Avian/TM2 seems to have lost the (neat) ability to
add and move to an indented new line after typing an open brace
followed by Enter. That is, going from
{.}
to
{
.
}
by typing Enter (dot indicates caret). I got used to this in TM1 and
it saved countless little bits of time, so I'd like to get it back. I
see that it works in C, so obviously it can be done with TM2, but I'm
not sure what change I need to make to the R bundle to get it working
again. Any pointers would be gratefully received...
While I'm on the topic, it would be nice if standalone "if" statements
produced indentation on the next line (again as in the C scope), so
that I can write R code like
if (x < 0)
x <- abs(x)
without having to indent the second line manually (and then unindent
the line following it). This has never happened with the Textmate R
bundle, so perhaps Hans-Jörg could take it as a feature request... ;)
I assume it's a matter of tweaking the language grammar.
All the best,
Jon
I'm missing the old HTML/PHP bundle in TM1 - the one that was revised to work with mixed HTML and PHP. Does anyone know how I can install it in TM2 or have a replacement for use in TM2.
Cheers,
Ed Wong
Is there any .tm_properties OakLineHeightDelta equivalent? I am using -2 OakLineHeightDelta in TM1, which somehow matches to Xcode and other NSTextView based text editors.
Cheers,
--
Adam Strzelecki
From the 8956 release notes:
"Introduced callback.application.did-activate and callback.application.did-deactivate as two new semantic classes. A command with this class will be executed when the application gain/lose focus. The scope selector is matched against the “current scope” of the visible document (in each window). This allows creating a command with “Save” set to “Modified Documents” and thereby recreating TextMate 1.x’s ability to save modified documents on lost focus."
Has anyone gotten this to work? In my personal bundle, I created a new command called "Save files when focus is lost", set the Semantic Class to "callback.application.did-deactivate", set Save to "Modified Documents", and Input to "Nothing". But the files never save. Can't think what I'm doing wrong.
By the way, the command shows up in the Bundles menu, even though there's no point to having it there. Is there a way to keep the command enabled and active but off the menu?
Thanks,
Trevor
I'm using Txmate 1.5.10 on Lion.
I've always been able to run Ruby programs from within Txmate, now I can't.
I've changed a few things in my set up, though, so that might be the reason
(?).
First I downloaded Ruby 1.9.2 from RVM and I modified my path in .profile
as follows:
PATH=$PATH:.:~/.rvm/rubies/ruby-1.9.2-p290
export PATH
Could that be the reason I'm having problems?
Is there a way to click on a folder in the file browser and create a new
file? I know you can create new folders and at the moment i'm duplicating
files in place of creating them, but if you create a new folder I can't see
a way of creating a new file.
Thanks.
--
View this message in context: http://old.nabble.com/Create-New-File-tp33111522p33111522.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Just to know if it's plan or not to add Project File to TM2, because i use
a lot of projet and it's really borring to find the projet in the finder !
Thanks.
Hi,
When in XML mode, with the caret inside <a></a> like <a>|</a>, pressing
^< does not result in <a><p></p></a> as it does in TM1, but in
<a<>></>></a>, which is not well-formed XML.
Also, in an empty file in XML mode, pressing ^< a TAB will, in TM1, move
the caret inside the element, but in TM2, it seems to hit the snippet
bound to <a, resulting in
<name attr="value">
</name>></a>
That snippet exists in TM1, too, but it seems the priority of who gets
the TAB key first has changed. Tabbing inside a freshly created element
still works in TM2 for elements whose name is not a snippet trigger.
Christopher
I have been using the JavaScript tools bundle from
https://github.com/subtleGradient/javascript-tools.tmbundle. Recently, the
key bindings seem to not be working. I have tried removing it and
re-installing it the bundle, but this didn't help. I don't believe this is
a problem specific to this bundle (which hasn't changed), but something I
have done to TextMate to make it act differently.
Previously the command-option-R key would run the "Run in Node.js" command
in this bundle. Now I find that it runs the menu command "Text / Filter
through command". I could not figure out how to remove the key binding to
the menu command. The TextMate manual says I can change the key bindings
for the menu from System Preferences - Keyboard and Mouse, but I'm running
Lion and this seems to be different than what is described in the manual.
System Preferences - Keyboard - Keyboard Shortcuts has a place to add
Application specific shortcuts, but I could not see any shortcuts already
defined for TextMate and could not figure out how to remove any.
It also may be that something is wrong with the scope of this bundle. The
scope selector for the "Run in Node.js" command is set to "source.js", but
when I run "Select Bundle Item", "Run in Node.js" does not show up. I can,
however, pick the command from the bundles menu and it works fine.
I would appreciate any help. I really need this to work for a talk I am
giving next week.
Hi
The instructions at http://blog.macromates.com/2007/file-type-detection-rspec-rails/ obviously don't apply to TM2 as written, but does anybody have an equivalent?
I'm getting all .rb files coming up as either RSpec or Ruby on Rails, regardless of whether the filename ends in _spec.rb, and it's making things a bit awkward, to say the least. (It probably worked fine out of the box and I've done something to break it, but I can't see how to get back without nuking TM2 and all its prefs…)
Thanks
BTW, should Select > Current Scope select an entire "describe ... end" block in RSpec? It either selects one word or the whole file when I try it.
--
John Yeates
Is it possible to extend the existing web preview themes in TM2? All
variants of Avian/Themes/WebPreview, Avian/Support/web-themes, etc.
which I have been trying don't seem to have any effect on the choices
available to style the HTML output pane.
Hi
Is there any way to set 2 as the tab size and soft tabs for all file types
by default ?
I've checked this thread
http://lists.macromates.com/textmate/2011-December/033540.html, but I
didn't understood how to do that. Maybe I need some guidance :)
--
Rodrigo Flores
Hi folks,
I'm experiencing some weirdness trying to open _some_ YAML files with TextMate 2. For example when I try to open a Rails database.yml file, I'm prompted thusly:
If I click 'Open', I see this:
and TM2 locks up and I'm forced to restart. I've tried several Google searches and I haven't found any mention of this behaviour. Does anyone have any idea what might be going on?
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/mlarocque/
Twitter: http://twitter.com/mrl
When I try to open files that have extended characters (e.g. curly
apostrophe) and are saved with "Western - Windows" encoding, TextMate 2
gives an "Unknown Encoding" error with a hex dump of the file and asks
for the encoding. If I choose "Western - Windows", TextMate opens the
file successfully. (The default encoding is set to the default, "Unicode
- UTF-8".) Also, if I have a project containing these files, Find In
Project fails because TextMate sees them as binary files.
Is there any way to have TextMate autodetect the encoding so that
opening and searching files works as expected? Thanks,
Trevor
In my inexperience I deleted my Blogging Bundle template. At least I saved it
as a blank file. Is there a way to get that back?
I have a Google Blogger blog that I would like to edit with Text Editor. I
can't seem to get it to work. I can't find the endpoint URL on Blogger. Does
Blogger work or can you suggest a better blogging website?
Does anyone have any good learning projects to get started with TextMate and
AppleScript?
This stuff is so fun but I feel like I am standing at the base of a mountain
and I have no idea where to begin.
Thanks,
Josh
--
View this message in context: http://old.nabble.com/Deleted-Blog-setup-template%2C-Google-Blogger%2C-Good…
Sent from the textmate users mailing list archive at Nabble.com.
The behavior of the files list changed in TextMate 2. In TextMate 1, it included the current file, but in TextMate 2, the current file is not in the list.
I know that sounds like not a big deal, but it can be a problem with large projects containing many files. On several occasions I have opened the files list, typed a few characters, and spent the next two minutes freaked out and confused because the document I know exists is "missing", only to realize it's right under my nose.
Any chance we could get the old behavior back? Thanks,
Trevor
For example, I would like to do this:
windowTitle = "$TM_DISPLAYNAME – ${TM_DIRECTORY/$TM_PROJECT_DIRECTORY//g}"
where the string in TM_PROJECT_DIRECTORY is being removed from the string in TM_DIRECTORY
Thanks!
Michael Johnston
lastobelus(a)mac.com