docwhat's avatardocwhat's blog

It's All Text! v0.6+

[screenshot]

Get It’s All Text!

I wrote It’s All Text! for myself. When Firefox 2.0 was released it broke MozEx so I went looking for a replacement. The others weren’t very good. So I set about fixing MozEx. It was then that I realized that MozEx had way more stuff in it than I needed and some parts were just a pain to maintain.

The author of MozEx got it working with FireFox 2.0 eventually. But I had this itch because I saw things I can improve.

Now it’s three months later and I’ve released version 0.6.1 now that Addons is back. This will be my release candidate for 1.0 because I have fixed the four most annoying problems:

  • The edit button is in the right place. If it isn’t perfect, it’s really close. Even for GMail and Wikipedia.
  • Right clicking on the edit button lets you pick a file extension.
  • When the user first starts or the editor isn’t in the right place, it explains to the user what happened and what to do about it.
  • The rules for when and what to refresh finally seem right. At least for me… ;-)

The last big bug I want to do something for, even if I can’t fix it, is the “Mac OS X select an editor that actually is a .app directory” problem. It’s hard for me to work on because I have to borrow my wifes Mac to work on it.

The versions up to now, as flawed as they have been, have actually gotten some really good feedback both in ~comments~ on this site and on addons and even from blogs in Switzerland and Japan! Note: I have been told that the addons comments are still in the process of being moved from the old site to the new one.

Jason Barnabe, the author of the excellent Stylish extension for Firefox has helped design an API for It’s All Text! so that you can use an external editor in Stylish or in any other extension that decides it wants to support It’s All Text!

Finally, if you design a website, you can add the attribute itsalltext-extension to any textarea and it’ll be the default extension used for that textarea (don’t forget the leading dot, .). You can see it below in the “Leave a comment” box.

I want to thank everyone who has given me all this great feedback. Even people telling me it doesn’t work is helpful. Every comment spurred me on to make it better so I really owe it’s current level of usability to all of you. Please, give yourselves a hand.

I can’t wait to see what feedback I get next. Yay!

Ciao!

Previously: It’s All Text!

EDIT (2007/04/04): I’m so stupid. Thankfully, Robert Daeley explained exactly what I didn’t understand about Mac OS X. I need to use /usr/bin/open on Mac OS X. Now that I understand what open is and why it should be used, I will finally have that part of Mac OS X fixed in short order. Now I just need to figure out make the close button not be display: none in preferences. Grrrr.

Mentions (till Addons gets trackbacks):

Comments

Gravatar for dusan chromy
Dusan Chromy

Hi,

I’m using your plugin for all my Wiki submissions and it’s really cool.

I wish it would be possible to have an option in your plugin preferences to make the browser textarea not editable, since the editable textarea invites the user to change the text there even when he or she is already editing it in an external editor. So things can get messy if one accidentally modifies the text both in the browser and in the external editor.

I think an option to make the browser textareas read-only would remedy the problem.

Anyway, thanks for contributing such nice plugin.

Dusan

Gravatar for docwhat
docwhat

Hi Dusan!

Thanks for the feedback!

That sounds like a good idea; I’ve added it to my todo list. :-D

Right now, I’m working on 1.0 so I’m only working on the last set of bugs (Mac OS X: preferences not having close buttons & Mac OS X: finding the right executable). So this will probably be a post 1.0 feature unless I get bored or something. ^_^

It’s too bad that I cannot detect when the editor quits in Firefox. If I could, then I could make the textarea editable again once the editor quit.

Thanks again for idea and the feedback. :-)

Ciao!

Gravatar for era
era

In the discussion after the original announcement of It’s All Text, Peter was asking how to set up a hook for Emacs to (say) automatically edit the buffer in text mode.

Given that IAT uses a well-defined directory for all temporary files, it’s not hard to set up a trigger for any file in that particular directory:

