Edit any text input shown by a browser (mostly Chrome) with Emacs












6















Goal: to edit any text input (mostly text areas, but also single line inputs) shown by web browsers with an external editor, in my case, Emacs. Achieve a high level of comfort.



Whenever I'm browsing and need to write huge texts (editing a wiki, answering an email, writing blog entries) I like to do it in my editor of choice (Emacs). In order to do this I can go the manual route: copy in web browser, paste in editor, edit, copy in editor, paste in browser. What a hassle.



For Firefox I used to have an addon for that, though it got lost somewhere along the way. I've found It's All Text which supposedly works, though I haven't tried it yet.



For Chrome I'm currently using Edit with Emacs which works but has some serious shortcomings. However, I'm perfectly aware of the limitation that a Chrome extension cannot spawn other processes; using Emacs' edit server is therefore probably the only way. But I'm fine with that.



What I really want:




  • The ability to use any Emacs mode, major or minor ("Edit with Emacs" fails this as it is itself a major mode, and you lose the interaction with Chrome if you switch to a different major mode). That way editing e.g. wiki markup language can benefit from Emacs capabilities like syntax highlighting etc.

  • The ability to save the file, or at least, have automatic saves ("Edit with Emacs" fails this as well)

  • Minimum amount of manual work required for handing text over to the editor and back (context menu is fine, shortcut would be better. This is one area "Edit with Emacs" shines)


Any proposals? Thanks :)










share|improve this question























  • Have you tried any of the solutions mentioned in superuser.com/a/262968/87552? Even if it uses It's All Text stackoverflow.com/a/10386560/789593 might be relevant for you as it talks about how to interact with Stack Overflow.

    – N.N.
    Oct 17 '12 at 5:26











  • One of the mentioned solutions is currently not working according to the Chrome pluing page. I haven't tried TextAid, but it looks interesting. I did update "Edit with Emacs" (the Emacs part of it) yesterday, and at least the hassle with the modes is now gone. It even has (ugly) save capabilities, so it's "OK enough" for now. Not good enough, but it has reached that bare minimum that I can live with for now.

    – Moritz Bunkus
    Oct 17 '12 at 7:32






  • 1





    Are you familiar with the Vimperator plugin for Firefox? It allows the described behavior. There are a couple of available counterparts of it for Chrome. I think it's not unreasonable that this feature has been added to Vimium of Vrome. You can probably study the code, or ask the developers how it's done.

    – Ярослав Рахматуллин
    Nov 18 '12 at 17:23
















6















Goal: to edit any text input (mostly text areas, but also single line inputs) shown by web browsers with an external editor, in my case, Emacs. Achieve a high level of comfort.



Whenever I'm browsing and need to write huge texts (editing a wiki, answering an email, writing blog entries) I like to do it in my editor of choice (Emacs). In order to do this I can go the manual route: copy in web browser, paste in editor, edit, copy in editor, paste in browser. What a hassle.



For Firefox I used to have an addon for that, though it got lost somewhere along the way. I've found It's All Text which supposedly works, though I haven't tried it yet.



For Chrome I'm currently using Edit with Emacs which works but has some serious shortcomings. However, I'm perfectly aware of the limitation that a Chrome extension cannot spawn other processes; using Emacs' edit server is therefore probably the only way. But I'm fine with that.



What I really want:




  • The ability to use any Emacs mode, major or minor ("Edit with Emacs" fails this as it is itself a major mode, and you lose the interaction with Chrome if you switch to a different major mode). That way editing e.g. wiki markup language can benefit from Emacs capabilities like syntax highlighting etc.

  • The ability to save the file, or at least, have automatic saves ("Edit with Emacs" fails this as well)

  • Minimum amount of manual work required for handing text over to the editor and back (context menu is fine, shortcut would be better. This is one area "Edit with Emacs" shines)


Any proposals? Thanks :)










share|improve this question























  • Have you tried any of the solutions mentioned in superuser.com/a/262968/87552? Even if it uses It's All Text stackoverflow.com/a/10386560/789593 might be relevant for you as it talks about how to interact with Stack Overflow.

    – N.N.
    Oct 17 '12 at 5:26











  • One of the mentioned solutions is currently not working according to the Chrome pluing page. I haven't tried TextAid, but it looks interesting. I did update "Edit with Emacs" (the Emacs part of it) yesterday, and at least the hassle with the modes is now gone. It even has (ugly) save capabilities, so it's "OK enough" for now. Not good enough, but it has reached that bare minimum that I can live with for now.

    – Moritz Bunkus
    Oct 17 '12 at 7:32






  • 1





    Are you familiar with the Vimperator plugin for Firefox? It allows the described behavior. There are a couple of available counterparts of it for Chrome. I think it's not unreasonable that this feature has been added to Vimium of Vrome. You can probably study the code, or ask the developers how it's done.

    – Ярослав Рахматуллин
    Nov 18 '12 at 17:23














