Namespace shell extension and "New" (ShellNew) menu entires - windows

I'm writing NSE and I can't get the answers to the following questions:
Is there an easy way to show the standard "New" context submenu with all the same entires as for the normal file system folder? Or I have to add and process them manually?
How to show/use the system "New folder" button in the Explorer toolbar? Or again - I have to implement it myself?
I would like to use as much standard features as possible to have my NSE looks like the standard FS folder regardless of the Winsows version...

Related

How to implement an efficient folder search in a Windows Explorer extension

I'd like to implement a Windows Explorer extension that works like this:
The extension quietly records all folders the user visits in Windows Explorer.
A shortcut command like Ctrl+F3 activates the extension. The user can then type some parts of a folder name or path, and the extension shows the recently visited folders that most closely match the search query. The user can then select a folder, which lets Windows Explorer navigate there.
An important point: I don't want to just extend the standard Windows Explorer. I need to extend the Open File Dialog as well, i.e. these windows:
The Open File Dialog is something that runs inside other applications, so the task might be a bit more difficult. However, I'm pretty sure that it is possible. For example, Shell Namespace Extensions or Context Menu items are visible in both the standard Windows Explorer and the file dialogs in other applications. That's why I'm pretty sure there must be a way to implement such an extension.
What's the best way to implement it?
Edit: By the way, if someone knows of such an extension, I'd be very happy to know.

Is the "Open Recent" menu functionality available to me?

In AppKit, the "Open Recent" menu has a lot of useful functionality, like the ability to display relevant folders for context, but only when needed.
Is there a way to get access to this functionality myself? I want to display a list of folders in a window, and I'd like to include paths for identically named folders, using the same algorithm as Apple.
Is there any way to do that, without implementing it myself from scratch?
See - [NSDocumentController recent​Document​URLs] https://developer.apple.com/reference/appkit/nsdocumentcontroller/1514976-recentdocumenturls

Notepad++ replace "Save" Common File Dialog Box

In Notepad++ (Windows 7), is there a way to disable the Common File Dialog Box when saving a file? I would like to replace it with the standard Save File Dialog Box.
Notepad++ uses this dialog box for saving:
I would like to use the following dialog box:
Adding shortcuts to "My Place" bar is not an option as I don't plan to use the Common File Dialog Box at all.
The feature was implemented on 2017-01-30.
Settings > Preferences... > Default Directory > Enable "Use new style save dialog (without file extension feature)".
#Tamarindo94 found where the setting was a couple days ago:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/176#issuecomment-299876885
From the sounds of it this feature is on the books for the next release of Notepad++ once the support for XP goes away, details here: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/176
I noticed in Notepad++ they still don't have Favorites but they do have Libraries. My work around was to use Libraries instead of Favorites. You can actually add a Library that points to any folder you want. In Windows File Explorer on Windows 8, I had to go to Folder Options and check to turn on "Libraries" so that I could see them. Then I was able to right click and create Libraries pointed to the folders I wanted.

How to add item to windows explorer content menu in delphi?

I would like to create menu item in windows explorer content menu (for all file types) which after click will open my application and pass the selected file name to it. Is there any tutorial for this ? I know there is ShellPlus component available but it's a bit outdated.
Registry
This method is easy since it comes down to adding some registry keys. The downside is that you can't put any logic in it. You can read about it here and here a simple example in Delphi. You get a bit more control if you are using DDE to execute the menu items. See here for a Delphi example.
Shell Extension
This method is a bit more work, but you can completely control the context menu from code. You would have to write a DLL, implement IContextMenu (or others) and register the dll with Windows Explorer. You can read about it here. You already mentioned Shell+.
Delphi includes a demo project for shell extensions. Look in the Demos\ActiveX\ShellExt folder.
This is possible independendly from the programming language by setting up shortcut menu handlers for the desired filetype(s) in the registry. There you can call your application with the correct path, the correct options and the right file-placeholders.
See the MSDN article on Creating Shortcut Menu Handlers for more detailled information.

Is it possible to launch an external image editor from Textmate?

Is it possible to launch an external image editor from the TextMate project drawer? I suppose the same concept would apply to launching any external editor from TextMate. Right now, if I right-click on the image file, I only have an option to open in Preview or Finder.
Thanks!
Yes. There is an (official) TM Bundle that does what you want--it's called "ImageBrowser." I installed recently and i have used it only once. It seems to work fine for the purpose you mentioned in your Question; in particular, it finds images in your current project and displays them in an image browser that runs inside TextMate.
You can get it from the Macromates SVN Repository.
TextMate respects the Finder's (well, LauchService's) "Open with" choice for each file. Whichever program would open when you double-click the file in Finder will appear in TextMate's contextual menu. Simply change this through the Finder's Get Info window for the file in question to the editor of your choice, and TextMate will respect it. It's dynamically populated, so you don't need to restart TextMate.
As far as I know, there's no method to specify a secondary program beyond the default.
I think no is the answer, but like Matt said, explore the usage of the Services menu.

Resources