docwhat/itsalltext

feature request to add option of highlighting all of the text in a text area before invoking itsalltext.

Closed this issue · 3 comments

I was wondering if you could add an option in the preferences to be able to highlight all of the text in a text area (basically doing a control-a) before the text editor is launched with itsalltext? I have to do this sometimes (do a control-a) for the text to appear in gvim when invoking itsalltext.

Ah, well as a kind of hacky solution, I just mapped my hot key in the preferences to "ctrl A"; in effect, this does what I was suggesting -- it highlights all of the text in a text area and then launches gvim, thus bringing all of the highlighted text along with it when launched.

Do you have an example where this is needed?

What happens if you don't select text first?

This sounds awfully strange. Only selecting text shouldn't do anything.

Well, I'm trying to use itsalltext with the ipython notebook. If you're not familiar, there are cells of code that can be executed individually (basically separate text boxes), but the editing environment is not ideal (read: not vim ;). So if I invoke itsalltext without highlighting all of the code first, it just opens gvim with an empty file; however, if the code is highlighted first (with control-a) then it opens gvim with all of the code from the cell. My solution mentioned above works great though (to just remap the hot key to control-a) so at least there is a workaround. And after I sent that I think that I've found that this seems likely to be an issue with the ipython notebook environment, as when I invoke itsalltext here on github without highlighting all of the text first, it works fine (it opens gvim with all of the text from the box).