Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/KevinGutowski/Truncat

A Sketch plugin to truncate text.
https://github.com/KevinGutowski/Truncat

sketch sketch-plugin truncate-text

Last synced: 2 months ago
JSON representation

A Sketch plugin to truncate text.

Awesome Lists containing this project

README

        

# Truncat 🐈...

![Example of Truncat in Sketch](https://github.com/KevinGutowski/Truncat/blob/master/sketch-assets/truncatgif.gif?raw=true)

### Usage
![Truncate Head Option](https://github.com/KevinGutowski/Truncat/blob/master/sketch-assets/Example%201.png?raw=true)

![Truncate Belly](https://github.com/KevinGutowski/Truncat/blob/master/sketch-assets/Example%202.png?raw=true)

![Truncate Tail](https://github.com/KevinGutowski/Truncat/blob/master/sketch-assets/Example%203.png?raw=true)

#### Keyboard shortcuts

| Action | Shortcut |
| ----------- | ----------- |
| Truncate Head | `control` + `,` |
| Truncate Belly | `control` + `.` |
| Truncate Tail | `control` + `/` |
| ✨ Clean Cat (Reset) | `control` + `delete` |

### Works with Libraries
![Using Truncat with Overrides](https://github.com/KevinGutowski/Truncat/blob/master/sketch-assets/libraries.gif?raw=true)
> OMG @kevgski's Truncat🐈 Plugin for @sketch can be applied to ~Layer~ Text Styles and shared with Libraries. No plugin needed for the rest of your team!!
>
> Anthony Collurafici @CheckYourVector, https://twitter.com/CheckYourVector/status/1153403639622504454

Because I’m using MacOS's native paragraph style properties to control truncation you don't need this plugin installed to render the truncation. You just need one of your team members to set things up with your Symbols & Text Styles and everyone gets the benifit!

## Installation

- [Download](../../releases/latest/download/truncat.sketchplugin.zip) the latest release of the plugin
- Un-zip
- Double-click on truncat.sketchplugin

## Development Guide

_This plugin was created using `skpm`. For a detailed explanation on how things work, checkout the [skpm Readme](https://github.com/skpm/skpm/blob/master/README.md)._