6












6








6


2






Goal: to edit any text input (mostly text areas, but also single line inputs) shown by web browsers with an external editor, in my case, Emacs. Achieve a high level of comfort.



Whenever I'm browsing and need to write huge texts (editing a wiki, answering an email, writing blog entries) I like to do it in my editor of choice (Emacs). In order to do this I can go the manual route: copy in web browser, paste in editor, edit, copy in editor, paste in browser. What a hassle.



For Firefox I used to have an addon for that, though it got lost somewhere along the way. I've found It's All Text which supposedly works, though I haven't tried it yet.



For Chrome I'm currently using Edit with Emacs which works but has some serious shortcomings. However, I'm perfectly aware of the limitation that a Chrome extension cannot spawn other processes; using Emacs' edit server is therefore probably the only way. But I'm fine with that.



What I really want:




  • The ability to use any Emacs mode, major or minor ("Edit with Emacs" fails this as it is itself a major mode, and you lose the interaction with Chrome if you switch to a different major mode). That way editing e.g. wiki markup language can benefit from Emacs capabilities like syntax highlighting etc.

  • The ability to save the file, or at least, have automatic saves ("Edit with Emacs" fails this as well)

  • Minimum amount of manual work required for handing text over to the editor and back (context menu is fine, shortcut would be better. This is one area "Edit with Emacs" shines)


Any proposals? Thanks :)










share|improve this question














Goal: to edit any text input (mostly text areas, but also single line inputs) shown by web browsers with an external editor, in my case, Emacs. Achieve a high level of comfort.



Whenever I'm browsing and need to write huge texts (editing a wiki, answering an email, writing blog entries) I like to do it in my editor of choice (Emacs). In order to do this I can go the manual route: copy in web browser, paste in editor, edit, copy in editor, paste in browser. What a hassle.



For Firefox I used to have an addon for that, though it got lost somewhere along the way. I've found It's All Text which supposedly works, though I haven't tried it yet.



For Chrome I'm currently using Edit with Emacs which works but has some serious shortcomings. However, I'm perfectly aware of the limitation that a Chrome extension cannot spawn other processes; using Emacs' edit server is therefore probably the only way. But I'm fine with that.



What I really want:




  • The ability to use any Emacs mode, major or minor ("Edit with Emacs" fails this as it is itself a major mode, and you lose the interaction with Chrome if you switch to a different major mode). That way editing e.g. wiki markup language can benefit from Emacs capabilities like syntax highlighting etc.

  • The ability to save the file, or at least, have automatic saves ("Edit with Emacs" fails this as well)

  • Minimum amount of manual work required for handing text over to the editor and back (context menu is fine, shortcut would be better. This is one area "Edit with Emacs" shines)


Any proposals? Thanks :)







firefox google-chrome emacs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 16 '12 at 8:42









Moritz BunkusMoritz Bunkus

1314




1314













  • Have you tried any of the solutions mentioned in superuser.com/a/262968/87552? Even if it uses It's All Text stackoverflow.com/a/10386560/789593 might be relevant for you as it talks about how to interact with Stack Overflow.

    – N.N.
    Oct 17 '12 at 5:26











  • One of the mentioned solutions is currently not working according to the Chrome pluing page. I haven't tried TextAid, but it looks interesting. I did update "Edit with Emacs" (the Emacs part of it) yesterday, and at least the hassle with the modes is now gone. It even has (ugly) save capabilities, so it's "OK enough" for now. Not good enough, but it has reached that bare minimum that I can live with for now.

    – Moritz Bunkus
    Oct 17 '12 at 7:32






  • 1





    Are you familiar with the Vimperator plugin for Firefox? It allows the described behavior. There are a couple of available counterparts of it for Chrome. I think it's not unreasonable that this feature has been added to Vimium of Vrome. You can probably study the code, or ask the developers how it's done.

    – Ярослав Рахматуллин
    Nov 18 '12 at 17:23



















  • Have you tried any of the solutions mentioned in superuser.com/a/262968/87552? Even if it uses It's All Text stackoverflow.com/a/10386560/789593 might be relevant for you as it talks about how to interact with Stack Overflow.

    – N.N.
    Oct 17 '12 at 5:26











  • One of the mentioned solutions is currently not working according to the Chrome pluing page. I haven't tried TextAid, but it looks interesting. I did update "Edit with Emacs" (the Emacs part of it) yesterday, and at least the hassle with the modes is now gone. It even has (ugly) save capabilities, so it's "OK enough" for now. Not good enough, but it has reached that bare minimum that I can live with for now.

    – Moritz Bunkus
    Oct 17 '12 at 7:32






  • 1





    Are you familiar with the Vimperator plugin for Firefox? It allows the described behavior. There are a couple of available counterparts of it for Chrome. I think it's not unreasonable that this feature has been added to Vimium of Vrome. You can probably study the code, or ask the developers how it's done.

    – Ярослав Рахматуллин
    Nov 18 '12 at 17:23

















