Giter Site home page Giter Site logo

kotlin-alfred-workflow-template's Introduction

kotlin-alfred-workflow-template

A template for creating Alfred workflows with KotlinJS

Actually useful workflow I've built using this: https://github.com/Stvad/FuzzyDate

How to use the template:

  1. Clone this repository

  2. Build it via ./gradlew build

  3. Add symlink from Alfred workflow directory to the workflow_resources directory

    • You can find out the Alfred workflow directory by righ-clicking any of the workflows you have and choosing Open in Finder/Terminal

  4. At this point you should have a fully functional workflow that you can invoke via this keyword. It'd append Is Awesome to your input and would allow you to copy the result to clipboard or paste it into the frontmost application

  5. Now you can edit the workflow settings/details directly in Alfred

  6. The core workflow logic is located in the example_workflow.kt file. Change it to build your own workflow.

    Other points of interest:

    • AlfredResult data class that represents an one item of results to be returned to Alfred
    • This template is using alfy library to abstract the details of communicating with Alfred. And to simplify publishing resulting workflow to NPM.

Publishing workflow to NPM

  1. Create and log into npm account
  2. Give the workflow a different name ๐Ÿ˜‰
  3. Build it
  4. Go to the build/js/packages/<package name> and run npm publish

This workflow in NPM

npm install -g kotlin-alfred-workflow-template

kotlin-alfred-workflow-template's People

Contributors

stvad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.