Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

[Feature] Add Windows Explorer context menu to file tabs

#18

Add Windows Explorer context menu to file tabs, in the same way the Light Explorer plugin has it when you right click on a file.

Reported by Jocelyn Legault · November 24th, 2009 @ 11:58 PM

State: proposed
Milestone: v2.0.0
Assigned to: Jocelyn Legault Jocelyn Legault

Activity

  1. Jocelyn Legault
    Jocelyn Legault
    • State changed from open to needs_ack

    (from [caadb41966b5bf529663f5ff3521c543af50629c]) Explorer Context menu: add contextual menus on tabs.

    • Explorer context menu added to tab context menus.
    • Code mainly leveraged from NppLightExplorer.
    • Can be enabled / disabled through the preference panel.

    Additions to the code from NppLightExplorer:

    • Make sure that no separators show up at the top or the bottom of the Explorer Menu.
    • List of unwanted menu items is larger. Some can be done by ID, others can't and are done textually.
    • Comparisons with unwanted menu items is done without the '&'

    Potential feature addition:

    • User could specify more items he does not want to see there in the Preference panel.

    [#18 state:needs_ack]

    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/joce/npp-community/commit/caadb41966b5bf529663f5f...

    November 25th, 2009 @ 08:22 PM

  2. Jocelyn Legault
    Jocelyn Legault
    • Assigned user changed from Jocelyn Legault to npp-community

    November 25th, 2009 @ 09:05 PM

  3. Thell Fowler
    Thell Fowler
    • Tag cleared.
    • Assigned user changed from npp-community to Jocelyn Legault

    Why are ExplorerContentMenu and explorerMenu being used instead of ExplorerContextMenu and explorerContextMenu?

    Thell

    November 28th, 2009 @ 08:09 PM

  4. Thell Fowler
    Thell Fowler

    Joce,

    After doing a merge of this and then building the debug build using vc8 I was able to get the explorer menu to show up just fine, but then I clicked on the Setting|Preferences menu and started receiving 'Unhandled Default Case' messages (which have garbage characters in the message box title), so I attached the debugger thinking that would cause a break. It didn't. After setting a break point on the only line in the source container 'Unhandled' I still found myself unable to have the BP hit. Several messages later the Preferences dialog finally came up.

    I'll do some more testing, but thought you'd want to know.

    Thell

    November 29th, 2009 @ 03:31 PM

  5. Thell Fowler
    Thell Fowler

    See comment for ticket #8 regarding DEBUG vs _DEBUG

    That is the culprit of the msgs I witnessed.

    November 29th, 2009 @ 04:51 PM

  6. Jocelyn Legault
    Jocelyn Legault

    Why are ExplorerContentMenu and explorerMenu being used instead of ExplorerContextMenu and explorerContextMenu?

    Ooops. Oversight for my part. Will be fixing that.

    December 2nd, 2009 @ 10:29 PM

  7. Jocelyn Legault
    Jocelyn Legault
    • Assigned user changed from Jocelyn Legault to npp-community

    (from [0b71c5e77e12558136fcac7ef0f5b400dd154c1b]) Explorer menu variables: rename to clearer names.

    • Trivial variable name changes to better reflect the nature of some variables used in the context of the ExplorerContextMenu.

    [#18 state:needs_ack responsible:npp-community]

    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/joce/npp-community/commit/0b71c5e77e12558136fcac7...

    December 3rd, 2009 @ 05:36 AM

  8. Jocelyn Legault
  9. Thell Fowler
    Thell Fowler

    ExporerConextMenu class is still being referred to as ExplorerContentMenu...

    Also, in ExplorerContentMenu::CleanUpMenu() you clean-up the Send To menu item. What's the reasoning for this?

    Thell

    December 4th, 2009 @ 03:18 PM

  10. Jocelyn Legault
    Jocelyn Legault

    Because it does not come up looking right. It only shows an empty submenu.
    I guess we could try to find out why and fix it.

    December 4th, 2009 @ 06:12 PM

  11. Thell Fowler
    Thell Fowler
    • Assigned user changed from npp-community to Jocelyn Legault

    Because it does not come up looking right. It only shows an empty submenu. I guess we could try to find out why and fix it.

    Nah. I was mostly just curious.

    The class name still needs to be fixed from ExplorerContentMenu to ExplorerContextMenu though.

    December 6th, 2009 @ 06:19 PM

  12. Thell Fowler
    Thell Fowler
    • State changed from needs_ack to acked

    Joce,

    Perhaps there is something different between win7 and XP in regards to sub-menu items. I decided to do a change of ExplorerContentMenu to ExplorerContextMenu so this could get on pu and when I loaded and opened N++ this is what I saw:

    1) A working Send-To submenu::

    2) A non-working Share-With submenu::

    Even though I'm sure you will want to do more fine tuning on this, I'm going ahead with adding it onto pu as LH-18v3 since I think it is a feature others will want to have easy access to.

    I've also pushed this as a stand-alone branch for you to just grab @:

    http://github.com/almostautomated/npp-community/tree/jl/LH-18v3/con...

    Thell

    December 6th, 2009 @ 09:20 PM

  13. npp-community
    npp-community
    • State changed from acked to needs_ack

    (from [f5fa068f552d0f4a364431e1cf3f1eb4d817b0bc]) Explorer Context menu: add contextual menus on tabs.

    • Explorer context menu added to tab context menus.
    • Code mainly leveraged from NppLightExplorer.
    • Can be enabled / disabled through the preference panel.

    Additions to the code from NppLightExplorer:
    - Make sure that no separators show up at the top or the bottom of the Explorer Menu. - List of unwanted menu items is larger. Some can be done by ID, others can't and are done textually. - Comparisons with unwanted menu items is done without the '&'

    Potential feature addition:
    - User could specify more items he does not want to see there in the Preference panel.

    [#18 state:needs_ack]

    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/npp-community/npp-community/commit/f5fa068f552d0f...

    December 7th, 2009 @ 06:14 AM

  14. Thell Fowler
    Thell Fowler
    • State changed from needs_ack to proposed

    (from [e857535280887c2555689b334a8efb183f61d69e]) Merge branch 'jl/LH-18v3/context-menu-on-tabs' into pu

    • jl/LH-18v3/context-menu-on-tabs: Explorer menu variables: rename to clearer names. Explorer Context menu: add contextual menus on tabs.

    Conflicts:

    PowerEditor/src/Notepad_plus.cpp
    PowerEditor/visual.net/notepadPlus.8.vcproj
    PowerEditor/visual.net/notepadPlus.9.vcproj
    

    [#18 state:proposed]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/npp-community/npp-community/commit/e857535280887c...

    December 7th, 2009 @ 06:14 AM

  15. npp-community
    npp-community
    • State changed from proposed to needs_ack
    • Assigned user changed from Jocelyn Legault to npp-community

    (from [5c3d735bd3ad5587cbede394c2f31d7988f42d17]) Explorer menu variables: rename to clearer names.

    • Trivial variable name changes to better reflect the nature of some variables used in the context of the ExplorerContextMenu.

    [#18 state:needs_ack responsible:npp-community]

    Acked-by: Thell Fowler git@tbfowler.name
    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/npp-community/npp-community/commit/5c3d735bd3ad55...

    December 7th, 2009 @ 06:14 AM

  16. Thell Fowler
    Thell Fowler
    • State changed from needs_ack to proposed

    The last two automatic state changes from Github where applied in the wrong order... state is proposed and it is on pu.

    December 7th, 2009 @ 06:23 AM

  17. Thell Fowler
    Thell Fowler

    (from [7ed450c6cb650b97ce2d323c11f89b0da152bd69]) Merge branch 'jl/LH-18v3/context-menu-on-tabs' into pu

    • jl/LH-18v3/context-menu-on-tabs: Explorer menu variables: rename to clearer names. Explorer Context menu: add contextual menus on tabs.

    Conflicts:

    PowerEditor/src/Notepad_plus.cpp
    PowerEditor/visual.net/notepadPlus.9.vcproj
    

    [#18 state:proposed]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/npp-community/npp-community/commit/7ed450c6cb650b...

    December 7th, 2009 @ 11:02 PM

  18. Thell Fowler
    Thell Fowler

    On Windows 7 when using the context menu on a .bat file with PowerCmd loaded an access violation would happen. It looks like the cause is that the info stuct wasn't getting cleared.

    By moving the definition for info and info.cbsize into the for loop in ExplorerContentMenu::CleanUpMenu() so everything is fresh for each iteration resolves this issue.

    December 10th, 2009 @ 10:22 PM

  19. Thell Fowler
    Thell Fowler

    (from [9ed37f1a2f95bfd3cffb17c463acdae6a7f91a0e]) Merge branch 'jl/LH-18v3/context-menu-on-tabs' into pu

    • jl/LH-18v3/context-menu-on-tabs: Explorer menu variables: rename to clearer names. Explorer Context menu: add contextual menus on tabs.

    Conflicts:

    PowerEditor/src/Notepad_plus.cpp
    PowerEditor/src/Parameters.h
    PowerEditor/src/menuCmdID.h
    PowerEditor/visual.net/notepadPlus.8.vcproj
    PowerEditor/visual.net/notepadPlus.9.vcproj
    

    [#18]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/almostautomated/npp-community/commit/9ed37f1a2f95...

    December 22nd, 2009 @ 03:53 PM

  20. Thell Fowler
    Thell Fowler

    (from [07fc1df4a7ce597a598ec07b1c328318f1874661]) Merge branch 'jl/LH-18v3/context-menu-on-tabs' into pu

    • jl/LH-18v3/context-menu-on-tabs: Explorer menu variables: rename to clearer names. Explorer Context menu: add contextual menus on tabs.

    Conflicts:

    PowerEditor/src/Notepad_plus.cpp
    PowerEditor/src/Parameters.h
    PowerEditor/src/menuCmdID.h
    PowerEditor/visual.net/notepadPlus.8.vcproj
    PowerEditor/visual.net/notepadPlus.9.vcproj
    

    [#18]

    Acked-by: Thell Fowler git@tbfowler.name
    http://github.com/npp-community/npp-community/commit/07fc1df4a7ce59...

    January 19th, 2010 @ 06:07 AM

  21. Thell Fowler
    Thell Fowler

    (from [93abcc638815d6a6aa003b9684bb57456472411c]) ExplorerContextMenu.cpp: make cbsize refresh

    • On Windows 7 some extensions (ie: .bat) could cause an access violation during menu cleanup. It looks like the cause is that the info stuct wasn't getting cleared. Moving the definition for info and info.cbsize into the for loop in ExplorerContentMenu::CleanUpMenu() so everything is fresh for each iteration resolves this issue.

    [#18]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/almostautomated/npp-community/commit/93abcc638815...

    February 14th, 2010 @ 08:16 PM

  22. Thell Fowler
    Thell Fowler
    • State changed from proposed to needs_ack

    February 14th, 2010 @ 08:18 PM

  23. Jocelyn Legault
    Jocelyn Legault
    • State changed from needs_ack to acked

    February 16th, 2010 @ 05:58 PM

  24. Thell Fowler
    Thell Fowler
    • State changed from acked to proposed

    February 20th, 2010 @ 02:57 AM

  25. Thell Fowler
    Thell Fowler

    (from [9ea329862f8024ce153660e00bd6b98239f81923]) Merge branch 'jl/LH-18v4/context-menu-on-tabs' into pu

    • jl/LH-18v4/context-menu-on-tabs: ExplorerContextMenu.cpp: make cbsize refresh Explorer menu variables: rename to clearer names. Explorer Context menu: add contextual menus on tabs.

    Conflicts:

    PowerEditor/src/Notepad_plus.cpp
    PowerEditor/src/Parameters.h
    PowerEditor/src/menuCmdID.h
    PowerEditor/visual.net/notepadPlus.8.vcproj
    PowerEditor/visual.net/notepadPlus.9.vcproj
    

    [#18]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/npp-community/npp-community/commit/9ea329862f8024...

    February 27th, 2010 @ 05:21 PM

  26. Jocelyn Legault
    Jocelyn Legault
    • State changed from proposed to needs_ack
    • Milestone order changed from 0 to 0

    (from [d250249234be51b7366e30deb72e76d89d599e91]) Explorer menu variables: rename to clearer names.

    • Trivial variable name changes to better reflect the nature of some variables used in the context of the ExplorerContextMenu.

    [#18 state:needs_ack responsible:npp-community]

    Acked-by: Thell Fowler git@tbfowler.name
    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/joce/npp-community/commit/d250249234be51b7366e30d...

    October 31st, 2010 @ 05:21 PM

  27. Jocelyn Legault
    Jocelyn Legault

    (from [5fa8eff3704c282d8bbb67b20b71aa1db4bd513e]) Fix the tab options GUI items alignement

    Vertical alignment was off and fixed.

    [#18]

    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/joce/npp-community/commit/5fa8eff3704c282d8bbb67b...

    October 31st, 2010 @ 05:21 PM

  28. Thell Fowler
    Thell Fowler

    (from [f9ac3edfd0aa590145597b1a42516f32f5339eb0]) ExplorerContextMenu.cpp: make cbsize refresh

    • On Windows 7 some extensions (ie: .bat) could cause an access violation during menu cleanup. It looks like the cause is that the info stuct wasn't getting cleared. Moving the definition for info and info.cbsize into the for loop in ExplorerContentMenu::CleanUpMenu() so everything is fresh for each iteration resolves this issue.

    [#18]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/joce/npp-community/commit/f9ac3edfd0aa590145597b1...

    October 31st, 2010 @ 05:21 PM

  29. Jocelyn Legault
    Jocelyn Legault

    (from [1dc68dde70c79d64da7391428307312801972895]) Explorer Context menu: add contextual menus on tabs.

    • Explorer context menu added to tab context menus.
    • Code mainly leveraged from NppLightExplorer.
    • Can be enabled / disabled through the preference panel.

    Additions to the code from NppLightExplorer:
    - Make sure that no separators show up at the top or the bottom of the Explorer Menu. - List of unwanted menu items is larger. Some can be done by ID, others can't and are done textually. - Comparisons with unwanted menu items is done without the '&'

    Potential feature addition:
    - User could specify more items he does not want to see there in the Preference panel.

    [#18 state:needs_ack]

    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/joce/npp-community/commit/1dc68dde70c79d64da73914...

    October 31st, 2010 @ 05:21 PM

  30. Thell Fowler
    Thell Fowler
    • Assigned user changed from npp-community to Jocelyn Legault

    I checked out and built your topic branch and this is what I get for a context menu on a tab. Will look into this soon.


    no submenu

    October 31st, 2010 @ 08:52 PM

  31. Thell Fowler
    Thell Fowler
    • State changed from needs_ack to proposed

    Figured out what was going on there. When a tab has a file that has no path the Explorer Context menu has no path to latch onto so no context menu is build for explorer! Opened an existing file and it worked great!

    I would put this on next as a candidate, but as you requested 'proposed' I'll put it there instead.

    October 31st, 2010 @ 11:13 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.