Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Add .html type filter, and update meta info for App Store release
Browse files Browse the repository at this point in the history
  • Loading branch information
hisaac committed Sep 13, 2020
1 parent d3a6ac0 commit 8f89221
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 11 deletions.
41 changes: 41 additions & 0 deletions Assets/Plain Pasta Demonstration.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{\rtf1\ansi\ansicpg1252\cocoartf2513
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 SFProText-Bold;\f1\fnil\fcharset0 SFProText-Regular;\f2\fnil\fcharset0 HelveticaNeue-Bold;
\f3\froman\fcharset0 Times-Roman;\f4\fnil\fcharset0 HelveticaNeue;\f5\fnil\fcharset0 HelveticaNeue-Italic;
}
{\colortbl;\red255\green255\blue255;\red151\green150\blue150;\red191\green49\blue38;}
{\*\expandedcolortbl;;\cssrgb\c65882\c65490\c65490;\cssrgb\c80392\c27451\c19608;}
\margl1440\margr1440\vieww16320\viewh20940\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\f0\b\fs96 \cf0 \ul \ulc0 Copy/Pasted With Plain Pasta\ulnone \
\f1\b0\fs28 \
Plain Pasta\
What?\
\
Plain Pasta is tiny Mac app that strips any styling from text on your clipboard. It sits in your menu bar, and watches your clipboard for any text that arrives there. If there is any styling, it removes it, and puts plaintext back on your clipboard.\
\
Essentially, this makes Paste and Match Style the default behavior when copy/pasting.
\f0\b\fs96 \
\
\ul Copy/Pasted Without Plain Pasta\
\
\pard\pardeftab720\qc\partightenfactor0
\f2\fs64 \cf2 \expnd0\expndtw0\kerning0
\ulnone Plain Pasta\
\pard\pardeftab720\qc\partightenfactor0
{\field{\*\fldinst{HYPERLINK "https://github.com/hisaac/PlainPasta/releases/download/1.1.4/PlainPasta-1.1.4.zip"}}{\fldrslt
\f3\b0\fs32 \cf3 vector-Artboard
\f4
\f3 Created with Sketch.}}
\f4\b0\fs32 \cf2 \
\pard\pardeftab720\partightenfactor0
\cf2 \

