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.