All Projects → ezura → Spell Checker For Swift

ezura / Spell Checker For Swift

Licence: mit
This command line tool can check spelling and show proposed correction.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Spell Checker For Swift

Wsay
Windows "say"
Stars: ✭ 36 (-40.98%)
Mutual labels:  command-line-tool
Ed
A modern UNIX ed (line editor) clone written in Go
Stars: ✭ 44 (-27.87%)
Mutual labels:  command-line-tool
Reorder
Reorder Swift functions
Stars: ✭ 51 (-16.39%)
Mutual labels:  command-line-tool
Football Cli
⚽ Command line interface for Hackers who love football
Stars: ✭ 984 (+1513.11%)
Mutual labels:  command-line-tool
Kube Aliases
Kubernetes Aliases and Bash Functions
Stars: ✭ 40 (-34.43%)
Mutual labels:  command-line-tool
Upt
Universal Package-management Tool for Windows, macOS and Linux.
Stars: ✭ 45 (-26.23%)
Mutual labels:  command-line-tool
Google Images Download
Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!
Stars: ✭ 7,815 (+12711.48%)
Mutual labels:  command-line-tool
Xcperfect
Make your xccov outputs prettier ✨
Stars: ✭ 56 (-8.2%)
Mutual labels:  command-line-tool
Coreutils
Cross-platform Rust rewrite of the GNU coreutils
Stars: ✭ 9,603 (+15642.62%)
Mutual labels:  command-line-tool
Gitauthors
✍️ Get a quick summary of a repo's authors.
Stars: ✭ 50 (-18.03%)
Mutual labels:  command-line-tool
Sqlite Global Tool
SQLite .NET Core CLI tool that allows the user to manually enter and execute SQL statements with or without showing query result.
Stars: ✭ 37 (-39.34%)
Mutual labels:  command-line-tool
Autovpn
THIS PROJECT IS UNMAINTAINED.
Stars: ✭ 997 (+1534.43%)
Mutual labels:  command-line-tool
To Fish
Bookmarks for Fish Shell
Stars: ✭ 44 (-27.87%)
Mutual labels:  command-line-tool
Cryptoanalysis
CogniCrypt_SAST: CrySL-to-Static Analysis Compiler
Stars: ✭ 36 (-40.98%)
Mutual labels:  command-line-tool
Foxify Cli
💻 Firefox Command-Line Theme Manager 🦊 Inspired by spicetify-cli 🔥
Stars: ✭ 55 (-9.84%)
Mutual labels:  command-line-tool
Moviescore
A cli tool to get movie ratings and reviews directly to your terminal!
Stars: ✭ 35 (-42.62%)
Mutual labels:  command-line-tool
Catage
Node package and CLI tool to convert code into an image with syntax highlighting
Stars: ✭ 44 (-27.87%)
Mutual labels:  command-line-tool
Q
q - Run SQL directly on CSV or TSV files
Stars: ✭ 8,809 (+14340.98%)
Mutual labels:  command-line-tool
Rff Cli Example
An example of how to use 🏁 React Final Form in a CLI application with Ink
Stars: ✭ 55 (-9.84%)
Mutual labels:  command-line-tool
Note
Quick and easy Command-line tool for taking notes.
Stars: ✭ 49 (-19.67%)
Mutual labels:  command-line-tool

No more "Fix typo" commit...!

This command line tool can check spelling and show proposed correction.

Installation

Binary

We can download binary from here.

Makefile

$ git clone [email protected]:ezura/spell-checker-for-swift.git
$ cd spell-checker-for-swift
$ make

Mint

$ mint install ezura/[email protected]

Usage

With Xcode

Set up

Run typokana init in the same directory as xcodeproj file.

Add run script

To display warnings on Xcode, add a script into "Run Script Phase".

if which typokana >/dev/null; then
  typokana --diff-only
else
  echo "`typokana` is not installed."
fi

This setting is searching typos only in changed swift files (fetched with git diff).

If you want to select a target directory, add the directory path.

if which typokana >/dev/null; then
  typokana /Sources
else
  echo "`typokana` is not installed."
fi

Command

typokana init

Prepare a list of words that the spell checker ignores.
typokana init creates ".typokana_ignore" in the current directory.

typokana

Search typo in all swift files.
Show warning for typo on Xcode when this command is run at "Run Script".

typokana -diff

This command is recommended.
Search typo only in changed swift files (fetched with git diff).

typokana --language

Change the language to use for spell checking, e.g. "en_US" (defaults to using the system language). (typokana --language en_US)

typokana --help

(typokana --help)

OVERVIEW: Spell check

USAGE: typokana [options] argument

OPTIONS:
  --diff-only, -diff   Check only files listed by `git diff --name-only`
  --language, -l       The language to use for spell checking, e.g. "en_US" (defaults to using the system language).
  --help               Display available options

POSITIONAL ARGUMENTS:
  path | init          Path to target file | set up typokana

How to ignore words

  1. Create file named ".typokana_ignore"
  2. Write ignored words with line breaks

For example, if you don't want to display warnings for "typokana", "json" and "yuka", please write following text in ".typokana_ignore".

typokana
json
yuka
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].