I don't quite agree with the description that .md isn't a "real life file extension". I'm not (yet) a markdown user, but it's as real as anything else, perhaps more so as several programs support the extension not just one. There are lots of file formats that are encoded as text that don't force a .txt at the end, e.g., .changelog, .sh, .html and .xml. It's why MIME types have a type and subtype.
The issue here is that QS's text formatting actions work on text files and the only way it identifies them is by working on files with a .txt extension. I appreciate that if QS wants it's Text Manipulation Actions to work on all text files, it needs some way to identify the files and that OS X has recommended various different facilities for registering types over the last several OS releases (they deprecated type codes, added launch services, added UTI's, etc.). I'm not sure if OS X provides a way to find out if a file type is plain text encoded. There could be a property bit on the launch services registration for the file type. Maybe the extension is associated with a mime type and you can look at the type and see if it's "text". Maybe UTI's (which I never looked into) help somewhat. Long term it would be great if QS could use OS X to find out if a file is really text, I'm not sure that's possible, but that's ideal. Otherwise, there could be some user configuration to list extensions that the Text Manipulation Actions work on. At times I've used .todo files and .org files (used by an emacs package) to track todos that Append Text would be ideally suited for. I think even shorter term, given the popularity of markdown and it's use for to do list like functions for which Append Text is ideally suited, it's pretty reasonable for QS to recognize the common markdown extensions for these. Howard On Aug 11, 2012, at 5:22 AM, Patrick Robertson wrote: > I'm just looked into this, and you're right, it doesn't work for markdown > files. > You can fix the problem by going opening > ~/Library/Application > Support/Quicksilver/PlugIns/com.blacktree.Quicksilver.QSTextManipulationPlugIn.7D.qsplugin/Contents/Info.plist > > then going into QSActions > QSTextAppendReverseAction > directFileTypes and > adding "md", "mdown", "markdown" etc. > > I've looked into fixing this properly, and short of us adding a possibly > infinite list of items to the 'directFileTypes' array I mention above, there > isn't really a proper way. > .md, .mdown and .markdown aren't real file extensions, and supposedly the > correct thing to do is to name your file something.md.txt > > Since they're not real file extensions, there's no way for OS X to know they > are text files, and hence no way for Quicksilver to make the "Append Text..." > action available for them. > > On 11 August 2012 04:56, dbooster <[email protected]> wrote: > Ok, after more playing I seem to have gotten it to work, but only for .txt > files. It doesn't work for .md files, even though they are just txt with a > different extension. Maybe I've gone completely crazy, but I could swear I > used to append to .md files with no issues. > > > On Saturday, August 11, 2012 12:07:34 PM UTC+9, dbooster wrote: > I just updated to Mountain Lion (did a clean install of Lion only days prior > and then upgraded on top a few days later when it was released). First thing > I installed was Quicksilver, the latest version b69 3932. But suddenly append > to file isn't working for me. It doesn't complain or offer any errors, but > when I open the txt file to check on the result, nothing was pasted in. > > Is this a known bug? > > -- > You received this message because you are subscribed to the Google Groups > "Quicksilver" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/blacktree-quicksilver?hl=en. > > > > > -- > You received this message because you are subscribed to the Google Groups > "Quicksilver" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/blacktree-quicksilver?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/blacktree-quicksilver?hl=en.
