Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/logicxd/alfred-vscodediff
Show the diff of the last 2 items in clipboard history using VSCode.
https://github.com/logicxd/alfred-vscodediff
alfred-workflow alfred-workflows alfred4-workflow diff vscode
Last synced: about 1 month ago
JSON representation
Show the diff of the last 2 items in clipboard history using VSCode.
- Host: GitHub
- URL: https://github.com/logicxd/alfred-vscodediff
- Owner: logicxd
- License: mit
- Created: 2022-05-02T07:32:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-18T08:15:54.000Z (over 1 year ago)
- Last Synced: 2024-08-02T07:09:36.078Z (4 months ago)
- Topics: alfred-workflow, alfred-workflows, alfred4-workflow, diff, vscode
- Homepage: https://alfred.app/workflows/logicxd/vscodediff/
- Size: 41 KB
- Stars: 25
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AlfredVSCodeDiff
![New](https://user-images.githubusercontent.com/12219300/166203149-ac18d56b-2262-4bda-93d9-f3647a616d54.gif)
Show the diff of the last 2 items in clipboard history using VSCode. This relies on [Alfred](https://www.alfredapp.com/) 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](https://github.com/logicxd/alfred-vscodediff/releases). Then just double click it to let Alfred install the workflow.
3. Enable Clipboard History in AlfredNow you have VSCodeDiff enabled!
# How It Works
![Overview](https://user-images.githubusercontent.com/12219300/166205888-6dac92fa-45b1-423e-a002-e07e024dd871.png)
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.