Giter VIP home page Giter VIP logo

nef-plugin's Introduction

nef: an Xcode plugin

nef Swift UI Swift 5.3 Xcode 11+ macOS 10.15+

ย 

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 from your code selection directly in Xcode.

Features

๐Ÿ’ก Exports a code selection to image or clipboard.

๐Ÿ’ก Generates Markdown files from Xcode Playground.

๐Ÿ’ก Builds a Playground Book with external dependencies defined in a Swift Package.

ย 

๐Ÿ’ป Installation

โžŠ Latest binary in Releases section (preferred)

โž‹ Using Mac App Store

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

๐Ÿ”ง Preferences

You can customize the output image using the preferences action Editor > nef > Preferences

nef: preferences Xcode extension

๐ŸŒ 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...

Output

nef: action for exporting code selection to image file nef: action for exporting code selection to clipboard

๐Ÿ“ƒ 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.

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.

nef: action for making a Playground Book

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

nef: set keyboard shortcut

โš–๏ธ 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 at

   http://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.

nef-plugin's People

Contributors

jdev7 avatar miguelangel-dev avatar truizlop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nef-plugin's Issues

M1 Xcode 13

Looks like the app doesn't work on M1 Device , I can not see the option in the menu however I could see that before , I am not sure its related to M1 or not but in my old Mac every things were ok and I used migration but I checked the app and it's still just for Intel , this can be for Xcode 13 or M1 can you please check it ?

Transparent Background?

Is there any way to remove the background and simply have the code snippet on its own? Similar to this image:
Nef

Thanks!

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.