One of the great things in TextMate 1 was that the Find/Replace dialog had a toggle to switch between the default view and an expanded view, where both text boxes were large scrollable "text areas", i.e. they allowed intuitive multiline editing of search-replace clauses. This is also how it's currently done in BBEdit.
The TextMate 2 Find/Replace dialog looks like the default view of TM1, i.e. consists of two "input areas", i.e. one-line controls. It took me a while to figure out that you can actually type Alt+Enter there, and then the controls expand vertically -- so it's better than the default TM1 mode.
But I still lack the truly "expanded" view where the text boxes were, say, 8 lines tall.
Also an important feature request would be the ability to "Show Invisibles" in the Find/Replace window. Actually, I think "Show invisibles" should be the default or even the only display mode in the Find/Replace text boxes.
Regards,
Adam Twardoch
TextMate user since 2007 (i.e. since moving from Windows to the Mac)
TM2 changed the concept of projects. Could someone point to the best
pages/posts for explaining them?
First of all, *are* there projects? I see the .tm_properties discussions
but not sure how to correctly use them, or how to build a project that has
multiple folders.
My projects are of two kinds: github and multi-folder. I think the first is
easy once I understand the format of the .tm_properties file (God I wish it
were JSON, but I digress) because there's one obvious top level folder, the
git repo, and I can include/exclude files/folders in .tm_properties, I
think.
But the second is harder I think. Think of my home directory with several
folders I'd like to include in multiple projects. Ex: my bin dir and my
notes dir to start with. I could built a .tm_properties file in the home
dir which include bin and dir (both of which might also have their own
.tm_properties?) But then I also want another project in my home dir that
includes two other folders, src and hax. How do I manage that? I can't
rely on the single home .tm_properties .. I seem to need two of them.
The solution for me with Sublime is to have a folder of projects, each of
which is a JSON tree which can aim its path at specific sets of folders
anywhere in my system with associated include/excludes.
Can I do this in TM2? Easily? Thanks!
-- Owen
--
View this message in context: http://textmate.1073791.n5.nabble.com/Projects-in-TM2-simple-include-exclud…
Sent from the textmate users mailing list archive at Nabble.com.
This is a possible bug report:
Textmate 2.0-alpha.9495 crashes (or rather, gets stuck) when executing a command which has both of these options defined:
Semantic Class: callback.document.will-save
Save: Current Document
As in screenshot: http://i.imgur.com/1ghCVC3.png
Nobody would *want* to set both of these, but I thought mention this in case, as it happened to me, you set them inadvertently.
--
Quinn Comendant
Strangecode, LLC
http://www.strangecode.com/
+1 530 624 4410 mobile
+1 530 636 2633 office
@qc and @strangecode
Let's says I have this code:
is.numeric(mean(mtcars$mpg))
Let's says I highlight the code and press CMD+E to use code as find. What regular expression can I use to strip the outer function? So the replacement code would be mean(mtcars$mpg)
Cheers
Ross
Since reformat & reformat+justify are built-ins I can’t really provide decent patch w/o asking prior how we could solve the issue.
Two examples:
(1) Git commit:
I type commit message, than I press ⌃Q on 2nd paragraph.
> ——————————— before ——————————
>
> Lorem ipsum dolor sit amet
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
> # Please enter the commit message for your changes. Lines starting
> # with '#' will be ignored, and an empty message aborts the commit.
> # On branch master
>
> ——————————— after ———————————
>
> Lorem ipsum dolor sit amet
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
> incididunt ut labore et dolore magna aliqua. # Please enter the commit message
> for your changes. Lines starting # with '#' will be ignored, and an empty
> message aborts the commit. # On branch master # # Initial commit #
This isn’t really what I would expect. Of course when I put empty line after 2nd paragraph it does work fine. Unfortunately I keep forgetting about that.
(2) Same applies to LaTeX, which is even more frustrating, since empty line in LaTex is actually meaningful.
> ——————————— before ——————————
>
> \documentclass{article}
> \begin{document}
> \title Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
> \end{document}
>
> ——————————— after ———————————
>
> \documentclass{article} \begin{document} \title Lorem ipsum dolor sit amet,
> consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
> dolore magna aliqua. \end{document}
>
> ——————————— expected ———————————
>
> \documentclass{article}
> \begin{document}
> \title Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
> tempor incididunt ut labore et dolore magna aliqua.
> \end{document}
Also this applies to following cases when new environment starts before some text block.
> ——————————— before ——————————
> long paragraph text
> % comment
> ——————————— after ———————————
> long paragraph text
> wrapped % comment
> ——————————— before ——————————
> long paragraph text
> \begin{equation} …
> ——————————— after ———————————
> long paragraph text
> wrapped \begin{equation} …
So basically reformat should take into account paragraph boundaries of given language (grammar). I’d say it would be just enough if paragraph boundary would be:
(1) line with commend
(2) ending or starting of fold scope
WDYT?
—
Adam
In these linesŠ
some text
some text
# TODO some text
some text
What regular expression can I use to find all lines except "# TODO some
text²?
I thought ((?!^# TODO.+).+) would work but didn¹t.
Thanks
Ross
I have been using rmate successfully -- installed with "gem install rmate"
on an Ubuntu system -- but rmate wasn't being recognised by the root user
(via sudo commands) so I did some fooling around in trying to install rmate
for root. Didn't go well so I gave up. The problem is now it doesn't work
for any user.
When I type "rmate filename" I get:
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in
> `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in
> `new'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in
> `connect_and_handle_cmds'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:186:in
> `block in <top (required)>'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:185:in
> `fork'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:185:in
> `<top (required)>'
>
> from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/rmate:23:in `load'
>
> from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/rmate:23:in `<main>'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
> `eval'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
> `<main>'
>
Not being a rubiest or even much Ubuntist I'm seeking help from the
community. Anyone have any ideas how I can get back to normal?
Ken
p.s. I did try uninstalling and reinstalling (with gem) but that didn't
change the behaviour.