[code] (or (assoc ”/itsalltext//\\’” auto-mode-alist) ; Don’t add hook twice (setq auto-mode-alist (cons ‘(”/itsalltext//\\’” . text-mode) auto-mode-alist)) ) [/code]

Edit to taste; hope this helps.

PS. Thanks for the Wikipedia fix!

Gravatar for joey
Joey

It would be nice if you could specify arguments to the editor, that would help people who would like to add special options to the opened editor or who would like to use a text editor that requires an xterm to be started, such as “xterm -e vi”. Otherwise, very cool add-on, thanks a lot.

Gravatar for docwhat
docwhat

era: Thanks!

I’m thinking of adding a readme/faq page into the extension to answer questions like this. I haven’t decided how to do that. There is an appeal to having the faq/readme on my site, but if the network is slow or down, it’d be nice to have it in the extension.

Hmmm…

Ciao!

Gravatar for docwhat
docwhat

Joey:

That’s a great idea. It’s on the wishlist for post 1.0. So give me a month or so. The big problem with that is there isn’t an execl() in Firefox, so I have to escape strings myself somehow. :-/

Ciao!

Gravatar for era
era

Somehow the double backslashes in the elisp snippet were halved, I imagine by the stupid blog software. But anyhow, any chance you could fix that, too? The backslash before the apostrophe in the regexes (two identical places) should be double, like backslash backslash apostrophe double-quote. (Emacs does regular string processing on regular expression strings just like any other string, so to get an actual backslash character through to the regular expression engine, you have to double it. The regular expression ’ means “end of string” in Emacs.)

Thanks!

Gravatar for docwhat
docwhat

era:

I use emacs, but didn’t realize that \’ was the same as $. One of the areas that I don’t have much experience. Anyway, I fixed it. For me, this isn’t quite good enough because I have directories hanging around that have /itsalltext/ in it’s path that are not my editing directory. :-)

But I have plenty of rules that do the right thing based on file extension already: filetypes.el

Ciao!

Gravatar for era
era

Erm, they’re not the same, otherwise I’d have used the simpler $ … although it’s probably overkill to be correct when it’s all just a file name after all. But for the record, $ means “end of line” (i.e. any newline will match, or whatever is the line ending convention in the context) whereas ’ matches only on the end of the entire thing — say, a buffer with many lines in it, or a narrowed region, or whatever (and the doubled backslash is in practice needed when you put it in a snippet of elisp, but the actual regex is still just ’ so that’s what you’d use e.g. in an interactive search, like esc ctrl-s).

I figured this didn’t need to be quite as general as I’d have liked to make it, and it’s a hassle to put in a full path, but I appreciate that some people (such as probably only you) would have multiple directories with the same name. That’s easy to fix, and I suppose you might as well fix it for everyone: make the regular expression match the full path (i.e. something like ”\\`/home///\\.mozilla/firefox///itsalltext//*\\.txt\\’” … and I hope I got all the sufficient amounts of backslashes this time).

trac.gerf.org doesn’t resolve for me at the moment, is the link to filetypes.el correct?

Gravatar for era
era

Now it didn’t strip my backslashes!! They should be only double in the above, not quadruple. Could this be a bug in the extension actually? Because the previous comment was submitted via IAT but now I didn’t use it, coincidentally because I got an error message:

It's All Text! was unable to open your editor

> Unable to open your editor

I was unable to run your editor. You can now either cancel your editor or you can use the preferences to choose a new editor. Please make sure that you use the full path to the editor and that the editor is executable. Thank you.

| Reason: | | [Exception… “Component returned failure code: 0x80520003 | (NSERRORFILEEXECUTIONFAILED) [nsIProcess.run]” | nsresult: “0x80520003 | (NSERRORFILEEXECUTIONFAILED)” location: “JS frame :: | chrome://itsalltext/content/cacheobj.js :: anonymous :: line | 253” data: no]

Cancel

It would be great if the text in the error dialog could be copy/pasted instead of retyped, BTW. (Also, isn’t there a HIG recommendation somewhere that programs should not be antropomorphized to speak to the user in the first person? So perhaps change “I was unable” to “It’s All Text! was unable”, or some such. Also “cancel your editor” seems slightly off the mark; how about just “cancel this operation” … although that sounds too much like jargon?)

I checked the “debugging” option but it doesn’t appear to have added any more reporting. It did actually create a file for me to edit, oddly with an .xhtml extesion instead of .txt (so perhaps that needs to be changed in the regex I posted above, too).

(Actually, the explanation “Remove all bugs” is perhaps a little too humorous, and probably confuses the heck out of newbies.)

Gravatar for era
era

… Ah, so it’s in the error console — of course. But it’s way too verbose, because I have a large number of tabs open and I get “refreshing [URL]” for each of them, I guess once per second each?

Now when I click on “Preferences” I get the error dialog a second time /-:

I suppose my configuration is hosed. Any chance you could add a pointer where to look and what a sane configuration should look like?

Gravatar for docwhat
docwhat

era: Re: too many \ characters — It’s not a bug in It’s All Text! It’s just the way wordpress deals with ’’. If it’s in quotes, it won’t do the escaping. I don’t fully understand the rules myself, but there they are.

Re: .xhtml vs .txt — The comment box here sets the extension to .xhtml instead of .txt

Re: Not being able to change the editor — It looks like you found a bug in IAT. You can fix this temporarily by changing your ‘extensions.itsalltext.editor’ in your prefs.js.

Re: The error message. — I think that the error message isn’t actually useful. :-/ Firefox is unable to actually report the real reason, as near as I can tell.

Ciao!

Gravatar for bill von hagen
Bill von Hagen

Very cool! However, if emacs happens to save a backup file while using IAT, the next time I use IAT on the same textarea, emacs opens the backup file in RO mode. As you pointed out, the workaround is to specify .txt or .xml when opening via right-click.

Thanks for a cool extension!

Bill

Gravatar for docwhat
docwhat

Bill von Hagen:

Thanks for checking out It’s All Text!

Yup. That’d be a bug. I’ve been thinking how I’ll have to fix that and the only thing I can think of at the moment is that I’ll need to weed out any files that end with ’~’, ‘.bak’, ‘.tmp’ :-/

Seems hackish. I guess I could make it an option. But I can’t think of the use case for the option so I guess I’ll postpone adding it till someone can explain why.

Ciao!

Gravatar for cmdrwoody
cmdrwoody

Joey: an easy workaround is to create an executable file, and call it something like xvim:

!/bin/sh

xterm -e vim $1 exit 0

just point It’s All Text! to xvim and voila!

Gravatar for robwahoo
robwahoo

First… I love this extension. However, something between 0.6.1 and 0.6.3 has broken it in Mac OSX. I have my itsalltext editor set to “/Applications/Emacs.app/Contents/MacOS/bin/emacsclient”. This works fine for 0.6.1; however in 0.6.3 it states that it cannot run the specified editor.

Gravatar for raggedrobin
raggedrobin

Hi DocWhat, Nice extension, but…

I had been using version o.6.1 in OSX with a .app editor, just by pointing IAT! towards the appropriate binary inside the .app package (“/Applications/WriteRoom.app/Contents/MacOS/WriteRoom”)

Unfortunately this doesn’t work with 0.6.3, (and neither,of course, does referencing the .app) - is there another work-around?

Gravatar for docwhat
docwhat

raggedrobin & robwahoo:

Whups! Look like I broke something.

I’ll take a look at it and see about fixing it.

Ciao!

Gravatar for docwhat
docwhat

I just found this URL that is helpful for Mac OS X people using It’s All Text!

link: Dafizilla FAQ

Gravatar for docwhat
docwhat

FOR ALL MAC USERS:

It turns out that isExecutable() always returns false on Macs. I have fixed this in version 0.6.4 or newer.

Status (updated on 2007-04-06): Waiting approval. Till it is approved, you can download 0.6.4 from my site.

Ciao!

EDITED 2007-10-01: Removed link, since the file is no-longer there.

Gravatar for yan
Yan

Love the extension.. but still not able to edit gmail’s main composition area with itsalltext - neither the button nor entry in the right click menu appears. Using 0.6.3 plugin with FF 2. itsalltext button works only in the “address” text area, but not in the subject or main editing area.

Gravatar for yan
Yan

Update: tried with 0.6.4, but no change in behavior in gmail. (Btw, my OS is x86 Linux.)

Gravatar for docwhat
docwhat

Yan:

Hmm… I use gmail and haven’t had any trouble. It does take a moment to appear (because the textarea appears and it takes up to 7 seconds or so to appear.

Can you do me a favor and try it this way…

  1. log out of gmail
  2. Go to Tools -> Addons -> It's All Text! and pick preferences.
  3. Set the refresh rate to 3 seconds and close the preferences.
  4. Shut down your browser.
  5. Open up the browser.
  6. Login to gmail.
  7. Press Compose Message.
  8. Move the mouse over the compose text area.
  9. The button may not appear right away. Wait 30 seconds, just to make sure. It should, at most, take 6 seconds to appear.

Thanks.

If it does show up, then I think I need to set the default refresh rate lower. :-/

Ciao!

Gravatar for yan
Yan

D’oh! Of course, it is my Gmail setup: I guess my ‘compose’ settings default to a rich text editor. As soon as I click on “plan text”, the IAT edit button appears. dons dunce cap

Gravatar for docwhat
docwhat

Ah-ha. I forget about that. I don’t use the rich text editor and haven’t touched that setting for a million years. Hmm…I honestly don’t know what I could do about that on my side. :-/

I’ll think about it some, since several people have mentioned it.

Ciao!

Gravatar for francisco
Francisco

I write 90% of my text in Spanish. When I use the windows notepad as the editor, the letter with an accent appear as a question mark…if I write directly in the text box, there is no problem… Thank you for your great extension.

Gravatar for docwhat
docwhat

Francisco:

Gracias por la observaciones. That should translate as “Thank you for the observations”. I don’t know spanish but I know Babelfish and WordReference. :-D

The problem you have is that Notepad is storing the file in something like Windows-1252 (which I think includes Spanish, but I’m not sure) but It’s All Text! expects UTF-8. You can try figuring out encoding Notepad is using and change It’s All Text! (in it’s preferences) to use that. Or you can get a UTF-8 editor, like Notepad++.

Ciao!

Gravatar for francisco
Francisco

Notepad++ works very well con el español… Thanks for your help.

Gravatar for philip king
Philip King

This is a very useful extension, and I can think of one small thing that would make it even more useful for me. Your button will open NaturallySpeaking, but if I dictate into DragonPad the contents are not then saved to the text box. It is a small matter since I can save the text and paste it, but it would be great if your program could do it. Phil King

Gravatar for docwhat
docwhat

Philip King:

Thanks for the feedback.

I’m not familiar with NaturallySpeaking or DragonPad. It seems that DragonPad is a notepad replacement. If you use that as your editor, when you save then “It’s All Text!” should automagically detect the change and refresh the text box for you. Make sure you edit the file as txt, not as formatted text or anything like that. Preferrably as UTF-8.

Ciao!

Gravatar for philip king
Philip King

FYI DragonPad is the text editor that is part of the NaturallySpeaking voice recognition program. My problem is that I have not found a way to open DragonPad other than by clicking on a menu in NaturallySpeaking. It is, however, a small problem. Thank you

Gravatar for yan
Yan

I seem to be running into a problem with the text input area of Blogger (blogspot.com)..the text area does not seem to respond at all when being edited externally. (This is with itsalltext 0.6.8..I have not tried it with earlier versions.) Any known workaround here?

Thanks!

Gravatar for fooman
Fooman

When I’m doing any web development work I always have the Firefox console open to display ALL messages. I often see a copious number of info messages that say:

itsalltext: refreshing {URL}

It appears to me that it shows one message for every tab per refresh period. If I haven’t actually clicked any edit buttons, then ITA! code shouldn’t be running at all, right? Anyway, not a big problem, and you’ve probably already fixed it. What I’m really trying to say is “nice extension” :).

Gravatar for docwhat
docwhat

Fooman:

I’ll double check that I haven’t left some debugging messages around… I don’t see any.

In theory, unless you check the debugging box, you shouldn’t see any messages. In practice, mistakes might be made.

Can you verify that you have debugging off?

Ciao!

Gravatar for docwhat
docwhat

Yan:

Thanks for pointing out another potential problem. I’ll take a look at blogger.com when I get a chance. I’m busy being sick today. ^_^

Ciao!

Gravatar for yan
Yan

Thanks, Christian. And way to go on the new FAQ : ) Hope you feel better.

Gravatar for fooman
Fooman

Oh “Remove All Bugs” was checked. I was wondering what that check box did. I thought it removed all the bugs from your extension ;). I unchecked it and indeed the messages disappeared.

Gravatar for haru
haru

For IAT ver0.6.8 on MacOSX, setting “Editor” parameter to “/usr/bin/open”, which may be the default setting for IAT ver0.6.8, enebles you to open the default editor for .txt files.(It may be TextEdit.app if you haven’t change the quota). You can launch any editor you want by changing the default editor for .txt files. It could be a workaround.

Gravatar for era
era

I upgraded to 0.6.8 and on several systems where I did this I got two tabs with the “welcome to IAT” chrome page. Not too serious, but a glitch nevertheless …

PS. Your Wordpress thinks email addresses with an equals sign in the localpart are not valid. Is this a configuration option or something in Wordpress itself?

Gravatar for docwhat
docwhat

era:

Yeah, I saw that just yesterday. I don’t know why it happens, but I’ll try to figure it out. It seemed to be harmless, just unprofessional looking.

re: = signs — That seems to be a wordpress feature. :-(

Ciao!

Gravatar for dick
Dick

I tried a bit of wikipedia editing. On Mac OS X, it defaulted to textedit. When I tried to put in “special” characters such as “ü”, I got a ”?” in the original text box. Seems like some work in needed on Mac OS X character set integration.

Dick

Gravatar for logicnazi
logicnazi

Open is just a fancy way to open the file in whatever way the finder on OS X would normally do. .app files are really directories which is what allows the mac to do drag and drop install instead of spewing files all over the place on windows. Thus if you want to actually run the directory as an app rather than merely entering it you need to use open.

Really this is more of a user knowledge issue than a problem with the way things work. You can always enter inside the app and select the actual binary and run that (for instance that’s what I do when I need to execute firefox —Profile-manager). Anyway thanks for the extesion if it still has issues on the Mac maybe I will take a look at the code and see what I can do.

Gravatar for r. mullen
R. Mullen

What a GREAT tool! I have been looking for something to do this for months, if not years. You found a really annoying itch and produced a perfect little backscratcher. Thanks and keep up the great work!

Gravatar for stephen
Stephen

Hi,

I’ve have a problem using its all text. I’m using latest IAT, firefox 2.0.0.3 on opensuse 10.2

When using the kate editor all is fab.

When I use gvim I get this: http://www.t3v.makessense.co.uk/images/duw9B6Blln.png

Then tried bluefish and again got this: http://www.t3v.makessense.co.uk/images/xc7bcKF1IE.png

Neither application displays correctly now when not being called by IAT. Gimp has also become infected even though it has never been used as an IAT editor.

So, as Kate is OK, as is ‘konsole -e vim’ (via bash script), I guess the common factor is that the others a re gnome applications.

Any ideas?

Where it works IAT is a great little extension - thanks.

Gravatar for docwhat
docwhat

Hi Stephen!

I’m about 99.9% sure this isn’t IAT!… What it looks like is your font is unable to display the correct characters. I don’t use SUSE, but I know that it works with multiple languages and character sets, so I’m unsure what could have caused this.

I hope you figure out what happened, though! I’d be curious to know what happened.

Ciao!

Gravatar for david
David

Love the idea but here’s the problem.

Anything but text/html as the content type of the document does not work. I was hoping to use this with the Firefox XForms extension, but doesn’t work because content-type for XForms enabled documents is application/xhtml+xml. In fact Even non-form tags do not work if the content-type (Right click>Page Info, or Tools>Page Info) is not text/html.

Just wondering if this was a known issue. Do you plan on having similar functionality for XUL documents, or xhtml documents (served as xhtml).

Thanks,

-David

Gravatar for stephen
Stephen

Hi docwhat.

It seems you are right. I’ve down graded by version of pango and things are back to normal. May be IAT just highlighted the error. Anyway, I’m happy!

thanks again for the extension

Stephen

Gravatar for jacques
Jacques

Great extension! Unfortunately it does not work together with the TinyMCE HTML editor. The entry in the context menu does not appear. The button is covered by the text area and cannot be clicked. I could fix the button position in the code. So I can actually start the editor. But the changed text does not get back into the textarea. There seems to be a conflict between TinyMCE and “It’s All Text”. Would be great if they would both work in the same document! Thank you.

Gravatar for docwhat
docwhat

Hi David: Thanks for pointing that out. It should work with any XHTML or HTML mimetype. I check the types so that I don’t accidentally mess up a page that uses something non-HTML or non-XHTML.

I’ll fix it shortly. Been busy with non IAT things, lately… :-)

Ciao!

Gravatar for docwhat
docwhat

Stephen: Glad things are working again. I’m sure Pango will be fixed shortly. ^_^

Ciao!

Gravatar for docwhat
docwhat

Jacques:

Thanks! The behavior that you should be seeing on a TinyMCE textarea is that there should be no button. This is because TinyMCE hides the textarea and edits inside a div or something like that. In theory (haven’t tried it) you should be able to hit the edit html button which pops up a window with a text area in it. That should be editable via IAT.

I’ll take a look at it, but I’m guessing that to make such a page work reliably with something like IAT, it’ll require changing the way the page works if it detects IAT (which there isn’t currently a way to do, though I got some excellent suggestions from someone for a post-1.0 change. ) :-)

Ciao!

Gravatar for jacques
Jacques

Hi Docwhat Thanks. I hope you give it a try. It is not so far away from working. TinyMCE actually keeps the textarea (it is visible in the DOM inspector). I am able to start the external editor with the button. The only problem is to get the changed text back into the textarea. Ciao

Gravatar for docwhat
docwhat

Jacques:

I wasn’t very clear. The way TinyMCE works is that it marks the textarea as display:none. IAT should remove the edit button when that happens. In order to make IAT work with TinyMCE, it’ll have to be able to identify TinyMCE, then it’ll have to force save the TinyMCE back to the textarea (the textarea isn’t updated until the form is submitted, normally). Open your editor. Whenever your file changes, it would have to update the textarea, then force TinyMCE to re-update from the textarea.

I probably won’t be adding this functionality into IAT, but I have an idea for an API on web pages which would let the author of the page add this functionality. It’s definitely a post 1.0 thing.

Ciao!

Gravatar for marika
Marika

I really like this extension a lot. However there is a problem when writing Scandinavian letters such as ä, ö, å. The letters are replaced by question marks. I tried installing Notepad++ as advised above but using it made no difference. I’m using Windows Vista but the same problem is with XP as well. Any tips or preferences I could tweak?

Gravatar for docwhat
docwhat

Marika:

Hmmm… it could be that the web page is lying about it’s encoding. Do you have the web page in question, if it’s not private or something like that?

Ciao!

Gravatar for steven
Steven

Hello, I am using this extension on my Windows XP system. I have a new feature request - a list of URLs (regex) for which It’s All Text will be disabled

There is a certain web page I use which puts a link exactly where the IAT “edit” button appears. There is about a 2 pixel difference, and it’s hard to click the link on the web page. In this case, I don’t care if IAT isn’t applicable for this page.

Is there a way to disable IAT for a given URL (regex) ?

Thanks - Steven

Gravatar for docwhat
docwhat

Steven:

Sounds like a good idea. I’ll put it in the wish list.

You can disable the button currently by disabling ‘In-Page Edit Buttons’ in the preferences. It turns the button off for all pages, which is more than you want, but it should get the job done. You can right click on a textarea and select “It’s All Text!” to get to the items you normally get via the edit button.

Maybe we need a menu item to disable the button temporarily or maybe just move that option into the menu or something.

I’ll think about it. Hmm… I wonder if I can detect that there is a link underneath and move the button someplace else?

Ciao!

Gravatar for steven
Steven

I just noticed the preference to turn off the button - thanks. It did the trick for me. I use IAT so infrequently that it’s totally OK that I right-click and select the edit option in the text field.

FYI, the problem webpage is www.furl.net, and it’s the screen which comes up when you “Furl it!” from the bookmark bar.

Gravatar for jacques
Jacques

Hi Docwhat Thanks for this clarification. It is more complicated than I thought. Anyway, keep on with your great work. I will use your extension anyway.

Gravatar for adam
Adam

Hey, I’m sure you’ve probably heard this before, but on the offchance that you haven’t… WHERE’S THE HOTKEY SUPPORT? I mean really a solid product but the whole appeal of using an external editor (I’m particularly thinking of VIM here) is that you can use all sorts of keyboard shortcuts. I.E. you don’t have to use your mouse. If you could add some sort of hotkey to open up the text editor intstead of requiring you to hit a button… I don’t know… you could change the world man! :) Hope this is possible and thanks for an awesome extension.

Gravatar for docwhat
docwhat

Adam:

Thanks for the feedback! I’ll add hotkey support to my todo list. I don’t think I’ll do it for 1.0, just because I’m trying to fix the last stupid bits, but once 1.0 is out, I’ll start experimenting with new features again.

Ciao!

Gravatar for jozef remen
Jozef Remen

Hello, I’m using your plugin for a while on Mac OS X with TextMate as a replacement for Services menu. It would be great if „It’s all text!“ plugin have the ability to set-up keyboard shortcut instead of clicking the button. Thanks!

Gravatar for docwhat
docwhat

Jozef:

It’s on my todo list… :-)

Ciao!

Gravatar for timothy knox
Timothy Knox

I recently got IAT, and for the most part, IAG (it’s all good!). I am running FF 2.0.0.4, and a number of other extensions, and using FF2’s session save/restore capability. However, when I restarted FF to use IAT, every one of my session tabs turned into “Welcome to IAT!” tabs. Again, when I upgraded this morning to IAT 0.7, not only did my four previous tabs all turn in to “Welcome to IAT!” tabs, but about six or eight new ones were added, all for “Welcome to IAT!” One of them hung FF, and I had to kill -9 it. I don’t know if it is a bug in IAT, or a weird interaction between IAT and some other extensions, but it is kind of annoying. ;-)

Thanks, though, for creating IAT, as it is handy (barring that one weird glitch). ;-)

Gravatar for guillem
Guillem

Hi! I use this extension every day, specially for editing hidden textareas. Today with the last update i’ve found that all buttons have disapeared!! I supose that this was a ‘bug’ for you but it’s a salvation for me. I propose to add an option to activate or not this feature.

Thanks a lot for this magnific extension!

Guillem

Gravatar for docwhat
docwhat

Timothy:

Yikes! Okay, I need to take another look at that. I don’t think that it would replace an existing tab. But I could see it adding too many.

I’ll have to fix this before 1.0 as well.

Thanks for reporting that it could get that bad. I knew it could create two instead of one, but I didn’t think it could make tens or more. I’m guessing if the computer is busy or slow when it starts, it could create tons. :-(

Ciao!

Gravatar for docwhat
docwhat

Guillem:

Hah! I love it. You were using IAT in a way I never conceived of! Cool!

Let me think… I hate to add this to the preference panel; it would be confusing to explain and I want to get 1.0 out before I rework the interface to make it work better.

If I created an option you could add to prefs.js by hand that would revert to the previous behavior, would that work for you? It would give you something till I (or someone else) makes it a real feature.

Ciao!

Gravatar for docwhat
docwhat

Guillem:

Another suggestion, actually… You can use Stylish to make the textarea’s visible (and set them very small, if you want to avoid them ruining the layout) and allow IAT to edit them.

Tell me which one would work. I’m obviously in favor of you using stylish, because I’m lazy. But it wouldn’t be that hard to add a way to flip back to the previous behavior.

Ciao!

Gravatar for guillem
Guillem

I’ve installed Stylish and it works fine. I’ve prefered not to manipulate your work! In our business we work with an application that opens a new window with a text editor (very slow). This text is stored in a hidden textarea in the main window. Since we’ve find your extension we are able to edit this text without opening this editor and losing the time it required. Thanks for making our life better! ;)

Gravatar for timothy knox
Timothy Knox

Thanks for taking a look! I really love IAT, and want to see it kick @ss! And like I say, I run about fifteen or so extensions besides IAT, so it is possible that the problem is an unintended interaction between them. In case it helps, besides IAT 0.7, I am running:

Adblock 0.5.3.043 Copy as HTML Link 1.1 DOM Inspector 1.8.1.4 DownThenAll! 0.9.9.10 Firebug 1.05 Flashblock 1.5.3.1 Google Toolbar for Firefox 2.1.20060807L Greasemonkey 0.6.9.20070507.0 Long Titles 1.2.4 Save Text Area 0.4.5 Selenium IDE 0.8.7 Stylish 0.5.1 Tab Mix Plus 0.3.5.2 Tab URL Copier 1.1.8.20061010 Talkback 2.0.0.4 ViewSourceWith 0.0.9 Web Developer 1.1.3 XML Developer Toolbar 0.2

Again, thanks!

Gravatar for peter radavich
Peter Radavich

Hey! Opening all these apps in OSX is great, but what if I want vim in a terminal? My solution: Use a shell script to run an AppleScript to open a terminal, instruct it to run vim, and close when I exit the editor.

Hacky, sure. It works though.

vim.scpt is for iTerm, Terminal.scpt is for MacOSX Terminal.app

http://still.hungry.com/peter/itsalltext/

HTH,

-Peter

Gravatar for docwhat
docwhat

Peter:

That’s cool! Thank you, another option for Mac OS X users. :-)

Ciao!

Gravatar for yaron
yaron

on chrome://itsalltext/content/readme.xhtml you have this line These both do not support sane encodings. I recommend getting something like Notpad++ for editing in UTF-8 instead.

You wrote notpad++ instead of notEpad++

The plugin is wonderfull!! ThX

Gravatar for docwhat
docwhat

Yaron!

Thanks for the check there. Whoops!

Ciao!

Gravatar for cschx
cschx

Hey, very useful extension but I had to uninstall it because every time it updated to a new version it would reload all my saved tabs with some IAT info page and delete the back button history (?). I got tired of losing everything I had open, so I had to get rid of IAT.

Gravatar for docwhat
docwhat

Okay,

That’s it. I give up. I cannot get the readme tab to work sanely across all computers. It needs to die a horrible death. I’ll add a readme menu item or something.

Ciao!

Gravatar for mc
mc

Can someone restate the Macos directions on a more user-oriented level? I’m not sure what ‘usr/bin’ refers to. For instance, it doesn’t appear in any Open dialogs. I have 7.2 installed currently.

Thanks!

Gravatar for docwhat
docwhat

mc:

Thanks for your feedback.

Can you help me?

I just rewrote the Mac OS X instructions again. This is what they currently say:

Out of the box, It's All Text! uses the open program. open behaves like double clicking on a file. It uses the type of the file to choose the correct application to run; for .txt files, that application is the built-in text editor.

If this behavior is fine for you, then leave the editor option alone and enjoy!

However, if you want to use a different editor or to force the same editor regardless of the file type, then you will need to do something a little more complicated.

Firefox cannot run .app applications directly. To run a program in Mac OS X you need to do one of two things: If your editor comes with a non-.app version, then use that. Otherwise you have to write a shell script.

Check your editor's documentation; if it comes with a standalone program, usually located in the /usr/bin/ directory, then you can enter that into the It's All Text! preferences and you're done.

Otherwise, you need to create a shell script. Here are the basic steps to create a shell script:

  1. Open your favorite editor.
  2. Create a file like the example below.
  3. Save it to your home directory: ~/iat.sh
  4. Open a terminal window.
  5. Type this command to make the shell script executable: chmod +x ~/iat.sh
  6. In It's All Text! preferences, use the shell script as your editor.
<p>
  The example shell script.  Replace <code>/path/to/editor.app</code> with the actual path to your .app file.  It'll probably be something like <code>/Applications/MyEditor.app</code>.
</p>

[code lang=“shell”]

!/bin/sh

This is an example shell script for It’s All Text!

open -a /path/to/editor.app $* [/code]

<p>
  Other alternative shell scripts are available at <a href="http://docwhat.org/2007/03/its_all_text_v06/#comment-2054" rel="nofollow">here</a>.
</p>

Thanks again.

Ciao!

Gravatar for ted carnahan
Ted Carnahan

I have a problem that only occurs with It’s All Text enabled. After about 10-15 seconds, whether I am typing or not (though more frequently when I type in the textarea) the textarea will lose focus. Then further keystrokes will cause the screen to jerk around. I’m running a few other add-ons, but nothing that messes with input methods at all. Any ideas?

Gravatar for docwhat
docwhat

Ted:

How interesting. I haven’t heard of something like that before. I don’t think it’s IAT. Could it be something outside the browser? Some other application that is momentarily stealing the focus from Firefox and then giving it back?

Very odd. Can you give me more info? OS, FF version, IAT version? As I said, I doubt it’s IAT but if you include this info, maybe someone else may report similar problems or know what the cause is.

Ciao!

Gravatar for ted carnahan
Ted Carnahan

I’m running Ubuntu 7.04 (Feisty Fawn), Firefox 2.0.0.4, IAT 0.7.2. I’ve reproduced the problem without any other desktop applications running, so I don’t think something is stealing the focus. Also, the window decoration doesn’t change color as if the focus was grabbed by another application. It looks much more like the focus leaves the textarea but stays with Firefox. It doesn’t happen all the time, and I’ll try to narrow down the cause. If I can figure out the circumstances under which it can be reproduced, I’ll let you know. Thanks, Ted

Gravatar for docwhat
docwhat

Ted:

Thanks. If it is an IAT problem, I want to nix it. Very strange behavior though. Because I don’t do any focus or anything. I have an onblur on onfocus event added to the textarea, but that should react to changes not cause them.

Ciao!

Gravatar for oleg
oleg

Hey, I’m sorry to be a bad news bearer, but your great extension seems to leak some memory - I have finished with 300M after viewing about 200 pages. It may due to interaction with my other extensions, but with IAT disabled Firefox (2.0.0.4 on XP with 512M RAM) stays at 60M all day long. I have not tested the last version though - sorry if it is a false alert.

Gravatar for docwhat
docwhat

Oleg:

You’re probably right. I have noticed something similar, though I work with HUGE web pages so in my case it’s not necessarily a memory leak.

I have noticed though that while it gets up around 300M or so, it doesn’t grow without bounds which implies that it just might be memory that Firefox doesn’t like to recover.

I’ve been looking for problems. Things I have tried include:

I just found these two articles while searching for the above articles and should probably try using them:

You may have noticed most of these tools are aimed at a lower level than I’m working at. I’d like more tools that worked at the JavaScript level.

It seems David Baron is the guru of memory leaks. If I don’t have more luck, maybe I’ll for help.

Ciao!

Gravatar for oleg
oleg

I’m not quite sure about your window.addEventListener( “unload”, … that.monitor.unwatch( event.originalTarget||document ); … ) , because windows “unload” event is fired in a rather strange (for me) way, probably related to caching. AFAIK, it is not fired on every page you leave, so many event listeners can remain registered and leak memory.

But I’m all except a guru of memory leaks:)

Gravatar for docwhat
docwhat

Oleg,

Yeah. The unload event fires at weird times. It also (along with load) fires more times than one would expect because there are a bunch of ‘micro’ documents created and destroyed (as near as I can tell).

One of the things that maybe causing problems is my XPCOM usage. I wish that the documentation on developer.mozilla.org included patterns for safe usage of them elements. :-/

Ciao!

Gravatar for christian
Christian

Hi Christian,

what about Thunderbird? I use It’s All Text all day. But recently I started using Thunderbird instead of Webmail. There is an Extension similar to It’s All Text for Thunderbird called External Editor (http://globs.org/articles.php?lng=en&pg=2) but it is not that good. Would it be much work to transfer It’s All Text to Thunderbird?

Thanks for this wonderfull application. Best regards Christian

Gravatar for docwhat
docwhat

Hi Christian,

Good name you have there (for everyone else’s benefit, I’m not talking to myself).

I have added this to my todo list. The code can handle chrome; I made that change so it works with stylish. The biggest problem is figuring out where to put the buttons, etc. I can’t make it work the way it does on web pages because XUL chrome is harder to manipulate without messing up the whole flow.

Ciao!

Gravatar for florin andrei
Florin Andrei

What is the reason why the refresh time is set by default to 3? I always set it to 1, works better this way, and I had no problem whatsoever.

Gravatar for florin andrei
Florin Andrei

Please add .php to the list of file extensions. .html is there, .js is there, seems natural to add .php as well.

Just my $0.02

Gravatar for docwhat
docwhat

Florin Andrei:

re: refresh time set to 3 seconds.

The reason is that it uses CPU time. For each window open, it has a checker. If you are using a desktop, having it run once a second isn’t horrible.

If you run a laptop, setting this to 100 and waving the mouse over the textarea may be better; it’ll use less power.

re: .php extension

No problem! You can do it yourself! Go into the preferences Tools -> It’s All Text! -> Preferences… and add the extension! :-)

Ciao!

Gravatar for walker boh
Walker Boh

After installing the Greasemonkey add-on, It’s All Text stopped working completely. Even de-installing Greasemonkey did not fix the problem :-(

Gravatar for docwhat
docwhat

Walker Boh:

I use greasemonkey all the time. I don’t think it could effect IAT, but I’m not sure how IAT has stopped working for you.

Can you give me more information? Firefox Version # IAT version # Greasemonkey version # What Happened? What did you expect to happen?

Ciao!

Gravatar for matt
Matt

Great extension. I use it to launch GVIM. Works fine with /usr/bin/open on Mac provided I specify GVIM as the application to open txt files.

I have to say, though, that the lack of a keyboard shortcut to launch the desired text editor really cripples an otherwise brilliant add-on.

Nonetheless, thanks a million!

Gravatar for teemu
teemu

I installed v0.7.3 of IAT to my Firefox, v2.0.0.4 for Windows. It works mostly fine when I’m editing our internal wiki for editing (MediaWiki v1.7.1, PHP v5.1.2 (cgi-fcgi), MySQL v5.0.20a-nt).

That is, when I edit a single section of a wiki article, the page opens up normally, with the text displayed in the edit box. The IAT “edit” gumdrop is in the right place, and everything works as it should.

However, when I press the “edit” button at the top of the article, to edit the whole article instead of a single section, what happens is this: Firefox displays a pop-up dialog, called “Opening index.php”, and saying: “You have chosen to open index.php, which is a: PHP file from [the URL]. What should Firefox do with this file?” The given choices are “Open with [Browse button here”, “FlashGot” (another extension I have, but deinstalled, still appearing as a grayed-out zombie, and “Save to Disc”. There is no way to get expected page to appear, that is, the normal wiki edit page with the editbox.

This behaviour only started after I installed IAT a short while ago today.

Gravatar for teemu
teemu

Update to bug report: I uninstalled the FlashGot extension to Firefox, but the bug I reported remains unaffected.

Gravatar for docwhat
docwhat

teemu:

The problem you are seeing isn’t due to any extension in Firefox. It’s the webserver that is misconfigured. I’m guessing that the PHP extension was uninstalled or something similar.

Firefox is saying that the file is being served as “PHP” instead of HTML. If PHP was working, it would interpret the PHP and PHP sets the type to HTML.

Ciao!

Gravatar for docwhat
docwhat

Matt:

The keyboard shortcuts are on my todo list. :-)

Ciao!

Gravatar for teemu
teemu

Thanks for the reply, docwhat. That must be what’s wrong, since the problem persisted even after I uninstalled IAT and rebooted the computer, and editing a Wikipedia article works fine.

It’s just strange that editing a section of an article in our internal Wiki still works, and that I started the problem right after installing IAT, not before. But I’ll check with our IT department about the web server configuration.

Gravatar for teemu
teemu

Actually, investigating the problem further, it does seem that the problem is a side effect of installing IAT.

The problem started occurring yesterday, at the very point when I installed IAT. Nothing in our web server or MediaWiki configuration changed yesterday, and editing sections of wiki pages, whose URL is also “.php?”, works fine.

Furthermore, editing the same wiki page using Internet Explorer works fine.

The problem persisted even after I deinstalled Firefox, rebooted, and reinstalled it.

The problem persists even after I’ve followed the advice in article http://kb.mozillazine.org/Openingfilesusing_plugins. (On the browser, the setting browser.download.pluginOverrideTypes was unchanged (naturally, since I had reinstalled the browser), and there was no setting plugin.disablefullpagepluginfor_types.) I then renamed my profile’s mimeTypes.rdf (whose contents had no reference to the .php filetype, anyway).

So, it seems there’s some weird interaction between IAT and the Firefox browser that causes this problem with URLs that include “.php”.

Gravatar for michael kesper
Michael Kesper

Is it possible to make ITA installable under seamonkay?

Gravatar for docwhat
docwhat

teemu:

I really have no idea how IAT could be causing this. It doesn’t mean it isn’t, but it’s sort of like saying that changing your car’s radio station is causing your tires to loose pressure. If there is a causal relationship, it is complicated and unpredictable.

When you uninstall IAT (not disable it) then the files are removed, nothing is left. There will be some preferences set in prefs.js, but they all start with “extensions.itsalltext” and should have zero effect on Mozilla.

So here’s what we know for sure:

  • The page is being servered with a Content-Type that Firefox is deciding you need to download (or possibly no Content-Type).
  • Internet Explorer tries to view it as HTML anyway (no suprise).
  • You said that it happened when you installed IAT and it did not go away when you uninstall IAT.

If you have access to wget (windows download) try running this command (changing the URL from my homepage to the URL of the page you are trying to view): [code lang=“shell” light=“true”] wget -O- -q —save-headers http://docwhat.org/ [/code]

You should see a line like: [code light=“true”]Content-Type: text/html; charset=UTF-8[/code]

If you get some other Content-Type other than “text/html” then that is the problem. The charset shouldn’t be relevant to this problem.

If the above turns up nothing and you absolutely feel that it might be IAT, you can:

  1. Create a new profile in Mozilla.
  2. Try the problem page with the new profile. If it breaks then it's not IAT otherwise continue…
  3. Install IAT.
  4. Try the problem page again.
    • If it works, then it isn't IAT.
    • If it breaks then something very weird is wrong with IAT. I would need the output of the wget command from above (without the grep) to even start to debug the problem.

Ciao!

PS: This website is all PHP and it isn’t causing any problems for you.

Gravatar for docwhat
docwhat

Michael Kesper:

Yes it is, however some of the facilities (overlays, etc.) are different. I’ll probably do this after I finish my current round of bug fixing. :-/ It’ll be in my todo list, though.

Ciao!

Gravatar for sa
sa

An option to disable the yellow animation would be nice.

Gravatar for docwhat
docwhat

sa:

Really? Awww… I’m bummed. I figured that was the least dislikable feature!

sigh Adding it to my todo list…

Ciao!

Gravatar for rampion
Rampion

Great extension! One quick question - is there an easy way to set the default file extension to something other than ‘.txt’? I find I’m usually typing in text areas where ‘.html’ would be more appropriate.

Gravatar for docwhat
docwhat

Rampion:

Absolutely! Either right click on the “edit” button or right click in the textarea and select “It’s All Text!” and choose from the existing extensions or add a new one! You can also edit the list of extensions via the preferences.

Ciao!

Gravatar for tommyb
TommyB

Hi,

thanks for the great plugin - it’s really helpful and worth to work on it!

I have one Problem: I’m using the plugin InFormEnter as well as It’s all text. InFormEnter puts a button right after each form field. It’s helping to put predefined text into each form field. After installing It’s all Text the InFormEnter Plugin puts TWO buttons after each textarea form field. I’m no programmer, but it looks like that some process modifying the webpage is processed double. Maybe you can discuss the problem with the programmer of InFormEnter.

best thomas

Gravatar for docwhat
docwhat

TommyB:

I took a look at it, and what’s going on is:

  1. IFE (InFormEnter) determines that the next sibling to the textarea is not an IFE button and creates a button immediately after the textarea.
  2. IAT creates the button immediately after the textarea, pushing the IFE button away from the textarea making the second sibling.
  3. IFE determines that the next sibling to the textarea is not an IFE button (it's the IAT button) and creates a button immediately after the textarea.
  4. IAT doesn't care where the button is once it has been created, and does nothing.

I cannot really detect this situation in IAT. IFE needs to figure out that the button is already created and not create another one.

I have written an email to the author of IFE.

Ciao!

Gravatar for chiggsy
chiggsy

Lovely plugin. I should point out that if one installs vim-app from macports, one then gets a binary /opt/local/bin/gvim which can be successfully used to launch this plugin. Working for me now. Brilliant, brilliant work!`

Gravatar for lil devil
Lil Devil

Hi,

I just discovered this plugin and it’s very useful to me. But I noticed one of the bugs you think you fixed ”* Fixed the context menu jumping all over the place.” isn’t really fixed at all for me. When I right-click the edit button, the outline of the menu appears in it’s correct place for a moment, then moves to the right-hand edge of the screen, then to the lower-right corner where it stays put and draws completely. Now a show-stopper but it sure is annoying.

Thanks for such a useful extension!

Gravatar for docwhat
docwhat

Yeah, the context menu seems to be, in part, a bug in Mozilla. I’m tracking those bugs and hopefully it’ll be fixed some day. :-/

Meanwhile, the next version I release will have the “best version” of the context menu possible with Mozilla in it’s current state.

Unfortunately, I have introduced memory leaks in my current tree so I’ve been trying to fix those. Added to, real-life has been a little busy. So I haven’t spent much time on this.

Sorry. :-(

I’ll see if I can make some time this weekend.

Ciao!

Gravatar for teemu
teemu

docwhat, thanks for your response of 2007-07-12. I downloaded wget and looked at what content our server was returning in response to the different queries. Up to the end of the first section, there was nothing different between what was returned for the query ”http://our.internal.wiki/mediawiki/index.php?title=Thearticlein_question&action=edit” and ”http://our.internal.wiki/mediawiki/index.php?title=Thearticlein_question&action=edit&section=1”, but when I give these URLs to the browser, the first one results in the popup I described being displayed, while the second one works normally, bringing up an edit box for the section.

By the way, soon after I reported that this works normally in IE, it started misbehaving there, too. If I try the first URL, IE pops up a dialog that says “Do you want to save this file, or find a program online to open it?”

Since others in my office do not have this problem, I think that I’ve somehow broken the setup of my computer. I do remember playing about with Registry settings in an attempt to make the .php problem go away.

In any case, I’m now pretty sure it’s not a problem with IAT.

Gravatar for teemu
teemu

I found the solution to my problem. It was nothing to do with It’s All Text, any other Firefox plugin, the MIME types being served, or anything else to do with our web server. The problem was that in my preferences for our internal wiki (which runs on MediaWiki software), in the “Editing” tab, I had “Use external editor by default” checked. I didn’t have that checked in my preferences for Wikipedia, so editing a whole page worked there.

I have no idea why I didn’t get this error when editing a section of a page in our wiki, but after unchecking that box and saving my preferences, everything works.

One more thing: It’s All Text is a great plugin!

Gravatar for boudewijn pelt
Boudewijn Pelt

Hi, Like the plug-in, but is not quite what I am looking for. A common problem with text entry fields is that you get an error the moment you submit.

But with this plug-in, if you press the edit button again you still loose the text you typed. The specific case I am talking about is adding comments using the Jira bug tracker from www.atlassian.com.

A solution would be not to replace an existing temporary file by an empty one. Just open the existing one. You can always clear it in the editor you are using.

Gravatar for docwhat
docwhat

Boudenwijn Pelt:

Currently, you can leave the editor open and if you revisit the same page, then any changes you make will update the textarea.

I can see adding an option to never empty the text file, though.

Ciao!

Gravatar for spoko
spoko

I really like the add-on, but I’ve found that it messes up some “special” characters (such as the em dash, — ). If I copy the text from the text editor and manually paste it into the web site, those characters copy in just fine. If I save the text-editor file and let your add-on do the text insertion on the page, those characters get replaced with a funky reverse-question-mark-set-in-a-diamond. Obviously, copying and pasting from the text editor is 2/3 of what this extension is supposed to avoid.

Otherwise, I’m happy with it. Keep up the good work, please.

Gravatar for docwhat
docwhat

spoko:

Thanks! Regarding the special characters being munged, this is because your editor and IAT don’t agree on the character set. By default, IAT uses UTF-8. If your editor doesn’t handle that or if your editor assumes it’s some other charset, then you will get the behavior you described.

Try changing the charset to match what your editor thinks it is. Possibly iso-8859-15 or some windows proprietary charset (I don’t use windows).

Ciao!

Gravatar for spoko
spoko

Sorry—now I see that in the FAQ. I don’t know what character set my editor uses by default (or how to change its default), but I did set a quick shortcut to change the current working document to UTF-8, and that does the trick. Carries those across beautifully.

OK, now this extension rocks.

Gravatar for mish
mish

Just to add another vote for the keyboard shortcuts (I have seen that it’s on your todo list).

But thank you for your work, and I’ll look forward to trying it again when you have had time to do the keyboard shortcut. (carrying on with mozex for now …)

Gravatar for priyadarshan
Priyadarshan

Excellent extension. Thank you very much for it! PS: I do like the yellow animation feature a lot. That guy that wants an option to take it away must surely be joking.

Gravatar for docwhat
docwhat

@Priyadarshan

Thank you!

‘sa’ uses It’s All Text!, so they must have excellent taste; I’m sure there is an excellent reason for not wanting the yellow fade. :-D

Ciao!

Gravatar for mark crane
Mark Crane

Hi,

I am using IAT on my G4 Imac.

Os x 10.4.10

Firefox 2.0.0.6

Greasemonkey is disabled.

I installed the iat.sh shell script, and when I type

open -a /Applications/TextWrangler.app $*

Textwrangler opens right up. However, clicking on the IAT edit button does not invoke the editor. Nor does ctrl-click and selecting IAT from the contextual menu.

IAT is configured to point directly at the script:

/Users/englishdepartment/iat.sh

Any suggestions? Thank you for creating something cool for the world to use.

Gravatar for mark crane
Mark Crane

I just pointed the preferences at the Pico editor clone nano: /usr/bin/nano

which is a simple unix editor. IAT is not working with that as well. I wonder what I am doing wrong…

Gravatar for mark crane
Mark Crane

Also, I disabled all of my firefox plugins, restarted firefox, and it still isn’t working. Hmmm.

Gravatar for docwhat
docwhat

Mark Crane:

Huh… odd. Is there a dialog popping up saying that it couldn’t run the editor?

If not, can you look for any error messages in the JavaScript Error Console (or Firebug if you have that installed)?

You may have to set javascript.options.strict to true in about:config to get more messages.

Ciao!

Gravatar for mark crane
Mark Crane

Hi. I set Java options to strict, installed firebug, cleared the console then tried to use IAT and no error messages were generated. None were generated in the regular console either. I’m giving up at this point after 3.5 hours, but thank you!

p.s. mozex isn’t working either.

Gravatar for docwhat
docwhat

Mark Crane:

One last check… Hum… actually, now that I think about it, nano can never work because it runs in a terminal, unless the Mac OS X opens a terminal for you. You would have to have the iat.sh script open a terminal and then run nano. That’s beyond my Mac OS X knowledge.

I don’t know the other editor you mention, does it also open in a terminal?

Ciao!

Gravatar for boudewijn pelt
Boudewijn Pelt

There is a conflict with Crucible: http://www.atlassian.com/software/crucible/ When editing comments the Crucible “Post” button does not work anymore while It’s All Text! is active. You can work around it by clicking “Save As Draft” instead and then clicking “Post”.

Gravatar for docwhat
docwhat

Boudewijn Pelt:

Can you give the exact steps to reproduce that problem on their demo? I tried to recreate the problem and it works for me. :-/

Ciao!

Gravatar for boudewijn pelt
Boudewijn Pelt

Ok. I see what you mean. The first comment does not have the Post button blocked. But then the “Defect” checkbox is blocked.

Login on the review site. http://demo.cenqua.com/cru/CR-11 Click “/trunk/libgaim/example/nullclientc” Click line 17. type some text. Click the Defect checkbox: it does not work, the checkbox is blocked. But you can still click on the “Defect” text. Click “Post” Click “Reply” Type some text. Now the “Post” button is blocked.

Gravatar for docwhat
docwhat

Boudewijn Pelt:

Oooh…that’ll be a hard one to fix. The work around is to use the keyboard:

  1. Click on the text box.
  2. Press tab once to get to the checkbox.
  3. Press space to check the box.

I’ll see if I can work up a test case for it. But detecting that a checkbox is below the button is hard. :-/ In addition, the button is in the wrong place for some reason. I’ll have to look at the DOM to see what’s going on.

Thanks for reporting this.

Ciao!

Gravatar for lahvak
lahvak

Docwhat, first of all I want to thank you for this great extension! I got spoiled by years of using Lynx as my primary browser. Lynx had an external editor feature build in for quite a while, but I couldn’t find a good graphical browser with the same feature for a long time. Since I am also a vi junkie, I always end up inserting bunch of strange character combinations in textareas, or loosing all typed text after accidentally pressing ESC. I have just discovered tour extension and I can finally do what I used to do in the good old Lynx days, edit textareas using vim.

However, there is one thing missing for me. I use the vimperator extension, which lets me for most time do all my browsing with keyboard only, but there is no way to start the external editor it It’s all text! without a mouse. I would really really like to add my voice to the people asking for a hotkey support. That would make It’s all text! just perfect!

Gravatar for aitor
Aitor

Thanks, thanks, thanks, thanks… for this great extension!

Gravatar for err
err

First, very nice.

A Few things

  1. I’m using gvim on windows, so path is like “C:\stuff\gvim.exe”. This starts up gvim async (it forks). I thought I’d try starting it sync, with the ‘-f’ option, and see if I could detect any differences in “IAT” behavior. In particular I was wondering if it might affect the following issues. I tried “c:\stuff\gvim.exe -f”, but that failed. I guess if you want options you need to set up a script. I made a iat.cmd and put “c:\stuff\gvim.exe -f” in it, it starts the editor, but not with the right file. I don’t know the windows equivelent of ”$*“. Also, when it started there was that anoying command.com window as well.

  2. accumulation of temp file, any issues here? They don’t seem to go away (at least not very quickly). I thought if the editor started up sync, you would know when the editor exitted and be able to handle the delete.

  3. While the editor is active, if I modify the textArea through the browser… Again, if IAT knew when the editor exited, maybe could warn that changes made would be lost.

Thanks a lot for this extension.

Gravatar for docwhat
docwhat

err;

Unfortunately, FireFox does not report back when a process exits. Otherwise, I could fix a problems I have to work around. So the original way you invoked gvim was correct. You don’t need the -f.

Regarding the temp files, they should go away either: when the browser exits or (failing that) after aging a week (I think it was a week. Maybe a day.)

I don’t delete them faster because you can keep your editor open and revisit the same page and make changes by editing the old file. :-) Assuming that each edit doesn’t get a new URL (depends on the site).

Ciao!

Gravatar for alex
Alex

Cool extension - thanks!

I’m using it with TWiki which also puts buttons in almost exactly the same place as the blue edit button. Makes it tricky to hit (or even see!). Would it be possible to have an option to display the button e.g. on the left or in the middle instead of on the right?

Gravatar for docwhat
docwhat

Alex:

Yeah, this is a problem.

I’m thinking about making the button disappear when the mouse isn’t over a textarea and the textarea isn’t in focus.

So in your case, you just click outside the textarea someplace (to remove the focus) and the edit button goes away entirely, leaving you free to click the button underneath.

Ciao!

Gravatar for tobias bengtsson
Tobias Bengtsson

Hi, this is an excellent plugin! Keep up the good work!

I’m a heavy vim user and also use the vimperator plugin to surf the web, thus the only thing I need to use the mouse for is to start that editor ;-) So as many before me I once again say: Pretty please with sugar on top, add a hotkey, any hotkey, no need for it to be configurable, just add it soon. :-)

