Menu

reload current document

2005-05-19
2012-11-13
  • Matthew Kershaw

    Matthew Kershaw - 2005-05-19

    i've recently switched from editplus to notepad++ ( i love this tool) ... one feature i used frequently in ep was the "reload document" function. i could reload a document manually -- i didn't have to switch focus away, and then back (this is kludgy). why would i want this? i monitor log files with the tool, and want to refresh the file view with a keystroke or toolbar button.

    i see there's a reopen() function ... would this apply, or is that to re-open all files from recent sessions? is this feature enabled but i just can't find it? help would be appreciated.

    thanks!

     
    • DV

      DV - 2009-06-17

      Also you can create such simple NppExec's script:

      NPP_OPEN $(FULL_CURRENT_PATH)

      then create a menu item for it and assign a shortcut key to this menu item.

       
    • Don HO

      Don HO - 2005-05-24

      I'll consider it.

      Don

       
      • Nausher Ahmed Cholavaram

        Reg: Notepad++ tail plugin

        You can use the Doc Monitor Plugin from NPP to get tail -f behavior

        On the document to follow select
        Plugins -> Document Montior -> Start Montior

        and to stop monitoring do
        Plugins -> Document Montior -> Stop Montior

        Note: Doc monitor is part of the default plugins that ship with Notepad++

         
    • Nobody/Anonymous

      When I have a file updated open in npp, when the focus is on npp I get a dialog saying the file on disk has changed and do I want to reload it.

      I think this may be what you want. I'm on WinXP Pro.

      HTH, Mark

       
    • Nobody/Anonymous

      yeah, but that'd require switching focus

       
    • Nobody/Anonymous

      This reload current document feature with shortcut is very useful eg. when reading log-files.

      I can't find any shortcut in Notepad++ for this?

       
      • Alexander Henket

        Has any option been considered to add to Notepad++ for "Reload from disk"? When doing tail -f type of things on a log file, switching twice with alt+tab just is not good enough

         
        • Don HO

          Don HO - 2007-02-09

          Use the auto-updater plugin to reload your documents automatically while they change.
          http://notepad-plus.sourceforge.net/uk/download.php

          Don

           
          • Johannes Häfner

            To reload the current document manually you can use my reload button plugin.
            You can download it from here: http://www.jhaefner.de/Download/ReloadButton.zip

            You can set a shortcut (like F5, attention: also delete this shortcut from the default function, too) for that function with NPPs shortcut manager.

            Wkr,
            JOE

             
    • Nobody/Anonymous

      I really miss some form of 'Refresh current document(s)' too.

      The dialog to tell you the underlying file has changed is OK but doesn't seem to appear as often as it should. I can't see any way of manually triggering the check.

      When the docs do refresh it resets the cursor to the start of the doc as well which is really annoying when for just about every time I've needed to do this the only change is more lines added on the end.

      Maybe it could check a few tens of characters either side of the current cursor pos in the new file and if they are substantially unchanged, don't reset the cursor?

       
    • Nobody/Anonymous

      BTW - when the reload dialog does come up and you reload the document, after the dialog disappears it acts as though you are in the middle of a click-drag to select some text.

       
    • Nobody/Anonymous

      yea, i experience that too.

       
    • cchris

      cchris - 2009-06-17

      @J. Häffner:

      Could you provide some version information, is ANSI or Unicode and a 3-5 line description of your plugin, for inclusion in http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Central ? I couldn't find a page listing other stuff you might have, looks like the /Downloads folder is forbidden.

      CChris