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