pacmax beta

Alfred Pac by logicxd on GitHub

vscodediff

Show the diff of the last 2 items in clipboard history using VSCode.

From their README

Screen Shot 2023-01-02 at 8 40 46 PM

AlfredVSCodeDiff

![Downloads](https://img.shields.io/github/downloads/logicxd/alfred-vscodediff/total?color=green&label=Downloads)

![License MIT](https://img.shields.io/badge/license-MIT-green)

![PACKAL](https://img.shields.io/badge/PACKAL--x.svg?style=social&color=purple)

New

Show the diff of the last 2 items in clipboard history using VSCode. This relies on Alfred workflows to automate the process.

How To Use

  1. Setup Visual Studio Code for terminal.
    1. Open Visual Studio Code
    2. CMD + SHIFT + P (Opens Command Palette)
    3. Search and run "Install 'code' command in PATH"
  2. Download the latest VSCodeDiff.alfredworkflow file from the release page. Then just double click it to let Alfred install the workflow.
  3. Enable Clipboard History in Alfred

Now you have VSCodeDiff enabled!

How It Works

Overview

VSCode provides a way to compares files via terminal with the command code --diff . So we create 2 temporary files inside Alfred's cache and use those to compare.

Contributions

Not sure what else it can be done but you're welcome to contribute to add onto this workflow! Just create a pull request with a detailed description of your changes.

Latest release

  • 1.3.33 years ago, 3.0 KBDownload

    Changes /usr/local/bin/code to just code to help support both Intel and Apple Silicon, which may be installed in a different location.

7 earlier releases
  • 1.3.23 years ago, 3.0 KBDownload

    From https://www.alfredforum.com/topic/19561-vscodediff/#comment-101794

    There’s another one you can make in that vein: Instead of three Keyword Inputs, have a single one. In the Workflow’s Configuration, add another text field for the keyword and use the variable as the value in the Kewyord Input. The documentation explains how that’s done. Here’s the workflow with the changes (I’d submit a PR, but the contents aren’t in the GitHub repo). I’ve also made made a small tweak to call the current configuration “VSCode CLI” and quoted the vscode variable (otherwise spaces in the path would trip up your code).

  • 1.3.1-beta3 years ago, 3.1 KBDownload

    Prep in order to submit Workflow to Alfred.

    Also uses Workflow Configuration to allow user to set the path of code that points to Visual Studio Code executable

  • 1.2.04 years ago, 3.0 KBDownload
  • 1.1.04 years ago, 2.9 KBDownload

    New keyword diff for performing diff with VSCodeDiff

  • 1.0.04 years ago, 2.9 KBDownload

    Marking 0.1.1 as 1.0.0 since this is pretty stable

  • 0.1.14 years ago, 2.9 KBDownload

    Also updated some helper texts

  • 0.1.04 years ago, 1.7 KBDownload
    • Supports comparison between the last 2 items in the clipboard history and opens diff in VSCode