Have you tried any of the solutions mentioned in superuser.com/a/262968/87552? Even if it uses It's All Text stackoverflow.com/a/10386560/789593 might be relevant for you as it talks about how to interact with Stack Overflow.

– N.N.
Oct 17 '12 at 5:26





Have you tried any of the solutions mentioned in superuser.com/a/262968/87552? Even if it uses It's All Text stackoverflow.com/a/10386560/789593 might be relevant for you as it talks about how to interact with Stack Overflow.

– N.N.
Oct 17 '12 at 5:26













One of the mentioned solutions is currently not working according to the Chrome pluing page. I haven't tried TextAid, but it looks interesting. I did update "Edit with Emacs" (the Emacs part of it) yesterday, and at least the hassle with the modes is now gone. It even has (ugly) save capabilities, so it's "OK enough" for now. Not good enough, but it has reached that bare minimum that I can live with for now.

– Moritz Bunkus
Oct 17 '12 at 7:32





One of the mentioned solutions is currently not working according to the Chrome pluing page. I haven't tried TextAid, but it looks interesting. I did update "Edit with Emacs" (the Emacs part of it) yesterday, and at least the hassle with the modes is now gone. It even has (ugly) save capabilities, so it's "OK enough" for now. Not good enough, but it has reached that bare minimum that I can live with for now.

– Moritz Bunkus
Oct 17 '12 at 7:32




1




1





Are you familiar with the Vimperator plugin for Firefox? It allows the described behavior. There are a couple of available counterparts of it for Chrome. I think it's not unreasonable that this feature has been added to Vimium of Vrome. You can probably study the code, or ask the developers how it's done.

– Ярослав Рахматуллин
Nov 18 '12 at 17:23





Are you familiar with the Vimperator plugin for Firefox? It allows the described behavior. There are a couple of available counterparts of it for Chrome. I think it's not unreasonable that this feature has been added to Vimium of Vrome. You can probably study the code, or ask the developers how it's done.

– Ярослав Рахматуллин
Nov 18 '12 at 17:23










3 Answers
3






active

oldest

votes


















1














If you're using firefox, check out Vimperator. If you install it, you can use the web browser just like you normally would, but with a ton of extra keyboard shortcuts. If you are in a text area or text box, you can press Control+i to launch the external editor. Edit your ~/.vimperatorrc to change which editor you want to use (it defaults to gvim).






