Menu

Paste as node or plain text -- never HTML

2017-08-18
2017-08-30
  • Joseph Reagle

    Joseph Reagle - 2017-08-18

    I use cut & paste to organize nodes, this works great. But when it comes to copying/pasting from Web pages, I'd like the default to be as plain text. I do this a lot, and typing {super+shit+V,tab,tab,tab,tab,space,enter} is a nuisance.

     
  • Felix Natter

    Felix Natter - 2017-08-18

    hello Joseph,

    If you are using the edit popup window ("rich text editor"),
    you can change Preferences->Behavior->Default paste mode at the very bottom.
    Cheers and Best Regards,
    Felix

     
    • zipizap

      zipizap - 2017-08-18

      Yup

      Or even create your own shortcut to "paste-as-text" directly

       

      Last edit: Dimitry Polivaev 2017-08-30
      • Joseph Reagle

        Joseph Reagle - 2017-08-26

        zipizap, how would you create such a shortcut?

         
        • zipizap

          zipizap - 2017-08-26

          Goto "Edit/Paste.../Paste-as-text" and hold CONTROL key while clicking it:
          and it will ask you for the new shortcut.

          This add-shortcut-by-CONTROL-while-clicking works for any menu, and its so
          great.

          (Recalling from my memory, so please be forgiving)

           
          • Joseph Reagle

            Joseph Reagle - 2017-08-29

            I don't have a "paste-as-text" submenu. I have a "paste as", but then I get a pop-up and still have to type {tab,tab,tab,tab,space,enter} to get paste-as-text...?

             
          • Joseph Reagle

            Joseph Reagle - 2017-08-29

            I don't have a "paste-as-text" submenu. I have a "paste as", but then I get a pop-up and still have to type {tab,tab,tab,tab,space,enter} to get paste-as-text...?

             
    • Joseph Reagle

      Joseph Reagle - 2017-08-26

      I'm not using a popup. I copy, say, three paragraphs from a web page and hit ctrl+v at a node. I'd get three formatted children nodes, but I want three plaintext nodes.

       
  • Alexandre

    Alexandre - 2017-08-30

    You could use this autohotkey snippet to paste without formatting:

    ^+v::
        ; Convert any copied files, HTML, or other formatted  to plain text
        Clipboard = %Clipboard%
    
        ; Paste by pressing Ctrl+V
        SendInput, ^v
    return
    

    And to copy without formatting:

      ; Copy without formatting
                ^+c::
                    ; Convert any copied files, HTML, or other formatted text to plain text
                    Clipboard = %Clipboard%
                return
    

    Alexandre

     

    Last edit: Alexandre 2017-08-30
  • Joseph Reagle

    Joseph Reagle - 2017-08-30

    Alexandre, thanks, I might have to resort to something like that. I think a nicer fix would be if there were seperate past as option in the menu bar -- which could have their own command shortcuts -- rather than the popup.

     
    • zipizap

      zipizap - 2017-08-30

      I was really convinced there was such option.

      Another workaround could be to create a new node (INSERT) and hit paste
      (CTRL-V) in inline-editor

       
  • fpay

    fpay - 2017-08-30

    If you use Windows a tool like http://www.stevemiller.net/puretext/ is very helpful. Another option are tools like http://ditto-cp.sourceforge.net/.

     
  • Dimitry Polivaev

    Try Tools -> Preferences -> Behaviour -> Confirmation -> Use rich text for pasted nodes -> No

     
    • Joseph Reagle

      Joseph Reagle - 2017-08-31

      Dimitry, thanks, that seems to be working! There's so many options that even after a Web search I sometimes miss things.

       
  • Alexandre

    Alexandre - 2017-08-31

    The only thing then with this option is that it is not possible to paste with format once set to 'No'.
    If you use the autohotkey snippet you have both + you can copy/paste without format in other applications.