Gravatar for fan
Fan

Can this be updated to append in same editor window until window is closed?

Gravatar for docwhat
docwhat

Fan:

Do you mean, the file in the editor would be updated from the browser window? That is, it would be synchronized in both directions?

What happens when a change in the browser conflicts with a change in the editor?

If one (the editor or the browser) was given priority, then it’s not so hard.

Do you have a use case?

Ciao!

Gravatar for teemu
teemu

I’d like to add my voice in support of the yellow animation. It’s reassuring to see it, and to know that the textbox has changed according to what’s in the editor.

Gravatar for richih
RichiH

As requested, I am putting my comments in here, as well :)

  1. IAT should try to execute the editor within a shell, not call a binary directly. As it is, it is impossible to pass parameters to the executable. A shellscript is a working but kludgy work-around.

  2. The position of the edit button should be changeable.

Thanks a lot for your script! :)

Gravatar for docwhat
docwhat

RichiH:

Thanks for the feedback. I’m enjoying talking to you on IM…

Yeah, it’d be really nice to have something like that. The problem is that shells and the exec() function on different platforms work differently. FF doesn’t expose execl().

I’ve been thinking of adding an advanced option or something where you are assumed to know how your local system works. That way people who don’t know (or don’t care) can just use the current behavior.

The letting people choose corners is a good idea. I’m wanting to change the way the edit button appears and disappears anyway. It gets in the way sometimes.

Thanks again.

Ciao!

Gravatar for docwhat
docwhat

Comments are closed here. Post on the v0.8.0 thread instead.

Ciao!

Submit a Comment

docwhat

The personal blog of Christian Höltje.
docwhat docwhat contact