Lion introduces a new way of inserting accented characters by holding down the corresponding key.
-----------------------------
in TextEdit:
I hold 'a' and I get the menu shortly afterwards to chose among the accented versions.
If there are no accented variations for that letter, nothing happens (the letter is not repeated)
in Textmate:
If I hold down the 'a' key, it is repeated until I release the key.
If I hold down the 'd' key (or any other key without accented variations), nothing happens.
-----------------------------
This is a small quirk I guess. I have not tried how TM acts, if this behavior in Lion is switched off using:
defaults write -g ApplePressAndHoldEnabled -bool false
as a restart is required afterwards and I am a lazy bum.
-----------------------------
What I would prefer in Textmate (maybe others will agree?):
Holding a key pressed should result in the letter being inserted repeatedly.
Ideally this can be switched with a .tm_properties rule based on the scope or grammar.
(it might be nice to be able to type umlauts when writing a plain text file,
but more convenient to type '/*****' in a source file without repeatedly having to press the '*' key)
Maybe you can consider my suggestion.
Thx,
Thomas
Hi,
maybe I found a fix for that issue (at least my test script now runs :) ):
The new R.tmbundle stuff I host at https://github.com/avian/r.tmbundle/
thus here the code which should be tested.
Please replace everything in between
STDOUT.sync = true {... and ...} STDOUT.flush
in file tmR.rb by:
STDOUT.sync = false
STDERR.sync = false
descriptors = [stdout, stderr]
descriptors.each { |fd| fd.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK) }
until descriptors.empty?
select(descriptors).shift.each do |io|
begin
str = io.readline
rescue
descriptors.delete io
io.close
break
end
if str.nil? or str.empty?
descriptors.delete io
io.close
elsif io == stderr
# just in case
print hideStartMessageJS
print %{<span style="color: red">#{esc str}</span>}
elsif io == stdout
print hideStartMessageJS
str.each_line do |line|
# line counter for top level source
if line.include?("#{linecountermarker}")
linecounter += 1
line.sub!("#{linecountermarker}", '')
end
# check for a comment sign at the beginning of a line
if line.match(/>\s*#/)
print "<i><font color=blue>#{esc line.chomp}</font></i>\n"
# check for a comment within a line - regexp should be improved yet!
elsif m=line.match(/(.*?)(#[^"']*)$/)
print esc(m[1]).gsub(/^(>|\+)/,'<a class="prompt" href="txmt://open?line='+linecounter.to_s+'">\1</a>')
print "<i><font color=blue>#{esc(m[2]).chomp}</font></i>\n"
# check for error messages
elsif m=line.match(/(?i)^\s*(error|erreur|fehler|errore|erro)( |:)/)
where = (isSelection) ? " of selection" : ""
print "<span style='color: red'>#{esc str.gsub(%r{(?m).*?#{m[1]}},m[1]).chomp}<br /><i>RMate</i> stopped at <a href='txmt://open?line=#{linecounter}'>line #{linecounter-selectionlinestart}#{where}</a></span><br />".gsub(%r{source\("(.*?)"\)},'source("<a href="txmt://open?url=file://\1">\1</a>")')
print "<hr noshade width='300' size='2' align='left' color=lightgrey>"
break
# check for warnings
elsif line.match(/^\s*(Warning|Warning messages?|Message d.avis|Warnmeldung|Messaggio di avvertimento|Mensagem de aviso):/)
print "<span style='color: gray'>#{esc line}</span>"
# print line simply with hyperlinked prompt if given
elsif line.match(/_\x8./)
print "#{line.gsub(/_\x8(.)/,'<b>\1</b>')}"
else
print esc(line).gsub(/^[\x0-\x9]?(>|\+)/,'<a class="prompt" href="txmt://open?line='+linecounter.to_s+'">\1</a>')
end
end
end
end
end
STDOUT.flush
Feedback is welcome :)
Cheers,
--Hans
In TM2 is there any way to default unknown file types to plain text
without the "What is the file type of..." dialog? I come across a lot
of files without extensions and 99% of the time I want to treat them as
plain text. Is there a way to just skip the dialog?
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>
Hi all,
i have an issue with TM2 and LaTex.
I've used TM1 with Skim, then i've installed TM2 and after some
modifications it was working fine.
the only remaining problem was the Sync with Skim. Every time i tried to go
back from Skim to tex file, it opened TM1.
I removed TM1 with AppCleaner (this was a mistake as i read
http://old.nabble.com/TM2-LaTeX-Woes-to32981904.html#a32984513 here )
After that i've removed TM2 and did everything the same as before.
I've installed TM1, set the path, compiled some tex file, configured Skim,
compiled tex file again.
then i've installed TM2. At first time i tried to open a tex file it asked
me like the first time to install the LaTex bundle.
After downloading 4 packages and "installing" them it opened the tex file
but the active bundle was PlainText.
In the Bundle editor i can see the LaTex but it is grayed-out.
Does anybody have an idea how to proceed?
Cheers
dim
--
View this message in context: http://old.nabble.com/TM2-LaTeX-Problem-tp33472319p33472319.html
Sent from the textmate users mailing list archive at Nabble.com.
I saw the following in changelog
Introduce attr.file.unknown-type and attr.file.unknown-encoding. You can use this in .tm_properties files to set fileType andencoding to provide default values only for files where TextMate was unable to find the proper type/encoding (which normally results in a dialog asking the user).
But When I set it in .tm_properties as below, it doesn't work for me
attr.file.unknown-type=text
attr.file.unknown-encoding=gbk
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
I've seen references to clicking a box to cause crash reports to be sent directly to macromates. Is this real and, if so where is the box to click?
--Lewy
anyone who is familiar with the subversion bundle, I set TM_SVN_DIFF_CMD variable, but it doesn't work.
When I set it to something just like filemerge, Textmate2 still use the native diff viewer.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
> From: Jacob Bandes-Storch <jacob(a)bandes-storch.net>
> Subject: [TxMt] Some text-navigation/selection questions or requests
> Date: March 5, 2012 12:02:16 PM AKST
> To: textmate(a)lists.macromates.com
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
> - With multiple selections or a selected range, pressing the up arrow key will put a single caret one line above the first selection/caret, and pressing down goes one line below the last one or the end. It would be nice to have a way to move up from the last line or down from the first line. (Perhaps a modifier to choose beginning/end and then the arrow key can dictate only which direction to move).
That sounds like a job for bookmarks. Look under the navigation menu. Put one at the top of your section, another at the end. Toggle between them using F2
--Lewy
The blog page at http://blog.macromates.com/2011/textmate-2-0-alpha/ points
to r8930 version, but apparently there is an r8956 according to
http://tm2tips.tumblr.com/. Some questions:
1) where to get the latest alpha? Or should I assume the latest stable
version is the r8930?
2) if I install the TM2 alpha, can I keep TM 1.5.10 around if needed? Can
I undo the TM2 install? I'm guessing that the 'mate' command changes can't
be undone so easily. (my main use of 'mate' command is during a git commit
to open the change log file)
3) In general, since I use TM for work, I'm hesitant to install TM2 alpha.
Any comments/advice about that? I would however like to try it so I can
offer my brilliant and helpful comments to Allan about it.
4) Is there a proper way to search this list? I found this:
http://old.nabble.com/textmate-users-f18157.html but the page at
http://lists.macromates.com/listinfo/textmate doesn't mention how to search
the list (though you can download each month's archives by hand).
--ErikN
Sometimes when I make a rectangular selection and start typing to replace text I get a doubled cursor -- and one of the lines
has the newly-typed text doubled.
See this set of screenshots:
https://img.skitch.com/20120227-j64tcejysdeahy7akwtx1dq414.jpg
SCFinderPlugin is not in the TM2 plugin folder. Quicksilver doesn't crash, just TM2. Also, SVN isn't involved in the crashes. Most of the files being modified are not under version control.
I'll see if I can narrow it down a bit to more exact circumstances.
(My Versions, just in case)
OS X 10.7.3, Build 1D50b
TM2, Version 2.0 (9090)
svn, version 1.6.17 (r1128011) compiled Nov 8 2011, 18:14:46
--Lewy
> On Feb 29, 2012, at 9:10 AM, Allan Odgaard wrote:
>
>> On 29/02/2012, at 03.03, Lewy wrote:
>>
>>> I am getting a LOT of crashes (TM2) when working with files in the project sidebar (right name?). Even things like rename a file, or add a file to favorites will crash TM2. What's interesting is that the crash occurs AFTER the work is done. When I reopen TM2, the file has been renamed or whatever I was trying to do.
>>>
>>> I can supply the crash log to whomever wants it along with a specific case.
>>
>> I don’t think this is normal — my hunch is that there is an issue with the Subversion SCM driver and your working copies, since a) your other post suggest some incompatibility, and b) the SCM code runs after file system changes, which seems to be when you get the crash.
>>
>> For now you can try run w/o subversion and see if you get any crashes.
>>
>> I will see your crashes later (unless you disabled submission).
>
> Possibly unrelated, but SCFinderPlugin causes Quicksilver to crash. If that’s installed, it could be the problem.
>
> --
> Rob McBroom
> <http://www.skurfer.com/>
I have created a wiki page for Project Management under TM2, you can find it here:
http://wiki.macromates.com/Suggestions/ProjectManagementInTextMate2
I wrote Project Management rather than Projects since Allen does not intend to add projects to the 2.0 release (and quite possibly also not at a later date). So my intention was to collect
(1) suggestions on how to improve the file pane,
(2) how to replicate/adapt the workflow for people who have previously used projects and
(3) reasons why the filesystem-centric approach is not suited to meet their needs.
I'd be happy if other people contribute and add suggestions. Perhaps it can become a handy tool for Allen to collect useful feedback.
Max
David,
I had to use "attr.save-on-deactivate" in the Scope Selector instead, but
that did the trick! Thanks so much for explaining this to me.
On Wed, Feb 29, 2012 at 12:39 PM, <textmate-request(a)lists.macromates.com>wrote:
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 29 Feb 2012 18:39:20 +0000
> From: David Howden <dhowden(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: textmate Digest, Vol 45, Issue 50
> Message-ID:
> <CAP2kWKGbE+81=t_5On1x_hDbdXaZr9LOO7gTwWifCUnxk+NH-Q(a)mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> So this works for me. In the .tm_properties file:
>
> [ *.tex ]
> scopeAttributes = 'attr.save-on-deactivate'
>
> Then put attr.save-on-deactive in the scope for the 'Save on focus lost'
> command.
>
> Be careful: scopeAttributes seem to only be attached to files when you open
> them, so if you change .tm_properties be sure to re-open the files. You
> can make sure that the scope attribute has been set by using the "Show
> Scope" command in bundle development or Ctrl-Shift-P, just to check that
> the attribute is being set properly.
>
> David.
>
>
Works just fine. Discovers the two modified files and matches the command line report.
That's good. TM2 works. )-:
That's bad. But not on my stuff. (-:
Time to review what I'm doing. Thanks.
Lewy
On Feb 29, 2012, at 5:25 AM, textmate-request(a)lists.macromates.com wrote:
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: working with SVN
> Date: February 29, 2012 5:05:05 AM AKST
> To: TextMate users <textmate(a)lists.macromates.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 29/02/2012, at 09.57, Lewy wrote:
>
>> […] TM2 didn't find the Uncommitted changes. It return [screenshot follows]
>
> What version of (CLI) svn are you using?
>
> Can you try to do a new checkout e.g. http://svn.textmate.org/trunk/Manual/pages/en/ — edit a page and see if that gets picked up.
Thanks, David. Your edits were enough to get the command working for me.
How would a person go about limiting the scope of this command by file
type? I understand that this is possible but haven't been able to get it to
work yet.
Seems like the Scope Selector or Content Match fields would be the place
for that (using something similar to [ *.{css,txt,markdown,md,mdown} ] for
the syntax) but I can't get it to work. I've tried this syntax with or
without the brackets.
--
Erik
On Wed, Feb 29, 2012 at 9:24 AM, <textmate-request(a)lists.macromates.com>wrote:
>
> Message: 5
> Date: Wed, 29 Feb 2012 15:17:50 +0000
> From: David Howden <dhowden(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: scopeAttributes and deactivate working?
> Message-ID:
> <CAP2kWKEubFLk0TaqaBXNd9B5szv_wwitCBWt6idRsDDMdJBaMQ(a)mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Ed.
>
> Try removing the scope selector and see if it works. I have input set to
> "Nothing", and output to "Discard".
>
> I have added the command to the text bundle, so if you are still having
> problems I can just send you a copy of that.
>
> David.
>
> On Wed, Feb 29, 2012 at 3:12 PM, PowerPod <ed.moss(a)4ssom.com> wrote:
>
> >
> > I created a "Command" in my personal bundle with:
> >
> > Scope Selector: attr.save-on-deactive
> > Key Equivalent:
> > Tab Trigger:
> > Semantic Class: callback.application.did-deactivate
> > Content Match:
> > Save: Modified Documents
> > Input: Scope Format: Text
> > Output: Replace Input Format: Text
> > Caret Placement: After Output
> > Scroll for new output (unchecked)
> >
> > Still no joy. Yes, I am anxious to get this working. :) I really
> appreciate
> > your help.
> >
> > Thanks,
> >
> > Ed.
> >
> >
> > David Howden wrote:
> > >
> > > Hi
> > >
> > > Ok, so as I understand it you you now need to have a command which has
> > the
> > > scope set to attr.save-on-deactive, and is fired by the semantic
> > > class: callback.application.did-deactivate
> > > and is set to save all modified documents.
> > >
> > > David.
> > >
> > > On Tue, Feb 28, 2012 at 5:00 PM, Edwin Moss <ed.moss(a)4ssom.com> wrote:
> > >
> > >> I am having no joy in getting this to work in my .tm_properties file.
> > >>
> > >> [ *.{rb,erb,haml,js,html} ]
> > >> scopeAttributes = 'attr.save-on-deactivate'
> > >>
> > >> Has anyone else got it to work? Any help would be appreciated.
> > >>
> > >> Thanks,
> > >>
> > >> Ed
> > >>
> > >>
> > >> _______________________________________________
> > >> textmate mailing list
> > >> textmate(a)lists.macromates.com
> > >> http://lists.macromates.com/listinfo/textmate
> > >>
> > >
> > >
> > > _______________________________________________
> > > textmate mailing list
> > > textmate(a)lists.macromates.com
> > > http://lists.macromates.com/listinfo/textmate
> > >
> >
> > --
> > View this message in context:
> >
> http://old.nabble.com/scopeAttributes-and-deactivate-working--tp33408128p33…
> > Sent from the textmate users mailing list archive at Nabble.com.
> >
> >
> > _______________________________________________
> > textmate mailing list
> > textmate(a)lists.macromates.com
> > http://lists.macromates.com/listinfo/textmate
> >
>
I am getting a LOT of crashes (TM2) when working with files in the project sidebar (right name?). Even things like rename a file, or add a file to favorites will crash TM2. What's interesting is that the crash occurs AFTER the work is done. When I reopen TM2, the file has been renamed or whatever I was trying to do.
I can supply the crash log to whomever wants it along with a specific case.
Lewy
Hi, most of my work with TextMate is with XML files. TM2 only seems to be
able to tidy really small files - anything of a reasonable size, it just
deletes my XML. Is this a known issue that will be fixed, or is there some
workaround?
--
View this message in context: http://old.nabble.com/-TM2--XML-Tidy-tp33410232p33410232.html
Sent from the textmate users mailing list archive at Nabble.com.
Uh, no. I hadn't found those. I was using cmd-y, which brought up the menu. However, your comment looks like it's just what I wanted, except it didn't find everything.
Command line svn returns:
bash-$ svn status
X data
M _README-DEV.mdown
M org-bylaws-v4.php
? css/bp-boiler-2.css
M org-board-v4.php
M org-licenses-v4.php
Performing status on external item at 'data'
bash-$
Which is correct. "data" is an external, and the css file is a mistake I haven't yet removed. The others had one line changes. TM2 didn't find the Uncommitted changes. It return [screenshot follows]
Looks like this is trying to do what I wanted. I'm glad to find it. Dunno why it didn't succeed.
Lewy
> On 28 Feb 2012, at 21:11, Lewy wrote:
>
>> I have been using cmd-Y with SVN. It works fairly well, however has one problem for me. When I select status (zero from the list) it shows me the status only of one file. What I want is what the SVN command line does -- to show the status of files that are modified, added, deleted, whatever.
>>
>> The idea is to find everything I just modified for a commit. Commit seems to work only on one file as well. Is there a way to work with the repository instead of just one file?
>
> Hi,
>
> did you try to click at the blueish "smart folder" or "SCM Status" ⇧⌘Y?
>
> There you see all uncommitted changes. Simply select all or whatever what do you want to commit, or diff against working copy ... via ⌘Y.
>
> Best,
> --Hans
I have been using cmd-Y with SVN. It works fairly well, however has one problem for me. When I select status (zero from the list) it shows me the status only of one file. What I want is what the SVN command line does -- to show the status of files that are modified, added, deleted, whatever.
The idea is to find everything I just modified for a commit. Commit seems to work only on one file as well. Is there a way to work with the repository instead of just one file?
Not a really big issue since I can go to command line or some GUI, but it would be nice to do that within TM2.
--Lewy
... opening of the same favorite project should maximize it instead of opening a new instance of it.
It's a minor feature request ;)
Thanks!
Best,
--Hans
> 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.
My workaround is preventing TM from starting the dialog.
I don't really have an idea of what I'm doing but commenting out the
following lines for the watch document command in the bundle editor
seems to kill the dialog while keeping the rest of watch document
alive:
#nice -n 20 CocoaDialog progressbar --indeterminate --title 'LaTeX
Watch' --text 'LaTeX Watch: Compiling document' </dev/console
&>/dev/null &
#progressbar_pid=$(jobs -p %%)
#disown %%
watch_script_opts="--textmate-pid $PPID" # --progressbar-pid $progressbar_pid"
When I selected Go > Current Document (Cmd-Ctrl-R) in TextMate 1, it would highlight the current document in the file list, expanding any folders as needed.
In TextMate 2, it still works this way — *IF* the folder containing the document is already expanded, so all it needs to do is scroll. If the folder is not expanded, TM2 opens the folder, so the drawer now only shows a subset of the project I'm working on.
Example:
> folder1
v folder2
file1
file2
> folder3
If I am editing file2 and press Cmd-Ctrl-R, the highlight moves to file2, correctly.
In the case where folder2 was not expanded, though, I would see this after pressing Cmd-Ctrl-R:
file1
file2
…and I would no longer be able to access folder1 and folder3 from the file list without using the dropdown at the top. I would also no longer have an overview of the SCM status of the entire project.
How can I set TM2 to work the old, non-annoying way, where it just expands folders as needed and doesn't change the root?
Thanks
--
John Yeates
Since updating to r9064, if I make a selection, hit Cmd-F and hit Find All, I am shown matches for the whole project rather than just matches in the selection (despite the dropdown being set to Selection).
Pretty sure this was working in the previous release :)
--
John Yeates
Hi,
I do not know if this request was already mentioned, if so please ignore this message ;)
Example: If I'm searching for something project-wide, I select "Project Folder" for item "In:" - fine. Then I close the Find Panel, I'm working on some stuff, then I'd like to look for another string, I set the "find string" via ⌘E and then I press ⌘F. Ok - but "Find Panel"'s "In:" selection felt back to "Document", thus I've to re-select my last "In:" option to "Project Folder".
Could this behaviour be changed in such a way the user's last selection for "In:" will be stored persistently like for "Ignore Case" etc.?
Thanks a lot for TM2!
--Hans
Hi,
in one folder, I have the following .tm_properties, to hide folders with
derived files (.o etc.):
myExtraExcludes = "lib,glnx86,glnxa64,maci64,win32,win64,x64"
excludeInFileChooser = "{$excludeInFileChooser,$myExtraExcludes}"
excludeInFolderSearch = "{$excludeInFolderSearch,$myExtraExcludes}"
I believe (but am not certain) that worked for build 9005 or something
around there, but with 9007, I see all of these folders (and TM2 is
crawling, which may indicate that it watches the files in these
folders). Should this work as shown?
Christopher
TM2 looks really great: Although it's still alpha I use id for my work - php
web
developement.
I noticed that the Symbol list (right side in the bottom
status bar) can't be sorted by name. Would be nice to have sorting back.
Thanks, Lars:)
--
View this message in context: http://old.nabble.com/TM2-sort-symbol-list-%28status-bar-bottom-right%29-tp…
Sent from the textmate users mailing list archive at Nabble.com.
When using TM-2 with a C source file, if I type an open brace, I get a
matching pair of braces. If I then press enter, I get an empty line above
the closing brace and the cursor is properly indented.
However if I do the same with a Java source file, there is no blank line
above the closing brace and the cursor is sitting in front of the closing
brace.
Is there some setting or tweak to the java language grammer that is
necessary to achieve this behavior? It works correctly in TM-1.
Thanks,
Curt
Hi. I have two different, but related, issues.
First, how does one execute a single line / selection in shell mode? I've enabled enhanced terminal usage. Script (cmd-R) executes fine, but on the entire document. The Textmate Manual direction (http://manual.macromates.com/en/shell_commands) to use ^R for a line or selection does not produce any results other than a forward slash.
Second, has anyone solved the "execute line / selection" issue in the Python bundle? (http://stackoverflow.com/questions/1775954/using-python-3-1-with-textmate). Again, can run an entire script just fine, but line/selection functionality appears broken and returns the following.
Traceback (most recent call last):
File "/tmp/temp_textmate.QffC1S", line 19, in <module>
stdout.write(exc)
TypeError: argument 1 must be string or read-only character buffer, not list
I'm working on a MBP running Snow Leopard with most recent version of TM. Am hoping I am just missing something obvious, but have spent a few (fruitless) hours googling and searching the mailing list.
Am new to Textmate (couple of months) but already convinced it is an ideal editor for me. The R, Latex and Sweave bundles are nothing short of remarkable. Any help or directions to solutions would be greatly appreciated, and would make what is already a great tool, almost perfect.
Cheers
Charlie
Hi Allan,
Is there any way to display the HTML output window on the right side of the
window instead of the bottom? When using TM2 on a wide monitor, the screen
estate is relatively limited in the vertical dimension than the horizontal
dimension.
Thanks
--
Chris
I notice that the font size for comment in TM2 is much smaller than the
rest of document. Is there a way to make the font size of comment the same?
Thanks
Chris
Here's a pattern I've often used in TM1 -- that doesn't work as well in TM2.
I've got a big project and want to either easily browse just a subset of files or I'm doing some complicated refactoring with
regexes etc and dealing with just a subset would make my work much less error prone.
I use the grep replacement ack to find files meeting some criteria and pipe this list with xargs to the mate command.
The files appear in mate in the project drawer and are easily browsable and searchable as a set.
Here's an example where I want to work with only the files from the src/ dir in my project that have the string 'cursor'
(there's a generated dist/ dir tree that ALSO has many files with the string 'cursor' in them but I don't want to deal with
those files):
$ ack -l cursor src
src/examples/complex-atoms-model/application.sass
src/examples/components/components.sass
src/examples/examples.sass
src/examples/lennard-jones-potential/lennard-jones-potential.js
src/examples/simple-atoms-model/application.sass
src/examples/simple-atoms-model-controls-in-text/application.sass
src/examples/simplemolecules/simplemolecules.sass
src/index.sass
src/lab/css/components.sass
src/lab/grapher/samples/cities-sample.js
src/lab/grapher/samples/lennard-jones-sample.js
src/lab/grapher/samples/sample-graph.js
src/lab/grapher/samples/simple-graph2.js
src/lab/grapher/samples/surface-temperature-sample.js
src/lab/graphx/graphx.js
src/lab/layout/fullscreen.js
src/lab/layout/potential-chart.js
src/tests/two-graphs/index.html
Load those files in both TM2 and TM1:
$ ack -l cursor src | xargs mate
$ ack -l cursor src | xargs mate1
In TM1 the files appear in the project drawer and the project search for cursor gives me all the locations in this collection
of files.
However in TM2 the files do NOT appear in the project drawer (they are instead all opened as separate tabbed windows) and are
not searchable as a collection.
Here's a screenshot caompring the two TM versions and the results of a search for files with the string 'cursor':
https://img.skitch.com/20120222-t6xxnk342b6wsgwjeh1ckyykmf.jpg
I'd like an arbitrary collection of files passed to TM2 via the mate command to be represented and searchable as a collection.
Hi,
I have a question regarding $TM_SUPPORT_PATH. If I understand the manual correctly, checking out the support folder to /Library/Application Support/TextMate should automatically update $TM_SUPPORT_PATH. However, even after a restart of TextMate, it points to /Applications/Textkram/TextMate.app/Contents/SharedSupport/Support.
I'm using 1.5.10 (1631).
Any hints?
Thanks,
Jonas
I move text around pretty frequently using ⌃⌘[arrow keys]. There are various scenarios where moving text this way in TM2 causes the selection to expand, with whitespace inserted to the left. (Very easy to reproduce in code with different indentation levels.)
Is this known/intended? Is there a setting I’m missing that will stop it from happening?
If it’s intentional, let me say that I don’t see a use case for altering my selection simply because I moved it. :-) If the user is trying to move text out beyond the existing end of the line, I could see adding whitespace to make it work, but even then it should be added *outside* the selection without altering it, right?
--
Rob McBroom
<http://www.skurfer.com/>
When performing a find in folder and then replacing all of the matches with
new content, how can I save all of the files.
If I select 'Save All' from the menu the files are not saved. The only way
I have found so far is to press the <Next> button on the find dialog which
then warns me that the files have not be saved and provides a button to do
so. Is there a more direct way to save these changes?
Curt
Hi,
I would like to have more than one pattern which will be recognized for folding blocks in a language definition.
Is this possible?
for example, I have this regular expression in a language definition for one bundle:
foldingStartMarker = '^[^#]*(\([^\)]*$|\{\s*$)';
foldingStopMarker = '(^\s*\)|^\s*\})';
can I add a pattern, so that I have multiple markers that signal a block?
I tried;
foldingStartMarker = ('first block definition', 'second block definition');
foldingStopMarker = ('first block definition', 'second block definition');
but that doesn't seem to work.
I have the following language grammar defined for Java Properties files.
This grammar works as expected in TM-1, however, there are two
separate problems when using this grammar with TM-2.
1. The end capture for a 'Property Definition' does not properly skip a
newline preceded by a backslash and thus does not recognize continued lines.
2. The pattern '\{\d+\}' is not being recognized to set the
'entity.name.variable.java-props'
scope. This pattern does match
properly in a simple grammar where it is the only pattern however. (This
pattern is not part of java properties but I'm using the property files
to store strings that will be used with the java.text formatters.)
Perhaps there is a better way to describe this grammar, I'm no expert. But
since it does work correctly in TM-1 I wanted to report it as potential
defects in TM-2.
Thanks,
Curt
{ scopeName = 'source.java-props';
fileTypes = ( 'properties' );
patterns = (
{ name = 'comment.line.number-sign.java-props';
match = '^\s*([#!])(.+)?$\n?';
captures = { 1 = { name = 'punctuation.definition.comment.java-props'; }; };
},
{ comment = 'Empty Property Definition';
match = '^\s*((?:\\:|\\=|[^:=\s])+)\s*([:=])\s*$';
captures = {
1 = { name = 'keyword.other.java-props'; };
2 = { name = 'punctuation.separator.key-value.java-props'; };
};
},
{ comment = 'Property Definition';
begin = '^\s*((?:\\:|\\=|[^:=\s])+)\s*([:=])\s*';
end = '(?<!\\{1})$\n?';
beginCaptures = {
1 = { name = 'keyword.other.java-props'; };
2 = { name = 'punctuation.separator.key-value.java-props'; };
};
patterns = (
{ name = 'entity.name.variable.java-props';
match = '\{\d+\}';
},
{ comment = 'Leading space on a continued line is ignored';
match = '^\s*';
},
{ name = 'punctuation.separator.continuation.java-props';
match = '(\\)(?=$\n)';
},
{ name = 'constant.character.escape.java-props';
match = '\\(?:[\\nt\"'']|u[0-9A-Fa-f]{4})';
},
{ name = 'invalid.illegal.character.escape.java-props';
match = '\\.';
},
{ name = 'string.java-props';
match = '.';
},
);
},
{ comment = 'Ignore blank lines';
match = '^\s*$';
},
{ name = 'invalid.illegal.java-props';
comment = 'Anything else is illegal';
match = '.*';
},
);
}
The Text menu in TM2 is missing the functions: 'Convert Tabs to Spaces' and 'Convert Spaces to Tabs'.
I looked but couldn't find the functionality elsewhere.
Approximately since installing 9064 I can't run Ruby scripts. I'm not aware of changing anything, but I pretend no expertise in any of this. I've just got a couple of simple Ruby scripts that I use.
Message when run script:
Fallure running "Run:. /Users/me/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1: undefined method `+' for nil:NilClass (NoMethodError)
Scripts still run in an older version of BBEdit. Any ideas? Seems to be a problem with my setup since no other complaints.
Greg
Hi,
I am now working with the R-package for quite some time, and I have to say that R is much more fun with this package.
However, I still haven't found a workflow that completely satisfy me.
I started with sending the code directly to the R-app.
That works ok, but you have to switch between two programs, which sometimes can get cumbersome.
After that I tried the Rdaemon and executed my code directly in textmate.
At the beginning I was really impressed by these capabilities.
Unfortunately it gets a little bit problematic with bigger scripts, in my experience.
When I parse a lot of code (sometimes with some errors), I can't do anything anymore.
And I can't exit ongoing calculations so that I often end up force quitting textmate.
Executing code by parsing it to the Rdaemon in the background is also not really a solution.
It's difficult to get feedback on errors With a lot of code, you can't see when it is finished.
Also it seems like parsing a lot of code is in general error prone.
So for some lines of codes the Rdaemon is perfect, but for larger scripts it can get a little bit tricky.
For large scripts I think the bash-option ("Run Document / Selection in R") is really great.
So now, here is my question: ;)
Sending R-code within Textmate and then outputting it with the html-window within textmate is great
(especially with TM2 where you have an integrated output window).
However, every time I send code through "Run Document / Selection in R", it seems like I start a new R-session.
It would be great (at least for me) if R would remember all the code that was executed so far (just like the Rdaemon which just keeps running in the background).
So is it possible to send code to R and keep this session open?
for example, if I send:
x <- c(1,2,3)
with "Run Document / Selection in R"
and after that I send:
print(x)
I get:
Error in print(x) : object 'x' not found
It would be great, if the session would be persistent, so that I actually can execute code stepwise
(just like you can do that with the Rdaemon).
A big thanks for the great work on the R-package!
best,
martin
> On 22.02.2012, at 17:45, Allan Odgaard wrote:
>
>> I did give specific examples from another field. Perhaps you're not familiar with digital photography (it's a serious hobby of mine), but apps like Aperture and Lightroom have seriously improved the workflow of people who are serious about photography. Adding a layer of abstraction was key here.
>
> That might be, but editing photos is a very different thing than editing text. The former works well as thumbnails, the latter does not, the former (generally) have auto-generated (non-sensical) names, the latter does not. I fail to see how a parallel can be drawn here wrt. managing the files on disk.
There are differences, but there are also parallels: just like in Aperture, I have versions of files (managed in git repositories). Sometimes I want to recover old text from older versions and I need to use 3-4 apps to do that (TextMate, some graphical git utility, FileMerge and in some cases, the command line). If I could browse my git repository as in modern git clients such as Gitbox, that would cut one app out of the equation, for instance.
>> Projects were the reason why TextMate 1 did revolutionize my TeX workflow (I used to use TeXShop before which back then could only handle one file at a time) […]
>
> Are your latex files spread across different folders? If so, why?
Yes, they are spread across different folders.
Unless the project is very, very small, I split the tex project into many files. That is essential when collaborating on a project. Even though I know what git is and how to merge files, most of my co-workers do not and it is simply easier to agree by mail/phone/skype that they work on section A while I work on section B.
There are »global« configuration files I reuse. For instance, I have one single bibliography file, for otherwise I would have to maintain one for each project. If, for instance, I need to fix a typo in a reference, I need to edit only one file and then recompile all tex master files which use that reference. The same goes for general settings (packages, fonts, ), custom macros (e. g. >100 »global« custom math commands), etc.
The actual file layout depends very much on the coworkers I have. Some are very old school (think vi, not even vim) and still insist on manual line breaks in the code! They think that using UTF8 is an extravagance I have (hence, I appreciate the encoding settings in the .tmproperties file). Others are more flexible.
Hence, it was very nice for me to organize my files in a TextMate Project according to my needs and preferences without touching the file layout which is often determined by other people. I prefer putting the master tex file on top, then followed by the log, a virtual folder content which contains all section/chapter files + appendix, a virtual folder supplemental where I put »links« bibliography + settings files. Very often, I'd either work on content or presentation, and I can collapse whatever virtual folder I don't need to see. This reduces visual clutter. With virtual foldes I mean folders that exist only within the TextMate Project, but not on the file system. In that sense, TextMate 1 allows me to use my preferred layout and sorting independently of the actual file layout which I may not have control over. It goes without saying that renaming files so that the lexicographical order corresponds to the logical order is usually a big no-no in collaborative efforts.
Overall, a typical project consists of ~7 »local« files (~5 section files, an appendix and 1 master file), 4 »non-local« files (bibliography, 3 setting files) plus all the files xelatex, pdflatex, bibtex and biber generate. With local I mean they are located in the project's directory while non-local files reside somewhere else in the filesystem.
BTW, I also use the »filesystem mode« in TextMate 1, but only for lectures and stuff where I would frequently generate new files. There, it is just easier to have TextMate read the whole directory rather than add new files by hand to a project.
Part of the power of TextMate 1 is that I can use whichever paradigm (project or filesystem) I prefer in a given situation. I hope this gives you a better idea on how I work with projects.
>>> … ?comparisons added for effect? (like Windows Explorer and BBEdit).
>> I have not added these comparisons for effect.
> What purpose does it serve to state that a feature is “Windows Explorer-style”?
… because I remember that the Windows Explorer sorts files and folder this way, that's all. It was not intended as some underhanded remark to taint TextMate 2 by comparing it to Windows. You can browse files with both, so I think the comparison is apt. The analogy is even more clear with BBEdit: I'm asking for a feature that one popular browser has and TextMate doesn't.
>>> Overall your writings include too much rhetoric (like ?useless? and ?revolutionized?) and
>> This is not rhetoric, and I do not use these words lightly.
> What purpose does it serve to state that a feature is useless?
I wanted to tell you that I can't figure out how to use the feature and what it is supposed to do. I thought I could move frequently used files there, but dragging and dropping from one TextMate window to another didn't work, for instance. Adding links to the Favorites folder in the Finder and then opening them didn't occur to me. Even knowing that now, I think it'd be faster and easier to either drag & drop a whole folder from the Finder onto TextMate, to use the command line to open a folder or to use the File > Open Recent menu.
I apologize if you find »useless« is a little harsh and I should have used a less absolute formulation, but I can say Favorites is useless to me at this point and judging from the discussions on this mailing list, there are others who also didn't quite understand what they are supposed to do with Favorites.
In any case, it's a minor thing to me since I can always ignore the feature if I don't use it.
Max
Hi all, I noticed that the TM_COLUMNS environment variable from TM1 seems
to no longer be available in TM2. Is this just not implemented yet, or is
it gone for good?
-Daniel Grady
On 22.02.2012, at 02:45, textmate-request(a)lists.macromates.com wrote:
> Overall your writings include too much rhetoric (like ?useless? and ?revolutionized?) and
This is not rhetoric, and I do not use these words lightly.
I did give specific examples from another field. Perhaps you're not familiar with digital photography (it's a serious hobby of mine), but apps like Aperture and Lightroom have seriously improved the workflow of people who are serious about photography. Adding a layer of abstraction was key here.
Projects were the reason why TextMate 1 did revolutionize my TeX workflow (I used to use TeXShop before which back then could only handle one file at a time). Only later did I discover the usefulness and power of using several bundles in tandem. I am thankful to you for making this essential tool. I spend several hours each day writing and editing text, so these features are important.
> … ?comparisons added for effect? (like Windows Explorer and BBEdit).
I have not added these comparisons for effect.
> Pretty much the only ?problem? I acknowledge on that page (with 7-800 words) is that in TextMate 1 you can drag multiple folders to the TextMate icon and get one window with the files combined, where TextMate 2 will open multiple windows.
I have created these pages after you suggested to do so earlier this month. To me, they were meant to serve two purposes: first, give you feedback and second, to give users like me who need to adjust their workflow to the capabilities and limitations of TextMate 2. If you don't care for the suggestions, that's fine.
So I at least hope that other users contribute with helpful hints, tips and tricks.
Max
I'm running TM2 (9064) on OS X 10.7.2. Recently (mostly today) I've seen a lot of crashes when doing file system operations in the project window. Stuff like renaming a file, dragging it to another folder, sometimes closing a file. Interestingly, TM usually completes the operation ant THEN crashes. Strange behavior.
--Lewy
> I don’t follow this.
>
> Symbolic links are marked with an arrow. What are you asking for here?
I've tested a little further. It turns out that the version control badge most likely covers the little arrow which indicates that a file is a symlink or an alias. I can provide a screenshot if you want.
Max
This is what I get for not reading release notes. My alpha of TM 2 just auto-updated, and for some reason I lost the default soft wrapping of my text files. I can turn it on manually, but have to do so each time I return to an open tab. Is there a way to default this to on?
Drew
If TM2 crashes what would developer(s) like to see happen?
Send the automatic report to Apple, adding a contact address where they (who?) can ask for the crash log?
or
Report a crash on the mailing list including
subject in email like TM2 crashed while adding to favorites
statement that full log is available on request
the first lines of the log which give some basic info
the whole log as an attachment?
anything else?
or
both of the above.
I want to support test/debug work, but I'm not the one to fix stuff.
--Lewy
Max, how would like responses to the wiki? I don't want to edit the thing. My views differ from your. Email you? Or what?
--Lewy
====================
From: Max Lein <realoreocookie(a)gmx.de>
Subject: [TxMt] Projects in TM2 Wikipage
Date: February 21, 2012 12:51:10 AM AKST
To: textmate(a)lists.macromates.com
Reply-To: TextMate users <textmate(a)lists.macromates.com>
I have created a wiki page for Project Management under TM2, you can find it here:
http://wiki.macromates.com/Suggestions/ProjectManagementInTextMate2
I wrote Project Management rather than Projects since Allen does not intend to add projects to the 2.0 release (and quite possibly also not at a later date). So my intention was to collect
(1) suggestions on how to improve the file pane,
(2) how to replicate/adapt the workflow for people who have previously used projects and
(3) reasons why the filesystem-centric approach is not suited to meet their needs.
I'd be happy if other people contribute and add suggestions. Perhaps it can become a handy tool for Allen to collect useful feedback.
Hi,
I reinstalled the R and Rdaemon package and now I get this error message when I try to execute code with the Rdaemon:
"Rdaemon Error: The pipe /tmp/r_in is not found! You have to kill Rdaemon manually."
what do I have to do to get the Rdaemon running again?
thanks for any help!
Hi,
Is it possible to kill / force quit Rdaemon calculations?
Currently, I always force quit textmate, which sometimes is devastating if I haven't properly saved my document before.
So for example if I execute this code via the Rdaemon – how can I stop it? :)
i <- FALSE
while(i == FALSE) {
print('HELP')
}
On 21.02.2012, at 13:00, textmate-request(a)lists.macromates.com wrote:
> On 21/02/2012, at 17.16, Max Lein wrote:
>
> I do understand the usability improvements of showing ? for links.
Great, thanks.
I know it's technically not trivial, but it's good to know it's on the »to be fixed« list.
>> Also, it would help if TextMate would distinguish between files and symbolic links.
>
> What do you mean by this? Maybe what I am saying above, e.g. opening ?dummy? which points to ?real_file? show ?dummy? in the title bar?
Yes, but that means I need to *open* files to distinguish between linked files and files that are »really« in that directory. And if I have opened a bunch of files, I need to activate each tab.
The whole point of marking linked files in the browser is to see at a glance which files are linked and which aren't.
Max
On 21.02.2012, at 13:00, textmate-request(a)lists.macromates.com wrote:
> Hi, I've noticed some of your comments in the wiki, and thought I'd reply here rather than alter what you've put (as it reads as an "opinion" piece).
It's a wiki, i. e. a collaborative effort, and the whole point is that other people are supposed to edit it. Any bias (real or perceived) is mitigated if a large number of people are contribute to it.
Most of what I've written there has been mentioned here anyway and I'd be helpful to others if you would add your replies to the wikipage. :-)
>> Folders first, then files
>>
>> This Windows Explorer-style way to sort files (first, display folders in lexicographical order, then files in lexicographical order) should at least be optional.
>
> Have you tried Preferences > Project > Folders On Top (checkbox)?
Thanks, I wasn't aware of that preference, thanks.
>> Working with remote files
>>
>> Right now, I use CyberDuck + TextMate to edit web pages remotely. Other editors such as BBEdit have allowed the user to edit remote files (accessed via ftp or better sftp) directly with no middle man.
>>
> Have you tried rmate? http://blog.macromates.com/2011/mate-and-rmate/
No, I haven't. (My new university has a cms, so I didn't need to edit web pages remotely in a while.)
But as far as I understand rmate only works via ssh, and I do not have ssh access to all necessary university web servers. To most, I have ftp access (which is antiquated, unencrypted and the whole nine yards, but I'm not in a position to change it).
In any way, thanks!
Max
When copying a line of right-to-left Hebrew text from one file to another in TM2 9064 using my mouse (OS 10.7.3), I noticed the highlighting of text didn't cover the Hebrew text, but white space to the right of the Hebrew text.
See screen shot attached. To copy the Hebrew of line 12 (and it worked), I had to click on the beginning of line 13 (to the L), drag to the right of line 12 so that the highlighting would be just to the right of the Hebrew text. Then, Command C would properly copy the four Hebrew words.
If I dragged the mouse so as to cover as much of the Hebrew line as possible, it would cover the whole Hebrew text except the last letter (ם). But then only this last letter could be copied to the other file.
Is this the correct behavior when yanking right-to-left text? I'm asking because I may need to continue using Mellel in parallel with TM for this kind of task. I was beginning to think I could do without it completely. Not a problem, but I thought I would ask if the behavior I see is what I can expect to see in TM's future.
-- Gildas
Typically, TM2's file browser adds an x to the right of any opened files. This not just indicates which files are open, clicking in it closes the files.
Since there are no projects in TM2, I've added a link to a file located in another directory. Double clicking it opens the file, but no x appears next to the file.
Also, it would help if TextMate would distinguish between files and symbolic links.
Max
Bundles that didn't install: I added .tmbundle to the name and all was well. D'oh.
<rant>Whyever does the OS keep trying to suppress the suffix?</rant>
:-(
Lewy
I have a pretty reliable permanent hang after updating to r9062 this
evening. The hang isn't immediate, but happens pretty reliably after
editing tracked files for 10 minutes or so.
Inspecting a sample of the process suggests it is scm:background_status
that is hanging. My repo is git. I tried disabling the SCM bundle, but
that doesn't appear to have helped.
The sample, if it's helpful: http://pastie.org/3411939
-MinRK
I have seven bundles in ~/Library/Application\ Support/Avian/Bundles . TM2 loads all but two. Of those, one is a collection of my own snippets; the other is Whitespace.tmbundle from Mads Hartmann Jensen. I have no idea why TM2 loads five of the seven and ignores the other two. I tried double clicking the two, which happily installed them into TM1. Any suggestions?
--Lewy
Hello, I'm trying to use a regexp with look-ahead. The search works, but
clicking "replace" button does nothing. I'm stumped. Here's an example:
Find: public (?=int)
Replace: private
Regular expression: checked
Ignore case: unchecked
Wrap around: checked
Click "find" and "public " is selected, but then clicking "replace" does
nothing. Also "replace and find" goes to the next occurrence, but does not
perform the replacement.
Using Textmate 1.5.10
Thanks,
ErikN
Is there any way to avoid the "What is the file type of..." dialog when
opening a file with an unknown (or non-existent) extension? For me, 99%
of the time those files are plain text. I want save a step and have TM2
treat any unrecognized file as plain text. In the rare case that it's
something else I can manually change it after the file has been opened.
Is there some way I can get this behavior?
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>
I had set the font of my project/folder via the View->Font menu to
"ProFontWindows" 9
In my folder, I create .tm_properties with the following content.
TM_GIT = "/usr/local/bin/git"
TEST_DEFAULT_FONT="$fontName/$fontSize"
["*.txt"]
fontName = "Menlo"
fontSize = 16
TEST_TXT_FONT="$fontName/$fontSize"
In a txt file, I execute the following line with ^R
echo $TEST_TXT_FONT
=Menlo/16
echo $TEST_DEFAULT_FONT
=/
But the problem is the the buffer is not rendered with Menlo size 16.
Is my font setting via the menu overriding the font setting in the
.tm_properties file? How do I reset it if that's the case?
Thanks
--
Chris
Hello,
This is probably a minor note, but one feature of some recent tabbed
interfaces (Chrome) that I quite like is deferring the auto-resize of tabs
after one is closed until either a delay or the mouse leaves the tab area.
This makes subsequent actions (either selection or further closes) more
pleasant, because you don't have moving targets, which can cause accidental
actions.
Pretty low priority, obviously, but I thought I would bring it up because
I've been opening and closing lots of tabs today.
-MinRK
Am 14.02.2012 um 12:03 schrieb textmate-request(a)lists.macromates.com:
> Though many things have already been said about the respective pros and cons, so it might be better to start a wiki page and collect the information instead of repeating what has already been said (or simply claiming that the loss of projects is disconcerting).
If you point to a wiki page, I'd be happy to contribute.
Max
Search in project short answer: yes, it works.
Unless some other problem crops up, we now have a workable answer.
Search in project works for me if I make a project folder which contains links to the files in the project where the links are created in bash (via terminal -- iterm2 in my case). I used
ln -s full/path/to/sourcefile full/path/to/targetfile
Using full paths would allow running from anywhere, regardless of where the files involved actually are.
Using apache as an example, the bash command looks like this
ln -s /private/etc/apache2/extra/httpd-vhosts.conf ~/Documents/2-apache-b/httpd-vhosts.conf
I opened the directory 2-apache-b in TM2 and added it to favorites. A search for ServerName, for example, found all instances of ServerName across the set of files in 2-apache-b. That is, it looked like all occurrences. There are a lot of instances in the files I searched and I didn't verify "all". It looked reasonable, though.
If I had a hundred files to set up this way, I wouldn't want to do it. But if I'm adding a few files to a directory, or combining two directories into one for editing, or, as in this case, just combining four commonly used files, the utility of searching well outweighs the setup.
A script reading from a list of files plus the target directory would be reasonable. A bundle adding a few files together would also be useful.
--Lewy
From: Devon Weller <wellerco(a)gmail.com>
Subject: [TxMt] Re: making projects
Date: February 14, 2012 1:08:24 PM AKST
To: TextMate users <textmate(a)lists.macromates.com>
Reply-To: TextMate users <textmate(a)lists.macromates.com>
Did you see Allan's response and try following his advice?
http://lists.macromates.com/textmate/2012-February/034445.html
I have a set of four scattered files -- not too many to test with. I used aliases to build the set. I'll try it with ln -s and see if search works.
Thanks for the pointer. I read it, but it didn't penetrate. :-(
--Lewy
Hi,
I noticed that TM2 is looking for .p4config files, but I can't find any
Perforce commands in the bundles (or in Cmd-Y, which never seemed to
detect my git repositories, either). Is anything beyond looking for the
config files already in place and I'm too blind to find it, or do I just
need to wait?
Christopher
Dear all,
I am enjoying getting to know TM2.
I've been having trouble getting it to work with svn. When I try a
command that actually requires remote access, I get a dialog:
The 'svn' command produced an error
Permission denied (publickey,keyboard-interactive).
svn: To better debug SSH connection problems,
remove the -q option from 'ssh' in the [tunnels]
section of your Subversion configuration file.
svn: Network connection closed unexpectedly
This is an svn+ssh connection, with ssh = $SVN_SSH ssh -Y in
.subversion/config.
It works fine with TM1 (and from the command line). I've tried
explicitly setting TM_SVN and SVN_SSH within TM2, to no avail.
Any ideas?
Andrew
@Alan
> it might be better to start a wiki page and collect the information instead of repeating what has already been said (or simply claiming that the loss of projects is disconcerting).
Good idea. Let's get this all in one place.
> relying on the file system … vs. private system
I support Alan on this one. I just want a solution to "find in project" (whatever project is) and a relatively easy way to collect links into a folder. The latter is certainly amenable to a bundle solution, which I would happily do if I knew how. "Find in project" may be a problem with Lion. It's desirable (I used it), but not a show stopper. Let's look for a way to accomplish the find we need using the OS.
--Lewy
> When you do this, are you able to search across all files contained in those aliases? I am not. I just want to make sure I'm not missing something obvious.
No, I cannot. Search in document and search in open files both work as expected. Search in project does not. It returns an empty result and doesn't even find hits in a currently open document.
Let me add, though, that I am having a LOT of trouble with Lion searching in general. Finder searches seem to miss a lot of stuff. So does Spotlight. I'm not convinced this isn't a Lion issue, but I'm not clever enough to track it down. :-\
--Lewy
Because I never found it in 1.x either. Tapping ALT just never occurred to me. HOLDING ALT or some other control key often did things, but tapping was outside my limited box of tricks.
--Lewy
On Feb 14, 2012, at 2:03 AM, textmate-request(a)lists.macromates.com wrote:
>> On a stylistic note, I really would like "Change to Column Selection" to be put back into the Edit menu. It's not obvious (at least, not to me...) that tapping ALT is the way to do it, and it's not the kind of thing you can figure out by experimentation. I looked all over for how to make a column selection in TM2 and finally found it in a blog post.
>
> While I won’t dispute the value of a menu item, why wouldn’t you assume that the way to do it in 1.x still worked (tapping the option key)? I assume your question about rebinding the key reveals that perhaps you never got into that in 1.x, hence the reason.
Seems TM2 can only run one task at a time. I have multiple Xcode targets I run at the same time, TM2 only allows me to run one of them.
It also keeps reusing the same output window, so I can't have (for example) my ToDo list and view uncommitted changes at the same time.
Gerd
Hi.
I'm experiencing a problem with bundles that use tm_dialog2. It appears that the dialog is failing in my install of TextMate (Version 1.5.10 (1631)).
When I run tm_dialog2 on the command line, I get "error reaching server". Like this:
> $ /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/Resources/tm_dialog2
> error reaching server
Should that be the case?
More specifically, I am trying to use the "Documentation for Word..." function that is part of the standard PHP bundle. It appears to be failing at line 149 of this file:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb
Has anyone else had this problem or have any suggestions to get the tm_dialog2 binary working again?
Thanks,
- Devon
@Devon from digest
> My project structure is more complicated than .tm_properties will allow. I organize projects by referencing different folders from several different places.
>
> I guess I would need support for aliases or symlinks or something in order to use TM2 the way that I use TM1. Has anyone else found a good workaround for this?
>
> - Devon
What I have done is to make a (project) folder somewhere convenient and fill it with Mac aliases. They seem to work just fine for the purposes, so there is no need to hit terminal to make links. Put your collection of aliases into the project folder. Open the folder in TM2 and add it to favorites. It seems to work very nicely, although it is a bit labor intensive to set up. However, I'm sure that eventually some of the wizards who inhabit this realm will concoct a scheme to make this easier. Functionally, it is serving me well.
I work mostly with web sites which are not particularly large. Version control with svn is nice from TM2. It's all under cmd-Y whether you use Git or Svn. There are some oddities in that package, but I'm willing to be patient.
I like seeing files using OS structure and I can get to any file on the system with this approach. For working with a folder of files, things are simple.
I suppose this is alpha because some parts are not yet present. It runs like a good beta, however. I am using it almost exclusively. Good job, folks.
--Lewy
Hi All,
New to this list, sorry if this is a repost but I searched a couple of
months back in the archives and can't find any mention of it.
I very often use global search and "replace all" in a project. When
doing so, my replacement term doesn't go in the right place, but rather
in random places in the file, sometimes close to the head of the file.
I can't pinpoint the exact place where it'll land, but it definitely
doesn't go where it should.
Here is an example, sorry for the code dump!
Sincerely,
Alexandros
For example:
ORIGINAL FILE =======
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
Replace me here
</body>
</html>
GLOBAL SEARCH AND REPLACE ======
search: Replace me here
Replace: I want a new body
EXPECTED OUTPUT =============
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
I want a new body
</body>
</html>
ACTUAL OUTPUT =================
<!DI want a new body html> <!-- Replacement text is here! -->
<html>
<head>
<title>Page Title</title>
</head>
<body>
Replace me here
</body>
</html>
Has anyone else experienced TM2 being slow to open new files? When I click
on a file in the file browser it
takes about 5 seconds for the file to open. After three seconds I see the
new tab and the it take another
couple of seconds before the file content is displayed. This is with an
HTML file of only 14 lines.
Curt
Dear list,
TM2 looks great, but there's one thing I've been searching for for while now and I didn't find any solutions to it. I'm now resorting to asking the list, and hope that's appropriate.
How can I change (decrease) the font-size of the project drawer? It looks like it's a finder-window, but right-clicking doesn't provide a 'Show View Options' like regular finder-windows do. Also, changing the font-size in finder itself doesn't seem to affect the font-size of the drawer.
I very much hope I'm overlooking something here, because it looks like this is the only thing standing in the way of my being able start using this great-looking and long anticipated version of this great piece of sofware.
Thanks!
-- Bastiaan
Hi,
just trying out Textmate 2 and have configured .tm_properties for a project as:
excludes = "data,external,fixtures,*.log,*.d"
exclude = "{excludes}"
excludeInFileChooser = "{$excludes}"
excludeInFolderSearch = "{$excludes}"
excludeFilesInBrowser = "{$excludes}"
but when I select "Go->Go to File Counterpart" from, for instance,
registry.cc I first get registry.d opened and then registry.h. I only
want to view registry.h and have tried to exclude registry.d, but it
doesn't seem to be excluded from this functionality.
Am I doing something wrong?
Cheers,
Donovan.
So one of the things I did often in TM1 was create projects with files that
are located all over the file system. Seems like projects in TM2 are based
off of a single folder, but I admit I don't understand the .tm_properties
stuff that well yet.
Is there a way to use .tm_properties to do what I did in TM1? If so, can
someone post an example .tm_properties?
Thanks.
--
View this message in context: http://old.nabble.com/TM2%3A-projects-with-scattered-files--tp33250354p3325…
Sent from the textmate users mailing list archive at Nabble.com.
So TM2 awesomely and finally displays non-English, non-Latin text well.
Unfortunately, Input Methods are broken without using a mouse to click.
Japanese input (Kotoeri) definitely does not work right.
Seems like TM2 is ignoring or misusing Cocoa's concept of "marked text" (input marked for completion/conversion, where some form of phonetic input is done on a qwerty keyboard and is then converted to CJK, cycling through choices using space bar, or arrow keys, selecting conversions by pressing enter/return or the number of the numbered list of conversion choices)
That is still a bummer. This is the one thing that TM and TM2 have not been capable of, but all the competition seem able to handle. I know it has to do with implementation, but still makes me have to try others...
Forgive me if this has been posted before, but I noticed a problem with TM2's
implementation of the wrap column.
In my ~/.tm_properties file, I have:
# File type specific configuration
#
[ text ]
softWrap = true
[ text.{haml,html} ]
wrapColumn = 100
[ text.plain ]
wrapColumn = 80
And for the most part, TM2 respects this.
However, the wrap column setting is not respected when I'm creating a new
file:
When I create a new file, its type is text.plain by default, and the wrap
column is 80. This is fine. But then say I save it as an HTML file. I expect
that the wrap column should now move to 100, because the type of the file
has changed to text.html. TM2 does not do that. Instead, to see the wrap
column properly set, I have to close and reopen the file.
Should I open this as a ticket instead? Please let me know.
Thanks,
Richa
--
View this message in context: http://old.nabble.com/TM2%3A-Wrap-column-not-changed-once-new-file-is-saved…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
the following C++ code is indented as I expect:
std::cerr
<< "a=" << a
<< ", b=" << b
<< ", c=" << c
<< std::endl;
Asking TM2, I get it indented as:
std::cerr
<< "a=" << a
<< ", b=" << b
<< ", c=" << c
<< std::endl;
Christopher
I've looked all over TM2, but I can't find a way to save a macro once
I've recorded it. Am I missing it, or is it not yet implemented? (BTW,
searching for the word "macro" in a mailing list from "macro"mates.com
is... unproductive. :-)
And how about proxy commands in bundles? I realize they're in a
preliminary state now, but is there a list of available actions? Are
proxies intended to be the evolution of macros?
What prompted these questions was a search for a way to reassign the
column-select keystroke. In TM1 I could define a macro to map it to
something sane, like ^B. Is there a way (yet) to do something similar
in TM2?
On a stylistic note, I really would like "Change to Column Selection" to
be put back into the Edit menu. It's not obvious (at least, not to
me...) that tapping ALT is the way to do it, and it's not the kind of
thing you can figure out by experimentation. I looked all over for how
to make a column selection in TM2 and finally found it in a blog post.
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>
I know this list is generally for reporting bugs and asking for help so it may be disheartening to those who work on TM2 to be reading about "this" being broken or "that" could be done better every day. I've been using TM2 for well over a month daily and I just want to congratulate everyone involved on what a fantastic program they've developed. I often forget that I'm working on an alpha release and this is certainly the best and most stable alpha release I've used in a long, long time.
So a tip of the chapeau to everyone and happy friday!
Ed Wong
this link helped me at least with saving by "Cmd+S" ...
http://blogobaggins.com/2009/03/31/waging-war-on-whitespace.html
david
> What I'm looking for is a way of hooking the Save command so that the whitespace stripper is run just before saving, regardless of whether I pressed Cmd-S, chose Save from the File menu, or selected Save in the dialog when closing a document with unsaved changes.
>
> I'm sure I read something on a blog which suggested it was possible, but the article unfortunately assumed a greater familiarity with bundle writing than I have :)
>
> --
> John Yeates
This terminal command should make the HTML output go back to displaying in a separate window:
defaults write com.macromates.TextMate.preview htmlOutputPlacement window
Good luck!
- Adam Jackman
> I use TextMate and the Latex bundle extensively. With version 1, when I run Latex (cmd-R) the output of the latex compiler pops up in a new window. With TextMate 2, the output instead appears as part of the editing window. I made the mistake of resizing the output window to 0 - dragging it all the way down - and now I can't get it back. This makes tracking down errors difficult. I can't drag the separator back up because the entire window resizes instead.
>
> Is there a way to make the output window either appear separately, as in TextMate 1, or get the drag handle back?
>
> Drew
I tried double-clicking the .tmbundle's for several programming languages
(e.g. Dart <https://github.com/k33g/dart-textmate-bundle>,
Rust<https://github.com/tomgrohl/Rust.tmbundle>).
When I open them with TextMate 2, the editor doesn't load the bundles but
opens them as if they were ordinary code directories.
What do bundle developers have to do differently in TextMate 2? Or is
TextMate bundling broken at the moment?
Cheers,
Andrew Pennebaker
I use TextMate and the Latex bundle extensively. With version 1, when I run Latex (cmd-R) the output of the latex compiler pops up in a new window. With TextMate 2, the output instead appears as part of the editing window. I made the mistake of resizing the output window to 0 - dragging it all the way down - and now I can't get it back. This makes tracking down errors difficult. I can't drag the separator back up because the entire window resizes instead.
Is there a way to make the output window either appear separately, as in TextMate 1, or get the drag handle back?
Drew
To reproduce, enter the following text on a new line, then hit ^r
"$TM_SUPPORT_PATH/bin/mate"
TextMate will open a new untitled tab, then become
unresponsive. However, the OS won't mark it as unresponsive in the Force
Quit dialog.
Tested with r9015 and r9028.
Cheers,
Martin
Hi All,
Noticed a rather worrying problem in the "Find" dialog of TM2. If you
select "In: Document" in the find box, it all behaves nicely, and only
shows you results from the current file. If you switch this to "In:
Selection", then it doesn't. Hitting "Find All" gives results from the
current directory (and actually sometimes this defaults to the current
directories of other TM2 windows), which is rather worrying if you are then
planning to hit "Replace All" and are just expecting it to replace things
in your selection. The "Sigma" button does however seem to obey the
selection directive...
I'm assuming this comes under the "work in progress" label, so I hope this
post will serve as a friendly warning for those using TM2 as their
permanent editor - it is after all still in alpha! Hopefully allan will
manage to sort this out soon :-).
David.
Hello.
I have used LaTeX in Textmate for years with no problem. Recently I updated my hard drive and did a clean install. Everything works fine, but when I run BibTeX I get this:
Traceback (most recent call last): File "/Users/cwimpy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 570, in
texStatus, isFatal, numErrs, numWarns = run_bibtex(texfile=fileName) File "/Users/cwimpy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 104, in run_bibtex return stat,fatal,err,warn UnboundLocalError: local variable 'stat' referenced before assignment
I am not sure what this means or how to fix my problem. I should also note that BibTeX doesn't even try to run adter executing "Typset & View," and I get the message above when I try it manually. The problem persists in Textmate 2 as well. I can run BibTeX in TeXShop with no problems. Any suggestions?
Thanks,
Cameron
TM1 allowed the wrap column indicator to be visible when soft wrap was disabled. I find this extremely useful, but it is not possible in TM2 - the wrap column indicator disappears when soft-wrap is disabled.
Are there any plans to re-enable this in TM2? It sounds small and silly but it's pretty much the one thing stopping me from using TM2 full time.
I have occasional need in LaTeX to edit several lines of variable length, usually for poems, and add the suffix "\\" to each of them.
In TM 1.5, I selected all the lines I wanted to suffix and I used Text → Edit Each Line in Selection (⌥⌘A) and the caret was placed at the end of the first line in the selection. The suffix was added to all lines in the selection.
What's the best way to do that in TM 2? Presently I'm using multiple carets (⌘T) and clicking on each line to set the multiple carets. I would very much appreciate suggestions how to do this in a more efficient way.
--Gildas Hamel
I am setting up the Blogging bundle with a WordPress blog and running into what looks like a known problem:
wrong dateTime.iso8601 format
when fetching posts
I am able to post to my blog from Textmate so the basic configuration seems to be working.
The discussion on macromates.com and in the archives of this list referred to mismatch between Ruby's XML-RPC parser and WordPress, but the versions listed are all well before what I have.
I am running:
OS X Lion
WordPress 3.3.1
Textmate Version 1.5.10 (1631)
Ruby 1.8.7
I ran getBundles to update the blogging bundle to the latest version and also verified that the version of Ruby TM is finding is 1.8.7
Any advice on how to track this down?
thanks!
George Wyner
When I click the menu for a bundle on the bottom of the window (next to where one changes the filetype/bundle), I do not get a menu, just a message saying "bundle item popup".
If I follow the menu bundles--> <some bundle> --> <some menu item> everything works fine.
Is this expected behaviour at this stage of development?
Thanks,
Christopher
Hi,
[tiny iussue]
drag actions are working but the action will only be visible if I set the key focus to that TM2 doc.
Scenario: Drag a supported drag action file to a TM2 window - nothing will be seen in the window unless I click at that window.
Cheers,
--Hans
Hi,
I use the R-TextMate Bundle and just recently run into problems when executing code via 'Run Selection in R'.
After some loop-iterations I get the following error message and have to start the calculations all over again:
/Library/Application Support/TextMate/Bundles/R.tmbundle/Support/tmR.rb:157:in `write': Invalid argument (Errno::EINVAL)
from /Library/Application Support/TextMate/Bundles/R.tmbundle/Support/tmR.rb:157:in `print'
from /Library/Application Support/TextMate/Bundles/R.tmbundle/Support/tmR.rb:157
from /Library/Application Support/TextMate/Bundles/R.tmbundle/Support/tmR.rb:144:in `each'
from /Library/Application Support/TextMate/Bundles/R.tmbundle/Support/tmR.rb:144
There seems to be no inherent problem with the code. Sometime the script runs till the end, sometimes I get these error-messages ...
Can someone explain these error messages to me?
thanks in advance!
> textmate2 wiki with ads?
> no thanks :)
No problem. :)
> Why do we need matewiki.com (http://matewiki.com) when there is already wiki.macromates.com (http://wiki.macromates.com)?
I posted the first 5 reasons that came to mind an email or two back:
> I want EVERYONE to have access to it, not just me which will lead to a broader and more updated resource. The
> macromates CSS theme is way too thin for my screen. I'm a control freak and want to be able to use it as a personal
> resource for TextMate bundle development. I'm going to put ads on it in an attempt to support my wild and not-yet-
> profitable personal projects. I'd rather figure ___ out myself then get access to someone else's ___.
BTW, yes I know everyone hates ads but I can either get a job and not work on TextMate & other personal projects or try to get my hustle on and do what I care about. I'll set up a donate link soon since people are so vocally against ads. ;)
PS If you are logged in to the Wiki the ad disappears. Registration is obviously free and simple. Happy? :)
--
Brandon Fryslie
Dear all,
I'm just playing with the latex bundle and TM2. Every time I do anything
like edit text or save TM2 freezes and takes up one core on my machine. I
this due to 'attr.save-on-deactivate' ?
my .tm_properties file looks as follows:
#######
PATH =
"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/usr/bin/local:/Library/Frameworks/GTK+.framework/Resources/bin"
[ *.{R, c, cpp, m, pl, rb, html, xml}]
scopeAttributes = 'attr.save-on-deactivate'
######
Also quick 2nd question how do I get the compiled pdf to appear in a
separate window like TM1 instead of at the bottom of the window?
Cheers,
Paul
Hi All,
I think the tabulation settings were preserved across TM2 sessions,
but they are actually not on my MBP.
What are the rules about the tabulation settings? Is there some
specific action(s) to do so that soft tabs are always on?
Thanks,
Emmanuel.
Hi All,
I'm editing C files with TM2, and the auto indentation is often wrong,
and forces the cursor to move to an unexpected position when I start
writing a new line.
I'm looking for information/guide to:
* disable the whole auto-indentation feature
* configure the auto-indentation feature, if it's feasible
* cancel the last auto-indentation action: Cmd-Z removes both the
indentation and the typed character. In many others editors, Cmd-Z
cancels the automatic action, then a second hit remove the last typed
char. Is there an equivalent in TM2?
Thanks,
Emmanuel.
Is there a way to prevent the tabs from changing order?
I usually setup my workspace, with specific files in the first tabs (e.g.,
spec/test on cmd-1 and code on cmd-2). It seems that every once in awhile
it changes the order. Can I get TM2 to leave the tab order alone?
I'm trying to use Textmate2 with a big php project. I have made a huge commit in the git repository and while processing the commit Textmate starts to hang bringing the cpu at 80% and memory up to 1.25GB.
Looking at the Console this is what I've found
30/01/2012 16:28:23 TextMate[24252] TextMate(24252,0xa059f540) malloc: *** mmap(size=872415232) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
30/01/2012 16:28:23 [0x0-0x1e91e9].com.macromates.TextMate.preview[24252] TextMate(24252,0xa059f540) malloc: *** mmap(size=872415232) failed (error code=12)
30/01/2012 16:28:23 [0x0-0x1e91e9].com.macromates.TextMate.preview[24252] *** error: can't allocate region
30/01/2012 16:28:23 [0x0-0x1e91e9].com.macromates.TextMate.preview[24252] *** set a breakpoint in malloc_error_break to debug
30/01/2012 16:28:23 TextMate[24252] Attempt to allocate 872415232 bytes for NS/CFData failed
30/01/2012 16:29:15 fseventsd[56] SLOWDOWN: client 0x10082ca00 (pid 24252) sleeping due to too many errors (num usleeps 23)
30/01/2012 16:31:43 fseventsd[56] SLOWDOWN: client 0x10082ca00 (pid 24252) sleeping due to too many errors (num usleeps 35)
30/01/2012 16:34:30 fseventsd[56] SLOWDOWN: client 0x10082ca00 (pid 24252) sleeping due to too many errors (num usleeps 47)
30/01/2012 16:36:35 fseventsd[56] SLOWDOWN: client 0x10082ca00 (pid 24252) sleeping due to too many errors (num usleeps 59)
I have Textmate2 Version 2.0 (9005) installed.
Patrick Polloni
Hi,
my sources live in a network file system behind some complex automount
scheme, let's say /foo/bar/workarea/user/project. Whenever I open some
directory there inside TM2, I get tons of messages like these in the
system log:
> 30.01.12 11:11:34 automountd[3079] parse_entry: getmapent for map sfs.worldwide.somewhere.workarea, key .git failed
> 30.01.12 11:11:34 automountd[3079] parse_entry: getmapent for map sfs.worldwide.somewhere.workarea, key .hg failed
> 30.01.12 11:11:35 automountd[3079] parse_entry: getmapent for map sfs.worldwide.somewhere.workarea, key .p4config failed
> 30.01.12 11:11:35 automountd[3079] parse_entry: getmapent for map sfs.worldwide.somewhere.workarea, key .svn failed
> 30.01.12 11:11:36 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.bar, key .git failed
> 30.01.12 11:11:36 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.bar, key .hg failed
> 30.01.12 11:11:37 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.bar, key .p4config failed
> 30.01.12 11:11:37 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.bar, key .svn failed
> 30.01.12 11:11:37 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.foo, key .git failed
> 30.01.12 11:11:38 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.foo, key .hg failed
> 30.01.12 11:11:38 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.foo, key .p4config failed
> 30.01.12 11:11:39 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.foo, key .svn failed
> 30.01.12 11:11:39 automountd[3079] parse_entry: getmapent for map sfs.worldwide.somewhere.workarea, key .git failed
> 30.01.12 11:11:40 automountd[3079] parse_entry: getmapent for map sfs.worldwide.somewhere.workarea, key .hg failed
> 30.01.12 11:11:40 automountd[3079] parse_entry: getmapent for map sfs.worldwide.somewhere.workarea, key .p4config failed
> 30.01.12 11:11:40 automountd[3079] parse_entry: getmapent for map sfs.worldwide.somewhere.workarea, key .svn failed
> 30.01.12 11:11:41 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.bar, key .git failed
> 30.01.12 11:11:41 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.bar, key .hg failed
> 30.01.12 11:11:42 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.bar, key .p4config failed
> 30.01.12 11:11:42 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.bar, key .svn failed
> 30.01.12 11:11:43 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.foo, key .git failed
> 30.01.12 11:11:43 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.foo, key .hg failed
> 30.01.12 11:11:43 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.foo, key .p4config failed
> 30.01.12 11:11:44 automountd[3079] parse_entry: getmapent for map auto.sfs.sol2.foo, key .svn failed
It seems that TM2 tries finding the config files all the way to the root
directory for each file or directory it sees in the directory tree. I
know TM2 development is not yet at performance tuning, I just wanted to
point out that there is a probably low-hanging fruit here.
On a related note, we are using perforce, but tend to have config files
named .perforce. Is the file name TM is looking for configurable (yet)?
Christopher
In my .tm_properties file I have the following:
[ text.html ]
tabSize = 4
[ source ]
tabSize = 2
If I edit a javascript file then I correctly see tabs taking up two spaces.
If I edit an html file then tabs are seen as four spaces. If I embed
javascript in the html file the tabs within the javascript code are now
taking up 4 spaces. Pressing Cmd-Shift-P shows the following scope:
text.html.basic
source.embedded.js.html
attr.rev-path.xhtml.html.about.misc.views.templates.WEB-INF.webapp.myproject.curt.Users
attr.os-version.10.8.6
attr.scm.svn
attr.scm.status.H
So it appears that the text.html.basic scope is taking precedence over the
source.embedded.js.html scope. Is there a way to have this behave in the
expected manner so that my javascript settings are honored when embedded in
html?
Thanks,
Curt
TM2 (at least in Ruby) seems to treat words as what the compiler sees,
rather than what the developer sees.
For example, in the following ruby code...
def some_variable
@so
end
With the cursor after '@so', when you hit escape, nothing happens. Given
that (from the developers point of view), the accessor method for
'some_variable' and the instance variable name for the same are the same
things, shouldn't that complete properly?
The same goes with symbols. This code has a similar problem...
before_filter :some_method
def some<cursor>
So far, this has probably been one of the frustrating issues in TM2 for me.
Is this going to be fixed/changed?
Hi,
I've got favorites for “lib” and “LIB” set, pointing to two different
locations. That works fine when I switch the file browser to the
favorites (with the heart shape icon), but in the command-shift-O
dialog, I only see one of them.
I know I can rename the favorites and probably will do that, but
shouldn't these two views into the favorites list behave similarly, at
least when I have no subfolders?
Christopher
Is it possible to change the key combination used for completion? Escape is a very far reach given how commonly I use completion. If not, I'll just have to resort to keyremap4macbook.
Thanks,
Connor
On Jan 30, 2012, at 6:00 AM, textmate-request(a)lists.macromates.com wrote:
> Date: Mon, 30 Jan 2012 11:10:32 +0000
> From: "ld(a)ldaley.com" <ld(a)ldaley.com>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: TM Bundle for Java - Improved Java Properties
> grammar
> Message-ID: <6ACE76A4-AF40-4943-AA54-0805C2990BDA(a)ldaley.com>
> Content-Type: text/plain; format=flowed
>
> On 29 Jan 2012, at 6:15, John Joyce wrote:
>
>> Hello List,
>> After ages of consternation with viewing Java Properties files that
>> had multiline values in KVPs not properly syntax colored, I have
>> created a better language grammar for Java Properties.
>>
>> It does several things...
>> First it captures comments of course.
>> Then single-line KVPs
>> Then KVPs with dangling spaces or tabs between the key and the = sign.
>> (These stand out awesomely during fast scrolling to find where they
>> are and fix them)
>> Then multi-line-value KVPs.
>>
>> One can never be 100% sure of these things, but I feel fairly
>> confident with it because the multi-line-value KVPs I have dealt with
>> are actually HTML emails stored in KVPs. :)
>>
>> By the way, it looks best in Sunburst them.
>>
>> Please consider it for inclusion.
>
> If you submit a pull request for
> https://github.com/textmate/java.tmbundle I'll happily include it.
>
> Thanks!
>
> LD.
Submitted pull request.
Thanks,
John Joyce
Oddity:
My cursor ist placed after the "h" in the tag that should become "h1". The tag has been produced using "Insert open/close tag with current word" but without anything selected. I just typed the "h".
when typing the "1" the snippet inserts weird stuff underneath, where the text "Headline 1" is (see second screenshot).
could someone with a little more expertise have a look at the snippet and possibly fix it? I have no idea why that happens.
Thanks,
Thomas
Hello List,
After ages of consternation with viewing Java Properties files that had multiline values in KVPs not properly syntax colored, I have created a better language grammar for Java Properties.
It does several things...
First it captures comments of course.
Then single-line KVPs
Then KVPs with dangling spaces or tabs between the key and the = sign. (These stand out awesomely during fast scrolling to find where they are and fix them)
Then multi-line-value KVPs.
One can never be 100% sure of these things, but I feel fairly confident with it because the multi-line-value KVPs I have dealt with are actually HTML emails stored in KVPs. :)
By the way, it looks best in Sunburst them.
Please consider it for inclusion.
zipped for your unzipping pleasure.
Thanks,
John Joyce
Sorry if this has been covered, but I couldn’t find a mention of it.
Is there a “Filter Through Command” in TextMate 2 (8998)? Was it re-implimented as a bundle item or something? I can’t find it and the old shortcut doesn’t seem to bring it up.
--
Rob McBroom
<http://www.skurfer.com/>
Dear Sir or Madam:
http://jpfly.com/woaint.php?fuducampID=38
Thu, 26 Jan 2012 8:40:39
______________
" At the commencement of winter, Artichoke plants should be protected against frost, which sometimes destroys them in our climate" (c) Kailene vtk5945
On 24/01/2012, at 20.54, Dirk Günther wrote:
> I use the LaTeX grammar and I have defined my own shortverb
> command [...] What should I do that |c| in \tabular{...} is not defined as
> verbatim?
As Allan suggested, I think that you need to have a rule in the LaTeX
grammar that will match the column specification part of the tabular
environment. Instead of writing a completely new rule, I tried changing the
relevant existing rule, copied below. The only difference is in the begin
match. I also tried adding your rule for scoping anything between pipes as
verbatim, and this change to the tabular rules seems to do what you want -
anything in the column spec is not scoped as verbatim. Hope that helps!
-Daniel Grady
{ begin = '(?x)
(?:\s*) # Optional whitespace
((\\)begin) # Marker - Function
(\{) # Open Bracket
(array|tabular[xy*]?)
(\}) # Close Bracket
(\s*\{.*\})? # Column specification
(\s*\n)? # Match to end of line absent of content
';
captures = {
1 = { name = 'support.function.be.latex'; };
2 = { name = 'punctuation.definition.function.latex'; };
3 = { name = 'punctuation.definition.arguments.begin.latex'; };
4 = { name = 'variable.parameter.function.latex'; };
5 = { name = 'punctuation.definition.arguments.end.latex'; };
6 = { name = 'variable.columnspec.tabular.latex'; };
};
contentName = 'meta.data.environment.tabular.latex';
end = '(?x)
(?:\s*) # Optional whitespace
((\\)end) # Marker - Function
(\{) # Open Bracket
(\4) # Previous capture from begin
(\}) # Close Bracket
(?:\s*\n)? # Match to end of line absent of content
';
name = 'meta.function.environment.tabular.latex';
patterns = (
{ match = '\\';
name = 'punctuation.definition.table.row.latex';
},
{ begin = '(?:^|(?<=\\\\))(?!\\\\|\s*\\end\{(?:tabular|array))';
end = '(?=\\\\|\s*\\end\{(?:tabular|array))';
name = 'meta.row.environment.tabular.latex';
patterns = (
{ match = '&';
name = 'punctuation.definition.table.cell.latex';
},
{ begin = '(?:^|(?<=&))((?!&|\\\\|$))';
end = '(?=&|\\\\|\s*\\end\{(?:tabular|array))';
name = 'meta.cell.environment.tabular.latex';
patterns = ( { include = '$base'; } );
},
{ include = '$base'; },
);
},
{ include = '$base'; },
);
}
Setup:
Some text here {Some text here {some more text here}} Some text here
1. Place cursor after the first } but before the second }
2. Press Ctrl-Up.
My understanding is that the cursor should jump to just after the first {,
instead it lands just before the second {.
Cheers,
David.
The default settings for TextMate 2 have soft wrapping turned on for text
scopes. When I'm editing a LaTeX document (text.tex.latex), this is fine,
except for tables. Inside of tabular environments I've usually got the
columns lined up so it's easier to read the source file, but when soft
wrapping is turned on this just becomes a huge mess. I thought it would be
possible to turn soft wrap off inside tables through the .tm_properties
file, and I tried adding this rule
[ meta.function.environment.tabular.latex ]
softWrap = false
but this doesn't seem to do anything. Do scope selectors work the same way
in .tm_properties as elsewhere? Does anyone have a suggestion for this,
short of altering the LaTeX bundle? Thanks for any help!
-Daniel Grady
The scope of a tabular environment is
text.tex.latex
meta.function.environment.general.latex
meta.function.environment.tabular.latex
meta.data.environment.tabular.latex
meta.row.environment.tabular.latex
meta.cell.environment.tabular.latex
attr.rev-path.tex.example.Documents.dgrady.Users
attr.os-version.10.6.8
Here is a short example that shows what I'm trying to accomplish:
\documentclass{article}
\begin{document}
This line should soft-wrap: Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor.
\begin{table}
\begin{tabular}{c}
Lines inside the tabular environment should not soft wrap: Lorem ipsum
dolor sit amet, consectetur.
\end{tabular}
\caption{The caption should soft wrap: Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do eiusmod.}
\end{table}
\end{document}
Hello,
I use the LaTeX grammar and I have defined my own shortverb command: | so
that I can write |foo| and have everything enclosed in | and | treated the
same as \verb|foo|. So I'd like to mark the contents between | and | as
verbatim, but not in the tabular definition such as
\begin{tabular}{|c|c|c|c}
My attempt
{ begin = '\|';
beginCaptures = { 0 = { name = 'punctuation.definition.verb.latex'; }; };
end = '\|';
endCaptures = { 0 = { name = 'punctuation.definition.verb.latex'; }; };
name = 'markup.raw.verb.latex';
},
works for requirement #1, but not for #2 (the tabular case). What should I
do that |c| in \tabular{...} is not defined as verbatim?
Thanks
Dirk
I want to access a set of 5 files which are not all in one folder. I can get
all 5 into the file browser and work with them. Good so far. Now I want to
save the set so that next month, when I need another change, I can open the
same set of files without visiting each location individually. What's a good
way to open the set of files with one action? I don't have control over
where the original files are stored. They are part of Apache2.
I thought of making a folder with a link to each file, which is ok for 5
files, but not for a larger group.
I think that .tm_properties might be an approach, perhaps by setting up a
folder with a list of includes, but that seems kind of clumsy. I suspect
this isn't hard, but I'm still finding my way around TM2. Any hints,
guidelines, whatever?
--Lewy
--
View this message in context: http://old.nabble.com/TM2-saving-pointers-to-set-of-files-tp33185861p331858…
Sent from the textmate users mailing list archive at Nabble.com.
TextMate 2 seems very promising feature wise, but one of my biggest complaints with version 1 was the slow performance of extremely large projects (20k+ files), particularly when using the "Go to file" command. I was very disappointed then to see that the v2 alpha is even slower in this regard, unusably so. When I try to type a file name, one letter appears at a time with up to ten seconds in between, and this is on a quad core i7 with an SSD. Even using the `find` command from the terminal is faster, and it walks the entire directory tree every time.
I understand that this is an alpha, and that performance was one of the things that was left for later tuning. But I'm afraid that more than tuning is needed in this case, although I could be wrong. I would simply ask that the performance of large projects be made more of a priority than it currently is.
Thanks,
Connor McKay
Hi,
Does anyone know what might prevent the results of a an executed command to show up in the R Console? Every time I type a command the line ends up cleared and no output is displayed. It seems that the command is getting executed as I can can see the result if I open up r_out. It even shows up in the history.
Here is a simple example of what I get on newly installed Rdaemon after launching from TM_Rdaemon.app and executing:
> ls()
After hitting return the console gets cleared to:
>
In r_out I get:
WARNING: unknown option '--TMRdaemon'
ARGUMENT '2' __ignored__
> source("/Users/linaskk/Library/Application Support/Rdaemon/daemon/start.r")
> sink('/Users/linaskk/Library/Application Support/Rdaemon/r_tmp');cat(geterr
<ary/Application Support/Rdaemon/r_tmp');cat(geterrm essage());sink(file=NULL)
> sink('/Users/linaskk/Library/Application Support/Rdaemon/r_tmp');args(ls)
> sink(file=NULL)
> sink('/Users/linaskk/Library/Application Support/Rdaemon/r_tmp');cat(gsub('
<ary/Application Support/Rdaemon/r_tmp');cat(gsub('. *?/library/(.*?)/.*','\\1
<aemon/r_tmp');cat(gsub('.*?/library/(.*?)/.*','\\1' ,as.vector(help('ls',try.
<?/library/(.*?)/.*','\\1',as.vector(help('ls',try.a ll.packages=F)),perl=T),s
<as.vector(help('ls',try.all.packages=F)),perl=T),se p='\n')
> sink(file=NULL)
> ls()
[1] "jpeg" "pdf" "png"
>
I've used Rdaemon before on other systems running the same OS X 10.6.8 without a problem, so I am not sure why it doesn't work on this particular system. The same thing happens in both TM1 and TM2.
-Liisi
Hi,
I just noticed that the Avian fork of the Subversion bundle has the key equivalents (Control-Shift-A) removed from the commands. Not a big problem, I added them back. But I wondered, is there any reason for this?
enas
Hi,
here's a minimal Perl example :
$word_plus = "$word\t$last_word $word";
if($word =~ m/^maka/i) {
if(exists($maka_{$word_plus})) {
$maka_{$word_plus}++;
} else {
$maka_{$word_plus} = 1;
}
}
- fold if clause
- place the caret left of "if($word ..."
- press ↩ to insert a new line
and I got this:
The text buffer is correct only the display is wrong since I can unfold it and I get the correct if clause back. I also changed to Obj-C and other languages and it also occurred thus it's not language depended.
Cheers,
--Hans
Hi all-
Finally published my two bundles for Forth and J:
<https://github.com/vze26m98/>
The Forth bundle is updated from the original deposit I did to the TM
SVN repository, so what's on Github is "new and improved."
The J Language bundle is (relatively) new.
Enjoy!
Charles
To reproduce this bug:
1) Open TextMate 2 Alpha
2) View -> Show File Browser
3) Try to change default directory from user home directory to smith else
4) TextMate 2 Alpha goes crazy and tries to iterate and open in a file browser every directory under home user directory.
The screenshot:
http://dl.dropbox.com/u/2658449/Screen%20Shot%202012-01-21%20at%207.21.14%2…
best regards,
Olexandr Shalakhin
There is a problem with TM2 not filling completely bg color specified by the theme, i.e. for embedded code is marked with different bg color. It was working fine in TM1, but in TM2 left side of the embedded block has still regular white background, moreover soft wrap indent has white background too.
--
Adam
> Have you tried looking at github.com/avian? I think that this is the home
> of the official TM2 forks of bundles.
Just what I wanted, thanks!
--
Brandon Fryslie
It would be nice if one could arrange the order of entries in the
"Favorites" list when displaying them in the File Browser.
Is there a way to do this that I have not yet stumbled upon?
cheers,
Curt
I'm currently having an issue with TextMate2 and just wanted to report it.
Whenever I try to install managed bundles, they seem to install fine, but
the animate and graphics end up "staying there" as if the animate got cut
off part way and ever finished, so it wasn't removed from the canvas. This
does not crash the application.
When I then try to open a file of that type, it asks which bundle I want to
use. When I select the one recommended (which I already "installed"), it
goes to download the bundle and then crashes after it finishes downloading
(it seems).
I'm not sure what else you need, and I remember having to report a similar
issue to Sparrow at one point due to a network share issue.
Console Inspector:
Sender: [0x0-0x1c01c0].com.macromates.TextMate.preview
Session: Aqua
Message: error with swap_and_unlink:
/var/folders/t0/t3z9mx6s4sn55lq5gm4_xy88000107/T/TextMate_dl_bytes.YJN1fP →
/Network/Servers/macserver1.fh.private/Volumes/fh-clients/Users/alexa/Library/Caches/com.macromates.TextMate/Bundles/ColdFusion
(2011-11-24).tbz
*Alexander Ambrose
@al3xnull / @h3xdump
http://www.linkedin.com/in/alexanderambrose
*
I'm a big fan of Ciarán Walsh's TextMate in Quicklook plugin that allows TextMate to generate my Quicklook previews with a qlgenerator plugin.
It doesn't seem to be installing correctly out-of-the-box with Avian, is there something I can do to get it working?
Thanks
--
Brandon Fryslie
www.matewiki.com
Hi,
in TM1 it was possible to use "txmt://open?line=xx" to go to line xx of the front most document.
Now TM2 gives an error message that "url is missing" which is correct in my case because I want to link from an HTML window back to an unsaved/untitled document.
Is there any workaround or is this on the TODO list?
Thanks,
--Hans
PS I like TM2 :)
Hi,
I'm coding lots of Obj-C++ stuff. I encountered two weird behaviours.
1)
To reproduce
- open a new window, set language to Obj-C++
- press ESC ⇢ nothing happens - fine
- press ⇥, and then ESC ⇢ "retain" will be inserted whereby I didn't type any character
furthermore
2)
- if I select something in a Obj-C++ doc and press ESC the selection will be replaced by retain
I have no idea if this is a feature or a bug but I would argue that this is a bit weird since it could happen that one presses ESC more or less accidentally. At least a selection should be untouched and ESC-completion should only be invoked if there's at least one character left from cursor as it is in TM1.
Thanks,
--Hans
The problem I previously had with the Site folders all expanding recursively is now happening to all my open TM2 windows when I quit and re-open the program. Each folder showing in the drawer (which I had open when I quit) expands even though most were closed when I quit the program.
This problem actually caused my Mac some grief when during a long expand all session of a new file, since I wasn't getting any work done, I put my Mac to sleep to see if that would stop it but when I tried to wake, it would wake for a second then go back to sleep on it's own. I had to reboot to restart everything.
Ed
Hi,
only a very tiny question.
Since one can ship a Theme with a bundle - very nice :) - the question came up whether it's planned to be able to specify which Theme will be used for a file according to the file's extension or scope or scopeAttribute?
This could be set e.g. in ~/.tm_properties
[ *.R ]
useTheme = "..."
Thanks and sorry, if this was already asked but I didn't find an hint.
--Hans
On Jan 17, 2012, at 3:59 AM, Adam Strzelecki wrote:
> Tested on r8998
8998? Is there some secret handshake needed to get that? TM2 here claims 8971 is the latest nightly build.
Gerd
Hi Allen!
Am 17.01.2012 um 10:59 schrieb textmate-request(a)lists.macromates.com:
> The brace expansion syntax MUST have a comma.
>
> {foo} ? literal ?{foo}?
> {foo,bar} ? ?foo? or ?bar?.
>
> So in your glob, simply remove the outer braces.
Thanks for the help. That was one part of the solution. The other one was to disable Show Hidden Items in the cogwheel menu (I somehow thought it refers to hidden files such as .tm_properties).
Max
When I go to Preferences > Bundles and attempt to install or uninstall a
bundle, Textmate 2 does not load the change. The bundle is not added (in the
case of an install) or removed (in the case of an uninstall) from the
Bundles menu.
I do however see that the bundle is added/removed from
"~/Library/Application Support/TextMate/Managed/Bundles".
Also, when I attempt to open a filetype without an associated bundle,
Textmate 2 will ask to install the bundle and then just hang.
What could be going on here?
--
View this message in context: http://old.nabble.com/TM2-Bundles-won%27t-Install-or-Uninstall-tp33156429p3…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I just encountered one very weird situation with TM 1.x.
Just setup new Lion installation and installed TM. Created project as
usual, but when I close with <cmd+q> Textmate (remember that project is
still active, it has opened files etc, so not closing project window first)
and re-launch after that, last project isn't opened. After that I choose in
recent files menu item, last project, and after that i get all files from
previous state successfully restored.
This cmd "defaults read com.macromates.textmate OakDisableSessionRestore"
gives me "0".
Any hints to solve this?
Thanks in advance.
I've started a TextMate Wiki to record some of the useful information from the mailing list and other sources regarding TextMate 2.
Check it out at: http://www.matewiki.com.
Since it's a real Wiki, any one can feel free to add information. My goals are to keep it a lean development resource and to prevent repeated information from other sources of TextMate documentation. Please give it a look and let me know what you think, if you are interested.
--
Brandon Fryslie
www.matewiki.com
Here is a temporary bugfix for the Show Scope (HTML) command:
Replace lines 86 and 87 with this:
abort "Could not locate your theme file!" unless theme_plist = find_theme('766026CB-703D-4610-B070-8DE07D967C5F')
That will just make it try to use the Twilight theme before failing completely.
I've noticed on Github, the bundles don't contain the Avian only stuff. Is there a place we can fork / submit a pull request for fixes for stuff like this?
--
Brandon Fryslie
www.matewiki.com
> Interesting idea for the logo competition - shame it seems to be only open
> to men, or women who consider themselves 'dudes' and are interested in
> 'chicks'.
Ahahahaha some late nights went into going through those mailing list archives...
> Why not just ask him for access at: wiki.macromates.com (http://wiki.macromates.com) ?
I want EVERYONE to have access to it, not just me which will lead to a broader and more updated resource. The macromates CSS theme is way too thin for my screen. I'm a control freak and want to be able to use it as a personal resource for TextMate bundle development. I'm going to put ads on it in an attempt to support my wild and not-yet-profitable personal projects. I'd rather figure ___ out myself then get access to someone else's ___.
Those are the first 5 I came up with.
--
Brandon Fryslie
www.matewiki.com
On Friday, January 20, 2012 at 7:56 AM, textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com (mailto:textmate@lists.macromates.com)
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com (mailto:textmate-request@lists.macromates.com)
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com (mailto:textmate-owner@lists.macromates.com)
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. Re: TM2: latex sync with Skim (David Howden)
> 2. Where to commit fixes for TM2 only bundles? & a bugfix
> (Brandon Fryslie)
> 3. Introducing MateWiki: A Wiki For TextMate 2 (Brandon Fryslie)
> 4. Re: Introducing MateWiki: A Wiki For TextMate 2 (Adam Merrifield)
> 5. Re: Introducing MateWiki: A Wiki For TextMate 2 (Nigel Green)
> 6. Re: Introducing MateWiki: A Wiki For TextMate 2 (Adam Merrifield)
> 7. Re: Introducing MateWiki: A Wiki For TextMate 2 (Adam Strzelecki)
> 8. Re: Introducing MateWiki: A Wiki For TextMate 2 (Adam Merrifield)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 20 Jan 2012 06:05:18 -0800 (PST)
> From: David Howden <dhowden(a)gmail.com (mailto:dhowden@gmail.com)>
> To: textmate(a)googlegroups.com (mailto:textmate@googlegroups.com)
> Cc: TextMate users <textmate(a)lists.macromates.com (mailto:textmate@lists.macromates.com)>
> Subject: [TxMt] Re: TM2: latex sync with Skim
> Message-ID:
> <32980776.1762.1327068318696.JavaMail.geo-discussion-forums@vby8>
> Content-Type: text/plain; charset="utf-8"
>
> I have a strange issue with Skim + TextMate 2. When using the Skim ->
> TextMate syncTeX (i.e. Cmd-Shift-Click to show place in the TeX file),
> occasionally TM2 opens a new window with the TeX file in rather than
> switching to the window where it is already open (i.e. where it was
> compiled from). This happens intermittently. It seems that if I launch
> Skim before I launch TM2 this goes away though?
>
> I have switched the settings in Skim to call a shell script which records
> the file path that Skim is requesting from TextMate. When running this
> command from a terminal, TM2 consistently opens the document in the correct
> window.
>
> Anyone have a similar problem?
>
> Thanks,
>
> David.
>
More odd stuff happening when all the folders are expanded. Now that TM2 is expanding all my folders in the drawer when it restarts or when I create a new file, it also slows down each edit I do to an open document. I get beach balled for about a minute with each edit I make (either a simple keypress or copy/paste). When all the folders are expanded in the drawer I have 400-500 files showing.
When I close all the opened first level folders (which is a time consuming task in itself) the editing gets back to being snappy again. Don't know why editing a document would cause the app to scan through all the visible files in the drawer (if that is in fact what it is doing).
Ed
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