So I’m running the latest nightly of Textmate 2 and seeing some weird
behaviour from Find in Project…
I have a project(or what I’m assuming is a project, it has a .™_properties
in its root folder with projectDirectory = '$CWD’ in it)
and no matter what i do i can’t make Find in Project… find anything, i type
a search query that i know exists in the project and it returns nothing.
But if i load up for example the Textmate project Find in Project… seems to
work just fine and i can’t for the life of the figure out what the problem
is. Maybe I’m not understanding what Find in Project… does or maybe I’m
confused as to what or how a project is made in Textmate 2. Any ideas are
most welcome.
~//M
Defunct processes
Question:
In the C bundle I disable indentation by setting
{ decreaseIndentPattern = '(?=not)possible';
increaseIndentPattern = '(?=not)possible';
indentNextLinePattern = '(?=not)possible';
unIndentedLinePattern = '(?=not)possible';
}
Now I have this (pipe denotes cursor, \t is a tab):
{
\t|
}
As soon as I type any character, the tab disappears. Why?
Gerd
Is there any way to change the colour of the text and/or background in the tabs as the dark grey text on slightly less dark grey background makes it hard to read the text. Ironically when Textmate2 is in the background it is easier to read the tab titles than when Textmate is in the foreground and being used!
Thanks,
Dave.
Hey guys, I came across this question, how can I set up language and
grammar preference in TM2. It's a sort of boring thing every time I start
TM I need to set up it again to Latex and British english. So, setting up
in the preferences panel doesn't seem to work.
Daniel
Hi,
I'm just reviewing some of my bundles and came across with this issue:
I have several commands which display as HTML output window some characters and the user can insert a given character by clicking on it. The mechanism is done via the Javascript-system bridge to an AppleScript which should insert the character.
For TM2 it doesn't work. Thus my question is:
Is this
- not supported by AppleScript,
- not yet implemented in TM2,
- broken,
- or is there an other more elegant way to achieve the insertion of a string from the HTML window to TM2?
I'm using TM2 (9293) on 10.7.4
Hmm, it seems that this:
echo -en 'tell app "TextMate" to insert «data utf8e1b894» as Unicode text'| osascript --
is not possible under Lion.
Any hints/ideas?
Cheers,
--Hans
Hi everybody
I'm a long time TextMate user which I love more than any other editor.
Before writing that e-mail I've looked on the web, downloaded the full archives of this list and grep it with some keywords and nothing came out.
As a developer I often want to extract a part of a line of code into a variable, and put it's assignment in the previous line. Example :
something a_method(with, arguments), something_else
would become
my_variable = a_method(with, arguments)
something my_variable, something_else
I can't figure how to :
* extract the selected text and put it in a new line on top of the current, prefixed by a variable assignment
* have the variable name selected and ready to overwrite, mirrored where it has been extracted from
* preserve the indentation (on both lines)
* preserve what was before and after the extracted part
I've seen people do this in Vim and Emacs, but never in TextMate.
I've asked for help and James Edward Gray II gave me some advice on Twitter and here https://gist.github.com/3515210
It seems that the best way would be to replace the whole document.
I don't really see what I should use : a macro, a snippet, a command, or a combination of them.
I guess that I could do this with a macro + snippet, but I've not found (yet) the list of available commands (moveToEndOfParagraph, insertText, …) and their documentation.
I'd be happy to have a pre-cooked solution if it exists, but any advice would be helpful
Thanks
--
Jérémy Lecour
http://jeremy.wordpress.com - http://twitter.com/jlecour
This worked in TM1.x and my apologies if that has been brought up, but when
working w/ the project view (the left pane w/ a directory), it used to
highlight the currently edited file. This was very helpful for when you had
files of the same name in different directories.
Can this behavior be finagled into 2? Is this worthy of a bug report?
Thanks.
--
Wells Oliver
wellsoliver(a)gmail.com
Sometimes I use intellij idea, it's text editor has a default behavior
for CMD+C, if you don't select anythings, it will copy current line.
While CMD+X will cut the current line. Maybe it's not a bad idea.
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
with TextMate 1.5 there is a way to stop commands that have gone awry by pressing Command-. (period) after they have started, is there a way to do this with TextMate 2? I frequently encounter runaway commands that cause TextMate to hang with no way to abort the command other than force quitting the app.
Thanks
Chris
Would it be unreasonable to have the File Browser open (from previously hidden) to the location of the open file (if window contains only one file)?
Or is there an easy way to navigate to the location of the open file in file browser?
Jonas
Could we have a better bookmark system which contains
* named bookmark (like vim)
* bookmarks between files (like vim)
* bookmark browser with preview (like the find dialog)
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
is it possible to open a file for editing without double clicking on
it? When I click on the left side in the files drawer on a file, it is
not opened. Only double clicking will open it. Is there an option to
change this behaviour to the TM1 behaviour?
Thanks
Christian
Nice one, remove the Multimarkdown support from the Markdown bundle without warning!
So where is this "own" bundle? Is tehre something newer than Fletcher's old bundle (which I am not a particular fan of for variuous reasons)?
Gerd
Hi all,
I would like to hear whether anybody here knows a way to typeset a latex
file in textmate and then export it as MS Word .doc file.
Any help will are welcome.
Daniel
All,
I've been using the SCM and Subversion bundles with TextMate 1 successfully. With TM2, I cannot commit because I get this error (copied from Console):
Commit Window produced an error: 2012-08-27 13:33:41.972 CommitWindow[47555:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
2012-08-27 13:33:41.981 CommitWindow[47555:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
2012-08-27 13:33:41.983 CommitWindow[47555:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
2012-08-27 13:33:41.992 CommitWindow[47555:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
Unfortunately, it isn't clear which plist is the culprit. I've checked CommitWindow's Info.plist with plutil (OK), checked ~/Library/Preferences/com.cjack.tmbundles.commit-window.plist; even deleted it.
I assume I have the latest versions of SCM and Subversion (the preference window says last updated 8 months ago).
Any suggestions as how to fix it?
Best,
Jonas
Fletcher's bundle was a fork from the Markdown bundle. As such it clobbered the Markdown bundle itself, and the included Markdown syntax was at least partially broken.
I created a fork with the following changes:
- Renamed to MultiMarkdown
- Removed all commands/snippets/macros/support files duplicated from the Markdown bundle
- Removed broken Markdown syntax
- Cleaned up all UUIDs to not reference the markdown bundle
- Added dependency on the Markdown bundle (for the syntax)
After a cursory check everything seems to work as it should.
If everybody agrees that this is the way to go, could we add this bundle to the textmate namespace on github and make it "official"? The README would need a few changes: updated link, installation instructions for the pre-requesits (MMD3 itself, LaTEX etc if desired).
https://github.com/gknops/MultiMarkdown.tmbundle
Gerd
ruby bundle of textmate don't support "bundle exec" when hit cmd+R, Is there a simple way to support it?
Bundler is popular way to manage Ruby applications.
jancker
On 22.08.2012, at 21:00, textmate-request(a)lists.macromates.com wrote:
> On Aug 14, 2012, at 5:47 AM, Yuan Jiang <sleetdrop(a)gmail.com> wrote:
>
>> [?] I want Textmate to show current file's encoding in the status bar
>
> This one I don?t really like. Everybody should be using UTF-8 so for most users adding encoding to the status bar is IMO just adding noise.
It's not about (your?) personal preference, it's about what you're confronted with in real-world usage.
Not everyone (you work with) uses UTF8, sometimes people you work with save files in the wrong encoding and you have trouble down the line with your project because of that.
Hi,
I installed Todd Werth's IR_Black theme (http://blog.toddwerth.com/entries/2) in TM2 and get this error when I press Ctrl-Shift-P to show scope:
> Failure running "Show Scope (HTML)".
>
> Could not locate your theme file!
Has anyone else had success using this theme in TM2? Tried deleting the bundle, then recreating it again with the .tmTheme file, but same result. Didn't have any issues when I installed the Railscasts theme.
Adam
When recording a macro, pressing return makes it impossible to further move
the cursor. In fact any cursor movement such as pressing the left arrow
seems to cause the problem. I can press cmd-option-M to stop recording. I
can save my document, etc. But I cannot enter text into the document or
move the cursor.
TM2 version 9278 (This was also a problem in 9275).
OSX version 10.7.4
When I open a file on a local HFS+ drive in TextMate2, it will pick up changes to the file if I edit it with another tool, or alter it at the command line.
This does not happen through files opened via rmate, or through files opened on SMB shares mounted on the local machine. I assume that there simply is no file-changed event to listen for in this case, but it would be nice if I'm wrong.
As a workaround, is there a simple way to trigger a refresh of the TextMate buffer? Since I have control of both the save within TextMate and (in this case) CVS update cycle, I can ensure a consistent state that way.
"Edit In Textmate" compile broken, I'm not familiar with objectc, I have installed command line of Xcode
$ g++ -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
It seems system frameworks are not found, I am sorry to ask you help again -_-!, pointing out directions to google is enough.
edit-in-textmate $ make
mkdir '/tmp/Edit in TextMate'
cp 'rsrc/Info' '/tmp/Edit in TextMate/Info'
mkdir '/tmp/Edit in TextMate/Edit in TextMate.bundle'
mkdir '/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents'
cp 'rsrc/Info.plist' '/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents/Info.plist'
mkdir '/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS'
g++ -bundle -pipe -fPIC -Os -DNDEBUG -m32 -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -funsigned-char -fvisibility=hidden -DNS_BUILD_32_LIKE_64 -Wall -Wwrite-strings -Wformat=2 -Winit-self -Wmissing-include-dirs -Wno-parentheses -Wno-sign-compare -Wno-switch -o '/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate' src/.mm -framework Cocoa -framework Carbon -framework WebKit
src/Edit in TextMate.mm:8:26: error: WebKit/WebKit.h: No such file or directory
src/Edit in TextMate.mm:9:26: error: Carbon/Carbon.h: No such file or directory
src/Edit in TextMate.mm:10:14: error: map: No such file or directory
In file included from src/Edit in TextMate.mm:11:
src/Edit in TextMate.h:8:24: error: Cocoa/Cocoa.h: No such file or directory
In file included from src/Edit in TextMate.mm:11:
src/Edit in TextMate.h:14: error: cannot find interface declaration for ‘NSObject’, superclass of ‘EditInTextMate’
src/Edit in TextMate.h:17: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:17: error: expected )' before ‘NSString’
src/Edit in TextMate.h:17: error: expected;' before ‘*’ token
src/Edit in TextMate.h:18: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:18: error: expected )' before ‘NSString’
src/Edit in TextMate.h:18: error: expected;' before ‘*’ token
src/Edit in TextMate.mm:19: error: expected initializer before ‘*’ token
src/Edit in TextMate.mm:20: error: expected initializer before ‘*’ token
src/Edit in TextMate.mm:21: error: expected initializer before ‘*’ token
src/Edit in TextMate.mm: In function ‘void +EditInTextMate setODBEventHandlers’:
src/Edit in TextMate.mm:41: error: ‘NSAppleEventManager’ was not declared in this scope
src/Edit in TextMate.mm:41: error: ‘eventManager’ was not declared in this scope
src/Edit in TextMate.mm: In function ‘void +EditInTextMate removeODBEventHandlers’:
src/Edit in TextMate.mm:48: error: ‘NSAppleEventManager’ was not declared in this scope
src/Edit in TextMate.mm:48: error: ‘eventManager’ was not declared in this scope
src/Edit in TextMate.mm: At global scope:
src/Edit in TextMate.mm:53: error: expected type-specifier before ‘BOOL’
src/Edit in TextMate.mm:53: error: expected )' before ‘BOOL’
src/Edit in TextMate.mm: In function ‘<typeprefixerror>+[EditInTextMate BOOL](objc_object*, objc_selector*)’:
src/Edit in TextMate.mm:53: error: return type ‘<type error>’ is incomplete
src/Edit in TextMate.mm:53: confused by earlier errors, bailing out
In file included from src/NSTextView: Edit in TextMate.mm:8:
src/Edit in TextMate.h:8:24: error: Cocoa/Cocoa.h: No such file or directory
In file included from src/NSTextView: Edit in TextMate.mm:8:
src/Edit in TextMate.h:14: error: cannot find interface declaration for ‘NSObject’, superclass of ‘EditInTextMate’
src/Edit in TextMate.h:17: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:17: error: expected)' before ‘NSString’
src/Edit in TextMate.h:17: error: expected ;' before ‘*’ token
src/Edit in TextMate.h:18: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:18: error: expected)' before ‘NSString’
src/Edit in TextMate.h:18: error: expected ;' before ‘*’ token
src/NSTextView: Edit in TextMate.mm:10: error: cannot find interface declaration for ‘NSTextView’
src/WebView: Edit in TextMate.mm:8:26: error: WebKit/WebKit.h: No such file or directory
src/WebView: Edit in TextMate.mm:9:17: error: vector: No such file or directory
In file included from src/WebView: Edit in TextMate.mm:10:
src/Edit in TextMate.h:8:24: error: Cocoa/Cocoa.h: No such file or directory
In file included from src/WebView: Edit in TextMate.mm:10:
src/Edit in TextMate.h:14: error: cannot find interface declaration for ‘NSObject’, superclass of ‘EditInTextMate’
src/Edit in TextMate.h:17: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:17: error: expected)' before ‘NSString’
src/Edit in TextMate.h:17: error: expected ;' before ‘*’ token
src/Edit in TextMate.h:18: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:18: error: expected)' before ‘NSString’
src/Edit in TextMate.h:18: error: expected `;' before ‘*’ token
src/WebView: Edit in TextMate.mm:17: error: cannot find interface declaration for ‘DOMHTMLTextAreaElement’
make: ** [/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate] Error 1
My file filters in .tm_properties don't work any more.
I removed all other .tm_properties files and tried a .tm_properties
with just the two lines
excludeFiles = "*"
includeFiles = ""
and it has no effect. All files in the same folder are still displayed.
But it works for a different user with the same TM version on the same computer.
Other settings like "tabSize" are no problem at all.
I started TM 1.5 a few days ago by accident. Maybe this caused the problem.
TM 9286
OSX 10.7.4
- Philipp