Coder Social home page Coder Social logo

Comments (6)

d0vgan avatar d0vgan commented on June 8, 2024 1

What I did was the following:

  1. If a file is present in the Secondary View, and the Secondary View is active, the double-click activates the file in the Secondary View.
  2. If a file is present only in the Secondary View, and the Primary View is active, the double-click activates the file in the Secondary View (because there's no such file in the Primary View). This corresponds to the default behavior of Notepad++.
  3. If a file is not present neither in the Primary nor in the Secondary View, the file is opened in the Primary View. This is the default behavior of Notepad++.

from nppexec.

pidgeon777 avatar pidgeon777 commented on June 8, 2024

In the meanwhile another temporary option could be this one: when browsing for errors in the NppExec console, the code navigation should occur in the focused view.

At the moment the behaviour is as follows:

  1. I activate view A.
  2. I execute a NppExec command.
  3. I activate view B.
  4. I navigate through NppExec console errors.
  5. View A is updated pointing to the error's line.

It would be nice to add an option so that the currently active view gets updated instead, and not the one on which the NppExec command was executed at first.

from nppexec.

d0vgan avatar d0vgan commented on June 8, 2024

Please try the latest sources from
https://github.com/d0vgan/nppexec/tree/develop

from nppexec.

pidgeon777 avatar pidgeon777 commented on June 8, 2024

Hello, which one did you implement among the suggestions I reported above?

Anyway, I'm encountering some issues while testing your modification. My first setup is as follows:

  • ConsoleA active.
  • ShortcutA to navigate ConsoleA errors.
  • Only one view active (the primary one).

I activate ShortcutA, and error navigation occurs in the only active view. Should I expect the secondary view to open instead (my first post)?

The second test setup is as follows:

  • ConsoleA active.
  • ConsoleB active.
  • ShortcutA to navigate ConsoleA errors.
  • ShortcutB to navigate ConsoleB errors.
  • Primary and secondary views active.
  1. I execute a ConsoleA command with the primary view active.
  2. I activate focus on the secondary view.
  3. I execute ShortcutA.
  4. Error navigation occurs on the primary view.

Should I expect error navigation to occur on the secondary view (which was the active one), according to the suggestion in my second post?

Thanks again.

from nppexec.

pidgeon777 avatar pidgeon777 commented on June 8, 2024

I forgot one detail, during the tests the documents that may be opened through the error navigation, were already all loaded in the Notepad++ session.

So, could this simply mean that for each item on the error list of the console, the view hosting the already opened document was automatically displayed? Which of course could be the primary or secondary view...

from nppexec.

pidgeon777 avatar pidgeon777 commented on June 8, 2024

Ok thanks for the explanation, so I wonder what was the previous behaviour of your plugin in the three situations you listed.

Also, I would like to ask if with Notepad++ there is the chance to display the same file on both views.

from nppexec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.