There’s pretty annoying bug in TM2 regarding remembering default window frame.
(1) Launch TM2
(2) Open new document & maximize window via (+)
(3) Quit TM2
(4) Open it again
(5) Open new document, it should be zoomed/maximized
(6) Restore it via (+)
Poof… where did it go? It is here in lower left corner of the screen with 0 content height :~(
Can we have make TM2 remember regular window frame (not zoomed) and if window was zoomed?
Cheers,
--
Adam
On 27.11.2013, at 06:11 , Owen Densmore wrote:
> My home folder has many folders, many of which I'd like to have be in
> multi-folder projects. So ~/bin and ~/notes are a pair, while a second
> pair are ~/bank (receipts) and ~/config (a collection of configuration
> files used elsewhere)
>
> If I understand correctly, I'd have to have a .tm_properties file for each
> pair, not possible given the file hierarchy style of projects
You'd want to have a .tm_properties file in you user directory which sets the defaults. Then in many cases, you don't need to create a per-»project« .tm_properties file.
The .tm_properties files in nested directories apply in addition to defaults. For instance, you probably want to use different include/exclude rules in the directory where you're writing code for a numerical simulation than in the directory where you write the article in LaTeX with the associated findings.
Allen made a conscious design decision to abandon project files and base the idea of projects just on filesystem hierarchy. In some ways, that makes TextMate 2 more powerful than TextMate 1.x, but other things (especially working with scattered files) has become more complicated because a folder is a »single project«.
Personally, I haven't found a good way to recreate my TextMate 1.x workflow in TextMate 2 (symlinks don't mesh well with my LaTeX code and my git repositories). You probably have to adapt the way you organize your work.
I have created a sensible master .tm_properties file and since I essentially only work with TeX-related files, shell scripts and markdown files, I don't really need to change them. Instead of symlinking, I just copy files and keep them in sync by hand if need be.
Max
Thanks for the help!
> On Mon, Nov 25, 2013 at 2:52 AM, backspaces wrote:
> > First, each folder would need their own .tm_properties files. This
> means if
> > the same folder is in multiple projects, you have no exclude/include
> files
> > capabilities for the multiple projects. Each project would have to have
> the
> > same contents, according to their folders' .tm_properties file.
> The folder being included in multiple projects does not require its
> own .tm_properties file.
> Each project folder can have its own .tm_properties file with its
> own configuration, but note that, as Allan said, symbolic links to
> folders are currently not expanded.
>
Is "project folder" different from any other, other than the .tm_properties
and the fact that it is a folder rather than a file?
Not sure if this makes sense in your context but maybe you can try
> changing your workflow and treating your shared folder as a project on
> its own (having its own window open along other projects, etc). I
> have a couple projects that depend on other projects and I work this
> way in order to have Go To File and searching capabilities in the
> subprojects.
OK, sounds reasonable.
> > Second, lets presume my project starts in my home directory. Then I can
> > have only one project there, specified by the .tm_properties file, which
> > would have to include my multiple folders. Thus my home directory can be
> a
> > project folder for only a single project. (Yikes!)
> Just curious: why would you want your home folder to be a project
> folder? One usually wants the home folder to have one or more project
> folders inside. I have a folder for each project and all of them are
> in a Developer folder in my home folder.
My home folder has many folders, many of which I'd like to have be in
multi-folder projects. So ~/bin and ~/notes are a pair, while a second
pair are ~/bank (receipts) and ~/config (a collection of configuration
files used elsewhere)
If I understand correctly, I'd have to have a .tm_properties file for each
pair, not possible given the file hierarchy style of projects
> Third, a work around would be to simply have a separate folder per
> project,
> > containing symbolic links (ln -s) to the folders I want in my project.
> This is not a workaround, this is the expected way to handle projects.
A-ha! OK, so I can make a TM folder that contains a folder for each of my
TM projects, each of which in turn have symlinks to my actual folders?
That fixes everything.
> Sorry: one last question: I'd like my projects to be double-clickable to
> open
> > them. Can I do that?
Interesting, I'll look into that. Thanks!
> I know this can be done by using the Favorites feature. From Mate's
> drawer, you can navigate then right click a folder and add it to
> favorites, and all your favorites are available from the heart icon in
> the bottom right, or from File, Open Favorites... .
> Hope that helps,
> --
> :: dip
> --
Thanks for the help, I appreciate the time & effort.
-- Owen
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