This commit is contained in:
Maurice Parker 2019-08-01 06:25:07 -05:00
commit d2f43678a7
12 changed files with 116 additions and 15 deletions

View File

@ -85,6 +85,9 @@
<property name="type" code="ATyp" type="account type" access="r" description="The type of the account">
<cocoa key="accountType"/>
</property>
<property name="active" code="Actv" type="boolean" access="rw" description="Whether or not the account is active">
<cocoa key="scriptingIsActive"/>
</property>
<property name="contents" code="Cnts" access="r" description="The type of the account">
<cocoa key="contents"/>
<type type="account item" list="yes"/>

View File

@ -26,6 +26,16 @@ class ScriptableAccount: NSObject, UniqueIdScriptingObject, ScriptingObjectConta
return (scriptObjectSpecifier)
}
@objc(scriptingIsActive)
var scriptingIsActive: Bool {
get {
return account.isActive
}
set {
account.isActive = newValue
}
}
// MARK: --- ScriptingObject protocol ---
var scriptingKey: String {

View File

@ -845,7 +845,7 @@
849A97971ED9EFAA007D329B /* Node-Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Node-Extensions.swift"; sourceTree = "<group>"; };
849A979E1ED9F130007D329B /* SidebarCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SidebarCell.swift; sourceTree = "<group>"; };
849A97A11ED9F180007D329B /* FolderTreeControllerDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FolderTreeControllerDelegate.swift; sourceTree = "<group>"; };
849C64601ED37A5D003D8FC0 /* NetNewsWire.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = NetNewsWire.app; path = .app; sourceTree = BUILT_PRODUCTS_DIR; };
849C64601ED37A5D003D8FC0 /* NetNewsWire.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NetNewsWire.app; sourceTree = BUILT_PRODUCTS_DIR; };
849C64671ED37A5D003D8FC0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
849C64711ED37A5D003D8FC0 /* NetNewsWireTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NetNewsWireTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
849EE70E203919360082A1EA /* AppAssets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppAssets.swift; sourceTree = "<group>"; };
@ -2801,6 +2801,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 51121AA12265430A00BC0EC1 /* NetNewsWire_iOSapp_target.xcconfig */;
buildSettings = {
PRODUCT_NAME = NetNewsWire;
};
name = Debug;
};
@ -2808,6 +2809,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 51121AA12265430A00BC0EC1 /* NetNewsWire_iOSapp_target.xcconfig */;
buildSettings = {
PRODUCT_NAME = NetNewsWire;
};
name = Release;
};
@ -2829,6 +2831,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = D5907CE02002F0FA005947E5 /* NetNewsWire_macapp_target.xcconfig */;
buildSettings = {
PRODUCT_NAME = NetNewsWire;
};
name = Debug;
};
@ -2836,6 +2839,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = D5907CE02002F0FA005947E5 /* NetNewsWire_macapp_target.xcconfig */;
buildSettings = {
PRODUCT_NAME = NetNewsWire;
};
name = Release;
};

View File

@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "849C645F1ED37A5D003D8FC0"
BuildableName = ".app"
BuildableName = "NetNewsWire.app"
BlueprintName = "NetNewsWire"
ReferencedContainer = "container:NetNewsWire.xcodeproj">
</BuildableReference>
@ -31,7 +31,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "849C645F1ED37A5D003D8FC0"
BuildableName = ".app"
BuildableName = "NetNewsWire.app"
BlueprintName = "NetNewsWire"
ReferencedContainer = "container:NetNewsWire.xcodeproj">
</BuildableReference>
@ -69,7 +69,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "849C645F1ED37A5D003D8FC0"
BuildableName = ".app"
BuildableName = "NetNewsWire.app"
BlueprintName = "NetNewsWire"
ReferencedContainer = "container:NetNewsWire.xcodeproj">
</BuildableReference>
@ -86,7 +86,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "849C645F1ED37A5D003D8FC0"
BuildableName = ".app"
BuildableName = "NetNewsWire.app"
BlueprintName = "NetNewsWire"
ReferencedContainer = "container:NetNewsWire.xcodeproj">
</BuildableReference>

View File

@ -6,7 +6,7 @@ NetNewsWire collects items for you from feeds published on web sites. To do this
*Its okay if you dont know that.* NetNewsWire will look at any web page and try to find it for you. All you need to give is the sites URL, like `inessential.com`.
To get started, click the Add Feed button on the toolbar, or use File → New Feed (⌘-N) from the menu bar.
To get started, click the Add Feed button on the toolbar, or use **File → New Feed** (⌘-N) from the menu bar.
If youve got the address already great! Type it or paste it into the URL box. Otherwise, just enter the websites address into the box.

View File

