Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement fast drag drop support. #502

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

dinhngtu
Copy link
Contributor

Fixes #353 and #371.

Provides fast drag-to-extract support for NanaZip FM.
If the feature is enabled, dragging from the main window creates a directory with the name {<COPYHOOK_GUID>}.<HWND>.
Directories with this name are intercepted by an external copy hook shell extension DragNotifier, which sends back a WM_COPYDATA message containing the destination drop path.
Upon reception of WM_COPYDATA, NanaZip extracts selected files into the destination directory.

Todo list:

  • Decide on a shell extension distribution method for NanaZip Modern.
  • Integrate DragNotifier shell extension into the project.
  • Find a fallback extraction method when shell extension is not present.

Due to many factors being undecided, this PR will remain a draft for now.
Feedback is welcome.

@dinhngtu dinhngtu force-pushed the fastdrag branch 2 times, most recently from 8543115 to 826970c Compare October 20, 2024 15:39
@MouriNaruto
Copy link
Member

MouriNaruto commented Nov 2, 2024

I'm sorry for replying late because I'm busy on other coding things.

For NanaZip.Modern, it may be simpler for integrating the shell extension than the NanaZip.Classic. But I need to refresh the NanaZip.ShellExtension implementation first before I merge this PR.

I prefer the solution without shell extensions because I don't want to make shell extension for NanaZip.Classic because it's designed for portable app scenarios.

Kenji Mouri

@dinhngtu
Copy link
Contributor Author

dinhngtu commented Nov 2, 2024

When trying to integrate copy hook into NanaZip.Modern, I ran into the issue that packaged shell extensions cannot run outside of package due to conditional ACEs (#353 (comment)). That's why at the moment I've kept the extension external instead of building it into NanaZip.ShellExtension.

@Eldenroot
Copy link

when?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inefficient extraction with drag and drop
3 participants