share|improve this answer

































    0














    You didn't specify which OS. For Windows, check out http://www.listary.com/text-editor-anywhere I use it as I was looking for a similar utility, but for vim. You can specify whichever editor you like. I, too, was turned off by the complexity of implementing "Edit with Emacs" What I love about text editor anywhere is that it uses temporary files for each editing session, and saved me much lost time repeatedly.






    share|improve this answer































      0














      You could use Atomic Chrome for Emacs that despite the name supports (in addition to Google Chrome) Firefox too (via Ghost Text addon/browser extension).



      Here's my use-package configuration in .emacs:



      ;; ** edit browser text area in Emacs (sync both ways)
      (use-package atomic-chrome
      ;; dependency Atomic Chrome extension (in Chrome)
      :ensure t
      :init
      (setq atomic-chrome-default-major-mode 'markdown-mode)
      (setq atomic-chrome-extension-type-list '(atomic-chrome))
      :config
      (atomic-chrome-start-server))





      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "3"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f488348%2fedit-any-text-input-shown-by-a-browser-mostly-chrome-with-emacs%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        If you're using firefox, check out Vimperator. If you install it, you can use the web browser just like you normally would, but with a ton of extra keyboard shortcuts. If you are in a text area or text box, you can press Control+i to launch the external editor. Edit your ~/.vimperatorrc to change which editor you want to use (it defaults to gvim).






        share|improve this answer






























          1














          If you're using firefox, check out Vimperator. If you install it, you can use the web browser just like you normally would, but with a ton of extra keyboard shortcuts. If you are in a text area or text box, you can press Control+i to launch the external editor. Edit your ~/.vimperatorrc to change which editor you want to use (it defaults to gvim).






          share|improve this answer




























            1












            1








            1







            If you're using firefox, check out Vimperator. If you install it, you can use the web browser just like you normally would, but with a ton of extra keyboard shortcuts. If you are in a text area or text box, you can press Control+i to launch the external editor. Edit your ~/.vimperatorrc to change which editor you want to use (it defaults to gvim).






            share|improve this answer















            If you're using firefox, check out Vimperator. If you install it, you can use the web browser just like you normally would, but with a ton of extra keyboard shortcuts. If you are in a text area or text box, you can press Control+i to launch the external editor. Edit your ~/.vimperatorrc to change which editor you want to use (it defaults to gvim).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 29 '15 at 19:49









            kenorb

            10.9k1578112




            10.9k1578112










            answered Jul 22 '14 at 6:33









            stonewareslordstonewareslord

            335




            335

























                0














                You didn't specify which OS. For Windows, check out http://www.listary.com/text-editor-anywhere I use it as I was looking for a similar utility, but for vim. You can specify whichever editor you like. I, too, was turned off by the complexity of implementing "Edit with Emacs" What I love about text editor anywhere is that it uses temporary files for each editing session, and saved me much lost time repeatedly.






                share|improve this answer




























                  0














                  You didn't specify which OS. For Windows, check out http://www.listary.com/text-editor-anywhere I use it as I was looking for a similar utility, but for vim. You can specify whichever editor you like. I, too, was turned off by the complexity of implementing "Edit with Emacs" What I love about text editor anywhere is that it uses temporary files for each editing session, and saved me much lost time repeatedly.






                  share|improve this answer


























                    0












                    0








                    0







                    You didn't specify which OS. For Windows, check out http://www.listary.com/text-editor-anywhere I use it as I was looking for a similar utility, but for vim. You can specify whichever editor you like. I, too, was turned off by the complexity of implementing "Edit with Emacs" What I love about text editor anywhere is that it uses temporary files for each editing session, and saved me much lost time repeatedly.






                    share|improve this answer













                    You didn't specify which OS. For Windows, check out http://www.listary.com/text-editor-anywhere I use it as I was looking for a similar utility, but for vim. You can specify whichever editor you like. I, too, was turned off by the complexity of implementing "Edit with Emacs" What I love about text editor anywhere is that it uses temporary files for each editing session, and saved me much lost time repeatedly.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 5 '13 at 15:32









                    ScreenackScreenack

                    1857




                    1857























                        0














                        You could use Atomic Chrome for Emacs that despite the name supports (in addition to Google Chrome) Firefox too (via Ghost Text addon/browser extension).



                        Here's my use-package configuration in .emacs:



                        ;; ** edit browser text area in Emacs (sync both ways)
                        (use-package atomic-chrome
                        ;; dependency Atomic Chrome extension (in Chrome)
                        :ensure t
                        :init
                        (setq atomic-chrome-default-major-mode 'markdown-mode)
                        (setq atomic-chrome-extension-type-list '(atomic-chrome))
                        :config
                        (atomic-chrome-start-server))





                        share|improve this answer




























                          0














                          You could use Atomic Chrome for Emacs that despite the name supports (in addition to Google Chrome) Firefox too (via Ghost Text addon/browser extension).



                          Here's my use-package configuration in .emacs:



                          ;; ** edit browser text area in Emacs (sync both ways)
                          (use-package atomic-chrome
                          ;; dependency Atomic Chrome extension (in Chrome)
                          :ensure t
                          :init
                          (setq atomic-chrome-default-major-mode 'markdown-mode)
                          (setq atomic-chrome-extension-type-list '(atomic-chrome))
                          :config
                          (atomic-chrome-start-server))





                          share|improve this answer


























                            0












                            0








                            0







                            You could use Atomic Chrome for Emacs that despite the name supports (in addition to Google Chrome) Firefox too (via Ghost Text addon/browser extension).



                            Here's my use-package configuration in .emacs:



                            ;; ** edit browser text area in Emacs (sync both ways)
                            (use-package atomic-chrome
                            ;; dependency Atomic Chrome extension (in Chrome)
                            :ensure t
                            :init
                            (setq atomic-chrome-default-major-mode 'markdown-mode)
                            (setq atomic-chrome-extension-type-list '(atomic-chrome))
                            :config
                            (atomic-chrome-start-server))





                            share|improve this answer













                            You could use Atomic Chrome for Emacs that despite the name supports (in addition to Google Chrome) Firefox too (via Ghost Text addon/browser extension).



                            Here's my use-package configuration in .emacs:



                            ;; ** edit browser text area in Emacs (sync both ways)
                            (use-package atomic-chrome
                            ;; dependency Atomic Chrome extension (in Chrome)
                            :ensure t
                            :init
                            (setq atomic-chrome-default-major-mode 'markdown-mode)
                            (setq atomic-chrome-extension-type-list '(atomic-chrome))
                            :config
                            (atomic-chrome-start-server))






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 30 '18 at 5:41









                            jfsjfs

                            1,0111712




                            1,0111712






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Super User!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f488348%2fedit-any-text-input-shown-by-a-browser-mostly-chrome-with-emacs%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                Mangá

                                Eduardo VII do Reino Unido