@ -0,0 +1,15 @@
@title Contributing
# Contributing
NetNewsWire is open-source and contributions from the community are welcomed.
There are two channels for contributing. There is a Slack group for conducting discussions. For filing tickets, and contributing code or documentation, we use GitHub.
## Slack
[Join the Slack group](https://join.slack.com/t/netnewswire/shared_invite/enQtNjM4MDA1MjQzMDkzLTNlNjBhOWVhYzdhYjA4ZWFhMzQ1MTUxYjU0NTE5ZGY0YzYwZWJhNjYwNTNmNTg2NjIwYWY4YzhlYzk5NmU3ZTc) to talk with other NetNewsWire users — and to help out, if youd like to, by testing, coding, writing, providing feedback, or just helping us think things through. Everybody is welcome and encouraged to join.
## GitHub
The [NetNewsWire project on GitHub](https://github.com/brentsimmons/NetNewsWire) is the place to raise formal issues like bugs and feature requests. If you want to make contributions to NetNewsWires code or documentation, please refer to our [contribution guidelines](https://github.com/brentsimmons/NetNewsWire/blob/master/CONTRIBUTING.md) page on GitHub.

View File

@ -0,0 +1,9 @@
@title Deleting feeds and folders
# Deleting feeds and folders
To delete a feed or folder, select it from the subscription list and choose **Edit → Delete** from the menu bar. Alternatively, select the feed and press the **delete** key.
## Undo deleting a feed or folder
If you change your mind, you can undo the deletion by selecting **Edit → Undo** in the menu bar or pressing ⌘-Z.

View File

@ -11,19 +11,19 @@ More topics to do…
[How to import OPML](import-opml.html)
How to export OPML
[How to export OPML](export-opml.html)
How to go through your articles (take special note of the space bar and the n key)
[How to go through your articles](reading-articles.html)
Sharing to other apps, including MarsEdit and Micro.blog
How to delete feeds and folders (note that undo is available)
[How to delete feeds and folders](deleting-feeds-folders.html)
How to add a syncing account
How to contribute (GitHub, Slack)
[How to contribute](contributing.html)
How to get NetNewsWire news (see Help menu command)
[How to get NetNewsWire news](netnewswire-news.html)
Keyboard shortcuts (see Help menu command)

View File

@ -0,0 +1,13 @@
@title How to get NetNewsWire news
# How to get NetNewsWire news
The very best way to get news about NetNewsWire is with NetNewsWire itself, using the *NetNewsWire News Feed*. Important and notable news about NetNewsWire will appear there: new version announcements, critical bug notices, tech notes and important project announcements.
## Add the NetNewsWire News Feed
The NetNewsWire News Feed is part of the default subscription list installed the first time you launched NetNewsWire. If its no longer in your list, its easy to add it back.
In the menu bar, select **Help → Add NetNewsWire News Feed**. NetNewsWire will open the [New Feed dialog](adding-feeds.html) pre-filled with the name and address (`https://nnw.ranchero.com/feed.json`). Click Add.
Now youll always be up to date with whats happening with NetNewsWire.

View File

@ -0,0 +1,39 @@
@title How to go through your articles
# How to go through your articles in NetNewsWire
NetNewsWire was built to make it easy to read your articles one-handed. This is perfect for when your other hand is occupied with a warm drink or an insistent furry friend.
One-handed reading is accomplished with keyboard shortcuts. NetNewsWires shortcuts are special because they only require pressing *a single key*.
(For a full list of keyboard shortcuts, including Command (⌘) key alternatives, see the [Keyboard Shortcuts](keyboard-shortcuts.html) help page, or use **Help → Keyboard Shortcuts** in NetNewsWire.)
## Use the Space bar
The easiest way to read articles in NetNewsWire is using the **space bar**.
If youre reading an article that can be scrolled, pressing **space bar** will scroll it just like it would in Safari. If youre at the end of the article, **space bar** will take you to the next unread article.
## Go to Next Unread
Sometimes you may want to skip reading an article entirely thats totally fine! Rather than press space bar multiple times, you can jump directly to the next unread item by pressing ⌘-/ or just press **n** or **+**.
If you want to skip the article for now, but plan to come back to it later, the **m** key is for you. Pressing it will mark the current article as unread and then go to the *next unread* item.
## Moving around lists
You may not always want to read linearly imagine theres a new article on [Julia Evans](https://jvns.ca) site you want to read first. You still dont need to leave the keyboard.
Pressing the left and right arrow keys will move you between the three panes in the NetNewsWire interface. Those panes are, from the left, the subscriptions list (sidebar), articles list timeline (centre pane) and the full article detail pane (right). The selected items highlight colour gives you a hint to which pane is active.
In the subscription and article lists, the up and down arrow keys will change the currently selected item.
## Marking as read or unread
As you zip through the NetNewsWire interface, you may want to mark an article as read or unread. The easiest way to do this is use the **r** and **u** keys, respectively.
Again, see the [Keyboard Shortcuts](keyboard-shortcuts.html) help page or **Help → Keyboard Shortcuts** in NetNewsWire for a full list of keyboard shortcuts.

View File

@ -12,7 +12,7 @@ The Safari Extension is installed automatically with NetNewsWire. However, it mu
You will enable the extension in Safari:
1. Open Safari
2. Click on the **Safari** menu and select **Preferences…** (⌘,)
2. Click on the **Safari** menu and select **Preferences…** (⌘-,)
3. Click the **Extensions** panel
4. From the list, click the checkbox beside **Subscribe to Feed** to enable the extension
5. Close the Preferences window

View File

@ -81,8 +81,16 @@ class ScriptingTests: AppleScriptXCTestCase {
actions and the keystrokes aren't delivered to the app right away, so the ui
isn't updated in time for 'current article' to be set. But, breaking them up
in this way seems to work.
July 30, 2019: There's an issue where in order for a script to send keystrokes,
The app has to be allowed to interact with the SystemEvents.app in
System Preferences -> Security & Privacy -> Privacy -> Accessibility
and this premission needs to be renewed every time the app is recompiled unless
the app is codesigned. Until we figure out how to get around this limitation,
this test is disabled.
*/
func testCurrentArticleScripts() {
func disabledTestCurrentArticleScripts() {
doIndividualScriptWithExpectation(filename: "uiScriptingTestSetup")
doIndividualScriptWithExpectation(filename: "establishMainWindowStartingState")
doIndividualScriptWithExpectation(filename: "selectAFeed")