Code Monkey home page Code Monkey logo

ab-menu's Introduction

AB Menu

A Windows context menu shell extension that proxies user configured commands accepting exactly two launch arguments (thus "AB" in the name) to any application.

Among the examples of such applications are comparison tools, file copy tools and text editors for side-by-side editing.

If the application does not come with its own shell extension, instead of having to manually type in terminal or create shortcut of it, user of this shell extension can create template of launch command with the two argument placeholders, select the item(s) in Windows Explorer and launch.

There are multiple ways to select items:

  • When exactly two items (both files or both folders but not mixed) are selected, the shell extension will display the value of each argument placeholder and launch app.
  • When only one item is selected for the first time, the shell extension remembers its path.
  • When a different object is selected afterwards, the shell extension either launch app with the two arguments, or replaces the previously remembered first item, depending on user choice.

Again, the two items must be both files or both folders but not mixed.

Install

  • Unpack the archive.
  • Run install.bat to register the shell extension.
  • config.reg has some examples of user configurable commands. You can edit it and import into registry. The first selected item replaces the %FIRST% placeholder, while the second one replaces %SECOND%. \ in the path needs to be escaped as \\.

Uninstall

  • Run uninstall.bat to de-register the shell extension.
  • Open Registry Editor and remove HKEY_CURRENT_USER\Software\AB Menu.

Build

A build script build.ps1 is included to automate the process. It obtains dependencies and starts compilation. Before running build.ps1, make sure you have the latest Visual Studio installed. The script will automatically assume the Visual Studio developer environment and check out dependencies. To run the script, pass the target configuration and platform as arguments, e.g. build.ps1 Debug x64 or build.ps1 Release x86.

Screenshots

When two items are selected:

Two selected

When the first item is selected:

Select First

After the first item is confirmed, when the second item is selected:

Select Second

ab-menu's People

Contributors

crendking avatar

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.