windows-explorer

How to add a “open git-bash here…” context menu to the windows explorer?

一个人想着一个人 提交于 2019-11-26 11:55:00
问题 How to add a context (aka right click) menu to the windows explorer that, when clicked, opens the git-bash console in the current explorer folder? 回答1: I had a similar issue and I did this. Step 1 : Type "regedit" in start menu Step 2 : Run the registry editor Step 3 : Navigate to HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell Step 4 : Right-click on "shell" and choose New > Key. name the Key "Bash" Step 5 : Modify the value and set it to "open in Bash" This is the text that

Drag and drop onto Python script in Windows Explorer

◇◆丶佛笑我妖孽 提交于 2019-11-26 10:15:21
问题 I would like to drag and drop my data file onto a Python script and have it process the file and generate output. The Python script accepts the name of the data file as a command-line parameter, but Windows Explorer doesn\'t allow the script to be a drop target. Is there some kind of configuration that needs to be done somewhere for this work? 回答1: Sure. From a mindless technology article called "Make Python Scripts Droppable in Windows", you can add a drop handler by adding a registry key:

How can I add a context menu to the Windows Explorer for a Java application?

筅森魡賤 提交于 2019-11-26 09:34:38
问题 How would one go about adding a submenu item to the windows explorer context menu (like for example 7-Zip does) for a Java application? 回答1: I am aware of two ways to do it. The fancy way is to write a windows shell extension, which is how powerarchiver, winzip etc do it I believe (this involves running code to determine what the context menu items will be dependent on the file chosen). The simple way, for simple functionality, is you can add an entry in the registry : HKEY_CLASSES_ROOT\<file