Menu

What's new in LocationNavigate ?

DV
2021-04-18
2021-04-20
  • DV

    DV - 2021-04-18

    There are a few new versions of LocationNavigate released recently.
    It is not clear what was changed there.
    Please update the "What's new" section or add "changelog.txt" to the archive with the .dll file.

     
  • Austin Young

    Austin Young - 2021-04-19

    I have added News section

     
  • DV

    DV - 2021-04-19

    Thank you!

     
  • DV

    DV - 2021-04-19

    By the way, I remember LocationNavigate 0.4.7.7 could hang or crash while some Notepad++ recorded macro was running from the beginning to the end of a large file.
    I could not reproduce such problem with LocationNavigate 0.4.7.9, so looks like something was done with regards to Notepad++'s macros as well?
    For example, here is how XBrackets Lite deals with macros:

    if ( uMsg == WM_COMMAND )
        {
            const WORD id = LOWORD(wParam);
            switch ( id )
            {
                case IDM_MACRO_STARTRECORDINGMACRO:
                    thePlugin.OnNppMacro(MACRO_START);
                    break;
    
                case IDM_MACRO_STOPRECORDINGMACRO:
                    thePlugin.OnNppMacro(MACRO_STOP);
                    break;
    
                case IDC_EDIT_TOGGLEMACRORECORDING:
                    thePlugin.OnNppMacro(MACRO_TOGGLE);
                    break;
    
                case IDM_MACRO_PLAYBACKRECORDEDMACRO:
                    {
                        thePlugin.OnNppMacro(MACRO_START);
                        LRESULT lResult = nppCallWndProc(hWnd, uMsg, wParam, lParam);
                        thePlugin.OnNppMacro(MACRO_STOP);
                        return lResult;
                    }
                    break;
    
                default:
                    if ( (id >= ID_MACRO) && (id < ID_MACRO_LIMIT) )
                    {
                        thePlugin.OnNppMacro(MACRO_START);
                        LRESULT lResult = nppCallWndProc(hWnd, uMsg, wParam, lParam);
                        thePlugin.OnNppMacro(MACRO_STOP);
                        return lResult;
                    }
                    break;
            }
        }  
    

    The method OnNppMacro basically disables and re-enables the plugin to not intervene in what the macro is doing.

     
  • Austin Young

    Austin Young - 2021-04-20

    Thanks for MACRO reference, the locationNav plugin is based on scintilla msg( record position of cursor and analysis) .
    Maybe the NPP and scintilla have been optimized. If can reproduce an issue of crash , I will disable plugin temporary when Macro run.

     
  • Methew Eskier

    Methew Eskier - 2021-10-05
    Post awaiting moderation.

Log in to post a comment.