Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bow-swift/nef-plugin
🔌 an Xcode extension to use nef features easily
https://github.com/bow-swift/nef-plugin
bow hacktoberfest macos nef swift swiftui xcode xcode-extension xcode-plugin
Last synced: 5 days ago
JSON representation
🔌 an Xcode extension to use nef features easily
- Host: GitHub
- URL: https://github.com/bow-swift/nef-plugin
- Owner: bow-swift
- License: other
- Created: 2019-07-01T09:43:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-11T15:19:12.000Z (about 3 years ago)
- Last Synced: 2024-08-17T00:35:39.091Z (4 months ago)
- Topics: bow, hacktoberfest, macos, nef, swift, swiftui, xcode, xcode-extension, xcode-plugin
- Language: Swift
- Homepage: http://nef.bow-swift.io
- Size: 4.28 MB
- Stars: 201
- Watchers: 4
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- open-source-mac-os-apps - nef - This Xcode extension enables you to make a code selection and export it to a snippets. Available on Mac AppStore. ![swift_icon] (Applications / Extensions)
- awesome-xcode-extensions - nef - This Xcode extension enables you to make a code selection and export it to a snippets. __Available on Mac App Store__. (The list / Collaborations with internal/external services)
- awesome-ios - nef - This Xcode extension enables you to make a code selection and export it to a snippets. Available on Mac AppStore. (Xcode / Extensions)
- awesome-ios-star - nef - This Xcode extension enables you to make a code selection and export it to a snippets. Available on Mac AppStore. (Xcode / Extensions)
- awesome-swift-macos-apps - nef - swift/nef-plugin?label=" /> - This Xcode extension enables you to make a code selection and export it to a snippets. Available on Mac AppStore. (Extensions / Text)
- awesome-swift-macos-apps - nef - This Xcode extension enables you to make a code selection and export it to a snippets. Available on Mac AppStore. (Extensions / Text)
- open-source-mac-os-apps - nef - This Xcode extension enables you to make a code selection and export it to a snippets. Available on Mac AppStore. ![swift_icon] (Applications / Extensions)
- fucking-about-SwiftUI - nef - This Xcode extension enables you to make a code selection and export it to a snippets. __Available on Mac App Store__. (🌎 by the community)
README
This project provides an extension for Xcode to integrate some nef features directly in the IDE. Using the core of `nef`, you can [export snippets](https://github.com/bow-swift/nef#-exporting-carbon-code-snippets) from your code selection directly in Xcode.
### Features
💡 Exports a [__code selection__](#-export-code-selection-to-image-or-clipboard) to image or clipboard.
💡 Generates [__Markdown__](#-generates-markdown-file-from-playground) files from Xcode Playground.
💡 Builds a [__Playground Book__](#-create-a-playground-book-from-your-swift-package) with external dependencies defined in a Swift Package.
## 💻 Installation
#### ➊ Latest binary in [Releases section](https://github.com/bow-swift/nef-plugin/releases/latest/download/nef-installer.zip) (preferred)
#### ➋ Using [Mac App Store](https://apps.apple.com/app/nef/id1479391704?mt=8)> To complete the installation, you should enable `nef` extension from `System Preferences > Extensions > Xcode Source Editor`
## ✍️ Usage
You can find the nef plugin options in `Xcode > Editor`
![Editor > nef](assets/nef-plugin-action-export.png)
### 🔧 Preferences
You can customize the output image using the preferences action `Editor > nef > Preferences`
### 🌁 Export code selection to image or clipboard
You can export your current code selection into a snippet, you only need to select the action `Editor > nef > Code selection...`
- **Image file** it will create an image in the [output folder](#-preferences).
- **Image clipboard** it lets you take advantage of the [universal clipboard](https://support.apple.com/en-us/HT209460).#### Output
### 📃 Generates markdown file from Playground
Xcode Playgrounds let you write comments in markdown format using the symbols:
1. `//: ` for single line comments.
2. `/*: */` for multiline comments.Markup for playgrounds includes page level formatting for headings and other elements, formatting spans of characters, showing inline images, and several other features. You can read more in the [Markup Formatting Reference](https://developer.apple.com/library/archive/documentation/Xcode/Reference/xcode_markup_formatting_ref/index.html).
You can create a markdown file from playground page with the nef action `Editor > nef > Export Playground page to markdown`
### 📲 Create a Playground Book from your Swift package
You can create a Playground compatible with you iPad from a Swift package. You only need to open the swift package in Xcode,
and select the action `Editor > nef > Playground Book from Swift Package`It will ask you where to save the Playground Book, and it will start to build it.
> This feature needs to use Swift Package Manager tool. Consequently, it will need to disable the sandbox thus it is not allowed in the App Store; but if you want to enjoy this feature, you only need to install the `.dmg` you'll find in the [releases](https://github.com/bow-swift/nef-plugin/releases) section.
## 🔨 Xcode navigation keyboard shortcuts
To make you a more productive developer, you can associate a keyboard shortcut to each `nef` action.
Open the shortcuts menu in `Xcode > Preferences... > Key Bindings` and set your command.
## ⚖️ License
Copyright (C) 2019-2021 The nef Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.