I need a bit of help.
I'm trying to use Textmate's blogging bundle to streaming posting to a wordpress blog. I've read Brett Terpstra's blog on the topic, and I'm trying to use his approach. But I'm encountering problems.
(1) Images won't display in the WP post. I must upload them by hand to the Media folder, and code the path to the image by hand.
(2) Code blocks don't render correctly. Instead of rending in a 'verbatim' style, they render in a way that ignores line breaks.
I'm not doing anything fancy with my markdown. But I have little experience with WP. (I can't, for example, find the wp-contents folder to see if I can change the write permissions.)
Of course, I've googled to see if this is a common problem, but I can't find any fixes.
I would be very thankful if anyone could point me to material, share their experience, or otherwise help point me in a direction that allows me to continue to use Textmate's blogging bundle to post info to my WP-site.
Thanks in advance for whatever people can share.
Jason
================================================================
Jason E. Miller, Ph.D.
http://about.me/jasonemiller
660-785-7430 (work)
660-965-0259 (mobile)
We learn to write by reading and then by writing and by thinking about what we are doing.
-- Richard Marius
I asked this in another thread, and was pointed to a partial answer,
but will give it another go more clearly.
Is there anywhere (webpage, wiki page, source code) that clearly lists
the available scopes that are treated as the assumptive default basis?
There is the old page at:
http://manual.macromates.com/en/scope_selectors but it appears to be
out of date, and it doesn't describe the new events (triggers?) such
as callback.*
In addition, I know that bundles can define their own such selectors,
which brings me to my next question/request:
Is it possible to have TM2 report the currently available scopes? We
have the ability to report the stack of scopes under the current
cursor/selection(Ctrl-Shit-Cmd-P), but I'd like to see all the
available scopes registered. (Perhaps limit it to the current
document type/active language bundle.)
Right now I have many bundle ideas, but no idea what is possible to
work with, what would need to be extended in TM2 itself, etc. Knowing
the lay of the land would go a long ways towards forming a mental
model of how to approach various tasks.
I'm hitting Command+/ to toggle code comments on and off, but it always
defaults to block comments (/* ... */). Is there a way to default Command+/
to line comments (// ...), or can I press another hotkey to do this?
Cheers,
Andrew Pennebaker
www.yellosoft.us
Hi,
I have a little feature request I would like to discuss about. I think I remember from a previous discussion that Allan prefers to have those kind of discussions on the mailing list rather than on github, so here I go.
One of the few things I appreciate when using such monstrosities as Eclipse is the support for local history. Of course, there is version control to achieve something similar, but sometimes, local history is just better (for example, the fact that it automatically records edit history, instead of relying on explicitly committing a change; and sometimes, it's just bad practice to commit tiny changes to a repository).
Of course, implementing such a thing for Textmate is a vast task. However, there is one use case that seems to cover most of my uses of local history in Eclipse and alike, which is the ability to easily revert to a clean state when I want to try something. I can imagine that this can be easily obtained in Textmate by having commands such as "set bookmark in undo history" and "undo to last bookmark in undo history". My workflow would be simply to set an undo history bookmark before I want to try a few risky changes, then easily revert those changes just by calling the undo to bookmark command. This would give me a simple way to avoid repetitive calls to undo, which can be tedious and risky (since it's not always obvious to see what you're undoing and there is the risk of undoing some steps too far).
Any thoughts?
enas
Hello, I would like to create a command that in part pastes the contents of the clipboard, using TextMate 2. How would one access the contents of the clipboard in a command? I am using Ruby, but I am open to whatever works.
Thanks in advance,
steven
Hi,
Is it me or did the "Go to Last Edit ⌥⌘J" command disappear in one of the last builds (only notice it now, but it was definitely there in the first alpha builds)?
If yes, any reason for that? Will it reappear?
Thanks!
enas
In TM2's "Go To File" dialog, there are three tabs across the top
containing the project directory, current dir, open files.
Is there a way to select these via a keyboard shortcut?
Thanks.
I'd like to bring the current behaviour of the file tabs to discussion, as the corresponding issue on github has been closed.
My problem is that switching between files with cmd-T or clicking on files in the file browser reorders the tabs, moving the current file's tab to the right of the old file's tab.
This behaviour is, so I'm told, to make sure that closing the open file will result in going back to the previous file.
How is it then that changing files by clicking on the tab does not change the order?
To me it seems this behaviour is quite odd, and it's not standard UI (or is there another app that moves tabs around like this?).
In my mind, tabs also serve the purpose of organising, and people may want to have tabs in a logical order (e.g. chapters in a LaTeX project). The fact that tabs can be manually dragged around suggests that this is something the user can set and which should not be changed by the program.
In order to keep the intended function of returning to the previous file when the current one is closed, why not simply keep a history list of tabs per window?
Jonas
Is there an easy way to open Bundle Support files and/or directories directly from the Bundle Editor window? I can browse the file tree but can't seem to easily access any of the files.
A workaround like Option+Click on a directory (in Support folders in Bundle Editor) to open a new TextMate window with that folder in the file browser would be perfect. Any such thing possible?
Thanks :)
--
Brandon Fryslie
I love the Markdown folding in TextMate 2.
Just one thing: at the moment, headings, sub-headings, sub-sub-headings, are
not nested in their folding.
It would be great if folding, say, a Level 1 heading (#) also folded all of
its sub-headings (##), sub-sub- headings (###), etc. under that heading. It
woudl be nice if the folding structure mirrored the (nested) structure of
headings of the document.
Would it be possible to implement this in TextMate 2’s Markdown, and is it at
all on the horizon?
hello,
i have an issue to get command help via ctrl + h in php scope. in textmate (version 1.5) I get an http view about the selected command. in version 2 I get the following message "Nothing to lookup(hint: place the caret over a function name)"
With the PHP_MANUAL_LOCATION variable I try'd to fix this with an local copy of the php.net help, but this don't work neither.
Have someone a fix or a hint for this?
greetings Björn
Hello guys.
I have a problem with TM2 + Avian Missing. I can't create new files using
'new file' option in my context menu.
I already tried uninstall and reinstall TM2, remove and clone again Avian
Missing, but no works.
The error is:
/Users/username/Library/Application Support/TextMate/Managed/Bundles/Bundle
Support.tmbundle/Support/shared/lib/tm/detach.rb:3: undefined method `+'
for nil:NilClass (NoMethodError)
from New File:5:in `require'
from New File:5
*
Brunno dos Santos*
Desenvolvedor Web
@squiter <http://twitter.com/squiter> | facebook.com/squiter
Fone: 11 - 7666-4358
Skype: brunno.dos.santos
abstraindo.com <http://www.abstraindo.com> | Mangá no
Mori<http://manganomori.com.br>| Quadrinhos
a Parmegiana <http://quadrinhosaparmegiana.com>
I usually have TextMate 2 output LaTeX to Skim, but today, suddenly, LaTeX output appears in a split pane in the editor window. I've looked in the bundle preferences, where Viewing is still set to Skim and both "Show PDF automatically" and "Keep log window open" are checked.
This occurred in TM2 9307.
Downloading a nightly build has solved the problem, but I thought someone would like to know.
I'd like to bring SVN and file pane behaviour up again.
I've been using both extensively, and run into this situation frequently: Working in file A, press cmd-Y, 5 to commit, realise after hitting commit that in fact file B was selected in file viewer and the wrong file with the wrong commit message was committed.
As for the heuristics which file to apply cmd-Y to:
1) If the file browser has focus, take its selection, if the editor has focus, take that.
2) In the commit window, show all uncommitted changes in (the parent folder of the file browser or root of working copy, whichever is lower) and below, but only select the items from 1)
Would that cause any side-effects?
If we cannot agree on how this should behave, can the precedence behaviour of file viewer be somehow customized?
Best,
Jonas
I use Quickcursor (http://www.hogbaysoftware.com/products/quickcursor) and I was able to use it with TM2 until a short time ago (sometimes last week) by adding com.macromates.TextMate.preview to the Custom Bundle ID. However with version 9313 of TextMate the interaction is broken. Now, Quickcursor still launches TextMate, but as far as I can see TextMate starts with a new (untitled and empty) document and it does not communicate back with Quickcursor, when you close the document, it asks to save it as a new file.
All the best
Guido
I have TM_RUBY specified to point to rvm's textmate_ruby. When opening TextMate using 'mate .' it subsequently uses the system ruby, but not the system gemset, and bundle commands start to fail because of incompatabilities.
When opening TextMate directly, or it is already open when I use mate, all is well.
Where the actual problem lies is difficult to tell, and I don't need a solution now I've worked out how to avoid it, but did figure that it'd be helpful to mention.
Cheers,
Simon
Just downloaded and installed TextMate 2 alpha today, v9313.
I have a question, It doesn't seem that if I have the File Browser tab open (I've defaulted to left side), that I can right click in that window to create a new file. I've created a new file, but I then have to navigate down to the directory hierarchy that's displayed in the File Browser tab to save the file. As soon as I do, the File Browser tab displays the file, etc. At this point, right clicking on the File Browser tab seems to bring up a "standard" OSX Finder menu, and all I see there is a "New Folder", but not a "New File".
I've seen some videos of the previous version of TextMate, and it allowed creating new files, adding files, etc. by right clicking in the File Browser tab. Is this functionality removed? Or did I miss something in the config, or ????
On 21.09.2012, at 17:02, Brandon Fryslie <brandon(a)fryslie.com> wrote:
> Dude, we used TM1.
My post was in reply to Randall Hand who has just discovered TextMate and started this discussion on the mailing list. He probably doesn't know the history of TextMate 2. I'm sorry if that wasn't clear.
> Some things are different in TM2, on the vast whole, everything is improved, restructured, cleaned up, and much more powerful.
I haven't really noticed any game changers *for me* in TextMate 2, but that's not supposed to be a complaint.
> Sorry some of the features don't comply with your vague, nebulous specifications.
I don't think there is anything »nebulous« or »vague« about missing TM1-style projects or wanting to have a functional bundle editor. While the latter is a matter of time, the former is a design decision made prior to open sourcing TextMate 2.
> Textmate 2 is open source now, I can't really see how you can complain like you are whatsoever.
There is no reason for ad hominem attacks and acerbic attitude. Where else other than this mailing list should we exchange opinions on how to make TextMate 2 better? After all, the reason we are here is because we like TextMate and we care that eventually we will have 2.0 final on our SSDs (hopefully before I get tenure, though ;-)).
Max
On 21.09.2012, at 06:44, Travis Dunn <tdunn13(a)gmail.com> wrote:
> I don't think there's anything personal intended here by anyone, but I also think calling someone's work a "huge disappointment" is rather harsh, and will be taken personal if intended that way or not. Also, generally i just disagree with the approach of "I dont want to switch to another editor but if X isn't implemented/fixed, i'll have to", if you need to switch to something that works better for you, go for it. A single editor is never going to be everything to everyone.
I think the disappointment is hard to understand for people who haven't used TM1's projects. You could manage files with TM1 in two ways: either you could either create a project or you could open them as a directory (e. g. by typing »mate .« in the Terminal), and to some people, that was *the* feature that got them sold on TM1. So you can expect that a removal of one of the most important features is going to create an equally large reaction. I was using both modes, most of my stuff was organized in projects, some other things were done in the file browser, and it was *the* feature that got me hooked on TextMate.
The problem with TextMate 1 (for me, at least) is that it has become »creaky« because it hasn't been updated for a very long time in a substantial way (can't quite pin point the time, but feels like 10.4~10.5 time frame, please correct me if I'm wrong). On 10.4, Textmate was the posterboy of a rock solid app, but in 10.6 or so, you could tell that not all of its gears meshed well with OS X new shiny internals (I remember problems with the built-in dictionary, for instance).
What is interesting, though, is that even after all of these years, nobody has really made a better TextMate 1. I've tried the usual suspects, Chocolat, Sublime Text 2, BBEdit, you name them, but they're usually not any better than what we have with TextMate 2 (Chocolat is still 1.0ish and does not have good support for LaTeX, for instance, and Sublime Text 2 does not really feel like a Mac app). TextMate's LaTeX bundle is still the gold standard for me, and it has some features I crucially rely upon (e. g. auto completion of labels and citations), so I won't switch unless another text editor has the same features.
The lead developer and owner of macromates, Allen Oodgard, has made it clear that it was a conscious decision of him to abandon projects in favor of a file-based management (+ .tm_properties). I don't know whether the periodic waves of discussions on the topic will or won't change his mind, but even if they do, there are probably other things on his list of priorities (e. g. a bundle editor in TextMate 2).
However, Project+ was an add-on developed by a third-party, so if TextMate 2 allows for similarly deep »customization«, perhaps this void will be filled by a third party. And now that TextMate 2 is open source, perhaps it can be contributed to the main source? One can dream ;-)
Max
Hello,
I'm having trouble syncing LaTeX in the direction TextMate --> Skim. Specifically, I'm (still) using this script: http://ebundles.googlecode.com/svn/trunk/Bundles/Latex.tmbundle/Commands/Fi…
and the following lines don't work for me:
if [[ "$V" == Skim ]]; then
SCRIPT="$(find_app Skim.app)/Contents/Resources/displayline"
if [[ -x "$SCRIPT" ]]; then
"$SCRIPT" &>/dev/console "$TM_LINE_NUMBER" "$PDF" "$TM_FILEPATH"
else
echo "Unable to locate $V."
fi
fi
I found a workaround which is to comment out and replace as follows
if [[ "$V" == Skim ]]; then
SCRIPT="$(find_app Skim.app)/Contents/Resources/displayline"
# if [[ -x "$SCRIPT" ]]; then
/Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline &>/dev/console "$TM_LINE_NUMBER" "$PDF" "$TM_FILEPATH"
# else
# echo "Unable to locate $V."
# fi
fi
That said, I don't understand why I can't get it working in its original form, because find_app appears to work and displayline appears executable:
FZs-MacBook:bin fz$ pwd
/Volumes/Home/Applications/TextMate.app/Contents/SharedSupport/Support/bin
FZs-MacBook:bin fz$ ./find_app Skim.app
/Volumes/Home/Applications/Skim.appFZs-MacBook:bin fz$ ls -l /Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline
-rwxr-xr-x@ 1 fz staff 1735 Mar 12 2012 /Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline
FZs-MacBook:bin fz$
Can anyone suggest a better fix than my workaround?
Thanks in advance,
Francois
In the latest alpha, my dead keys (set up with Ukelele:
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele)
produce a snippet completion dialogue and have therefore been rendered
unusable.
This is problematic because it means not only can the dead keys not be
used for their alternate purpose, but they can't even be used to insert
the unaltered character.
Best,
Garrett
Hi,
I am updating my website from XHTML to HTML5 along with changing some other
code elements - so there is probably 20-25 different types of code changes
needed in total. Is there a way of building 'all' the required changes into
TextMate and running it so that it changes the code it finds on a given web
page?
I have looked at the 'Find And Replace' tool and it would still be a very
manual process to go through the 200+ web pages individually. Is there a
faster way? Some kind of function?
Thanks
--
View this message in context: http://textmate.1073791.n5.nabble.com/Multiple-Find-And-Replace-Functions-t…
Sent from the textmate users mailing list archive at Nabble.com.
I've installed rmate on a remote server although I'm able to create a new
file on this server, when doing some modification on an existing file, they
aren't saved after the saving and closing on the TextMate side.
The server is running Xubuntu 12.04, ruby 1.9.3 has been installed using
rvm.
the remote file perms are :
-rwxrw-r-- 1 yt yt 455 sept. 6 16:59 menu.zsh
what i did :
$ ssh dell-par
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-30-generic x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Fri Sep 7 09:18:50 2012 from
2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:2559
Linux D620 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux
14:49:17 up 5:38, 2 users, load average: 0.11, 0.29, 0.56
yt@D620 /home/yt $ rmate bin/menu.zsh
yt@D620 /home/yt $ cat bin/menu.zsh
#!/usr/bin/zsh
MENU_DIR=${HOME}/bin/scripts
MENU_ITEMS=(`ls ${MENU_DIR}`)
while (( 1 > 0 )) {
i=0
while (( i++ < ${#MENU_ITEMS} )) {
echo "${i} -> ${MENU_ITEMS[i]:r}"
}
echo "${i}|q -> quit"
echo -n "Entrez un nombre de 1 à ${i} (ou q pour quitter). : "
read NUM
if [[ ${NUM} -eq ${i} || ${NUM} == "q" ]]; then
echo "bye!"
exit 0
else
echo "Vous avez choisi '${MENU_ITEMS[${NUM}]:r}'."
${MENU_DIR}/${MENU_ITEMS[${NUM}]}
fi
}
exit $?
yt@D620 /home/yt $
my local ~/.ssh/config file :
$ cat ~/.ssh/config
Host dell-par
User yt
Hostname 2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:a960
RemoteForward 52698 127.0.0.1:52698
Host dell-pal
User yt
Hostname 2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:a960
RemoteForward 52698 127.0.0.1:52698
Host gericom
User yt
Hostname 2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:a07b
RemoteForward 52698 127.0.0.1:52698
also i wonder if it is usefull to put "RemoteForward 52698 127.0.0.1:52698"
for each host.
best
--
Yvon
> -----Original Message-----
> From: textmate-bounces+s.j.holden=brighton.ac.uk(a)lists.macromates.com
> [mailto:textmate-
> bounces+s.j.holden=brighton.ac.uk(a)lists.macromates.com] On Behalf Of
> Allan Odgaard
> Sent: 18 September 2012 10:57
> To: TextMate users
> Subject: [TxMt] Re: Problem saving to NFS share from b9147
>
> On Sep 18, 2012, at 11:39 AM, Steve Holden <S.J.Holden(a)brighton.ac.uk>
> wrote:
>
> > [...] have found a critical bug for me in b9147 [...] set_attributes() failed:
> > Attribute not found.
>
> Afraid the bug is in NFS. If TextMate gets an error from any of the API
> involved during save, it will report that as an error (as it should) and treat the
> file as not saved.
> ...
> There is a 2.0 way to do the same [work-around]:
>
> defaults write com.macromates.TextMate.preview volumeSettings '{
> "/net/" = { extendedAttributes = 0; }; }'.
>
> This will disable them for all paths under /net/ - this setting should be
> moved to .tm_properties, but right now, the above should be a workaround.
Perfect! Thanks for the incredibly quick and helpful response, Alan - TM2 it is then :-)
Are you still considering whether to add a Donate button to the site?
Best wishes,
Steve
___________________________________________________________
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________
In the 9309 release of TM2 the placement of the html output window is broken. The placement on the right does not work anymore.
The command
defaults write com.macromates.TextMate.preview htmlOutputPlacement right
does not work. I'm only able to change to a separate windows, i.e.,
defaults write com.macromates.TextMate.preview htmlOutputPlacement window
All the best
Guido