\f2\b\fs48 What?\
\f4\b0\fs32 Plain Pasta is tiny Mac app that strips any styling from text on your clipboard. It sits in your menu bar, and watches your clipboard for any text that arrives there. If there is any styling, it removes it, and puts plaintext back on your clipboard.\
Essentially, this makes
\f5\i Paste and Match Style
\f4\i0 the default behavior when copy/pasting.}
Binary file added Assets/app-store-screenshot-large.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/app-store-screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions PlainPasta.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.1.3;
MARKETING_VERSION = 1.1.4;
PRODUCT_BUNDLE_IDENTIFIER = software.level.PlainPasta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -494,7 +494,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.1.3;
MARKETING_VERSION = 1.1.4;
PRODUCT_BUNDLE_IDENTIFIER = software.level.PlainPasta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
1 change: 1 addition & 0 deletions PlainPasta/NSPasteboardItem+Extras.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ extension NSPasteboardItem {

/// All of the types of pasteboard data to filter out when copying pasteboard data
let pasteboardTypeFilterList: [NSPasteboard.PasteboardType] = [
.html,
.rtf,
.rtfd,
NSPasteboard.PasteboardType("public.url-name"),
Expand Down
4 changes: 0 additions & 4 deletions PlainPasta/PasteboardMonitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ class PasteboardMonitor {
deinit {
timer.setEventHandler {}
timer.cancel()

// If the timer is suspended, calling cancel without resuming triggers a crash.
// This is documented here: https://forums.developer.apple.com/thread/15902
timer.resume()
}

/// The current state of the pasteboard monitor
Expand Down
2 changes: 2 additions & 0 deletions PlainPastaTests/PlainPastaTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class PlainPastaTests: XCTestCase {
mockPasteboardItem.setData(Data(), forType: .pdf)

// Pasteboard types Plain Pasta will explicitly filter
mockPasteboardItem.setString("html", forType: .html)
mockPasteboardItem.setString("rtf", forType: .rtf)
mockPasteboardItem.setString("rtfd", forType: .rtfd)
mockPasteboardItem.setString(
Expand Down Expand Up @@ -58,6 +59,7 @@ class PlainPastaTests: XCTestCase {
XCTAssertNotNil(filteredComplexPasteboardItem.data(forType: .pdf))

// Check types that should have been filtered
XCTAssertNil(filteredComplexPasteboardItem.string(forType: .html))
XCTAssertNil(filteredComplexPasteboardItem.string(forType: .rtf))
XCTAssertNil(filteredComplexPasteboardItem.string(forType: .rtfd))
XCTAssertNil(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It sits in your menu bar, and watches your clipboard for text, removes any styli

I made this app because I rarely want styling to be copied to my clipboard. When I copy text, all I want is the text.

Download the most recent version of Plain Pasta from the [Releases page](https://github.com/hisaac/PlainPasta/releases).
Download the most recent version of Plain Pasta from the [Mac App Store](https://apps.apple.com/us/app/plain-pasta/id1467796430).

## Demonstration

Expand Down
16 changes: 16 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.1.4] - 2020-09-12

This is the first version released to the Mac App Store! Going forward, the MAS will be the preferred place to download the app.

https://apps.apple.com/us/app/plain-pasta/id1467796430

### Added

- Adds `.html` to the pasteboard types to filter.
- Adds a test for the `.html` filter.

### Changed

- Links on web page now point to the App Store version.

## [1.1.3] - 2020-09-10

### Fixed
Expand Down Expand Up @@ -65,3 +80,4 @@ Initial release! 🎉
[1.1.1]: https://github.com/hisaac/PlainPasta/compare/1.1.0...1.1.1
[1.1.2]: https://github.com/hisaac/PlainPasta/compare/1.1.1...1.1.2
[1.1.3]: https://github.com/hisaac/PlainPasta/compare/1.1.2...1.1.3
[1.1.4]: https://github.com/hisaac/PlainPasta/compare/1.1.3...1.1.4
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<h1>Plain Pasta</h1>

<figure>
<a href="https://github.com/hisaac/PlainPasta/releases/download/1.1.3/PlainPasta-1.1.3.zip" alt="Download the latest version of Plain Pasta">
<a href="https://apps.apple.com/us/app/plain-pasta/id1467796430" alt="Download the latest version of Plain Pasta">
<svg width="200px" height="200px" viewBox="0 0 1900 1900" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch -->
<title>vector-Artboard</title>
Expand All @@ -129,7 +129,7 @@ <h1>Plain Pasta</h1>
</g>
</svg>
</a>
<figcaption><a href="https://github.com/hisaac/PlainPasta/releases/download/1.1.3/PlainPasta-1.1.3.zip" alt="Download the latest version of Plain Pasta">Download App</a></figcaption>
<figcaption><a href="https://apps.apple.com/us/app/plain-pasta/id1467796430" alt="Download the latest version of Plain Pasta">Download App</a></figcaption>
</figure>
</header>

Expand All @@ -139,7 +139,7 @@ <h1>Plain Pasta</h1>

<h2>What?</h2>
<p>
Plain Pasta is tiny Mac app that strips any styling from text on your clipboard. It sits in your menu bar, and watches your clipboard for any text that arrives there. If there is any styling, it removes it, and puts plaintext back on your clipboard.
Plain Pasta is tiny menu bar app that filters out any styled text on your clipboard, leaving just plain text in its place.
</p>
<p>
Essentially, this makes <em>Paste and Match Style</em> the default behavior when copy/pasting.
Expand Down Expand Up @@ -175,7 +175,7 @@ <h2>Who?</h2>

<h2>Where?</h2>
<p>
Download the most recent version of Plain Pasta from the <a href="https://github.com/hisaac/PlainPasta/releases">Releases page</a> on the <a href="https://github.com/hisaac/PlainPasta/">GitHub repo</a>.
Download the most recent version of Plain Pasta from the <a href="https://apps.apple.com/us/app/plain-pasta/id1467796430">App Store</a>. The code is open source, and available on <a href="https://github.com/hisaac/PlainPasta/">GitHub</a>.
</p>

<h2>When?</h2>
Expand Down

0 comments on commit 8f89221

Please sign in to comment.