#alfred-workflow

alfred

A library for writing Alfred workflows. http://www.alfredapp.com

21 releases (11 stable)

Uses old Rust 2015

4.0.2 Aug 27, 2019
4.0.1 Nov 13, 2017
4.0.0 Jul 29, 2017
3.0.3 Jul 15, 2017
0.0.1 Nov 20, 2014

#166 in macOS and iOS APIs

Download history 79/week @ 2024-07-22 70/week @ 2024-07-29 63/week @ 2024-08-05 79/week @ 2024-08-12 64/week @ 2024-08-19 81/week @ 2024-08-26 34/week @ 2024-09-02 28/week @ 2024-09-09 30/week @ 2024-09-16 147/week @ 2024-09-23 43/week @ 2024-09-30 48/week @ 2024-10-14 21/week @ 2024-10-21 22/week @ 2024-10-28 52/week @ 2024-11-04

143 downloads per month
Used in 11 crates

MIT/Apache

68KB
1K SLoC

alfred-rs

Build Status

Rust library to help with creating Alfred Workflows.

API Documentation

Installation

Add the following to your Cargo.toml file:

[dependencies]

alfred = "4.0"

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Version History

4.0.1

  • Make Builder.into_json public.
  • Make Item.to_json public, along with to_json methods on its helper types.

4.0.0

  • Add support for per-modifier icons.
  • Add support for outputting workflow variables.
  • Add support for outputting per-item workflow variables.
  • Add support for outputting per-modifier workflow variables.
  • Derive a few more traits on the types provided by this crate.

3.0.3

Add 2 more functions for reading workflow environment variables.

3.0.2

Update documentation links for crates.io.

3.0.1

Update serde_json to 1.0.

3.0

Switch from rustc-serialize to serde_json for our JSON support.

2.0.1

Add new module alfred::env for accessing the Alfred workflow environment variables.

2.0.0

Moved XML output into its own module alfred::xml and introduced a new module alfred::json for the new Alfred 3 JSON format.

Updated Item and ItemBuilder with the extended modifier functionality and support for the QuickLook URL.

1.0.1

Dual-licensed under MIT and APACHE.

1.0.0

Rust 1.0 is out!

0.3.1

Remove #[unsafe_destructor], which no longer exists in the latest nightlies.

0.3.0

Switch from IntoCow<'a, str> to Into<Cow<'a, str>>. This is technically a breaking change, but it is unlikely to affect anyone.

0.2.2

Compatibility with the latest Rust nightly.

0.2.1

Compatibility with the latest Rust nightly.

0.2

Switch from std::old_io to std::io.

0.1.1

Compatibility with the Rust nightly for 2015-02-21.

0.1

Compatibility with the Rust 1.0 Alpha release.

Dependencies

~0.5–1MB
~20K SLoC