Giter VIP home page Giter VIP logo

registry-sorter's Introduction

registry-sorter

Sorts lines of text based on indentation.

[![Build Status](https://travis-ci.org/martinmosegaard/registry-sorter.svg?branch=master)](https://travis-ci.org/martinmosegaard/registry-sorter) [![Coverage Status](https://coveralls.io/repos/martinmosegaard/registry-sorter/badge.png)](https://coveralls.io/github/martinmosegaard/registry-sorter)

Usage

$ ./gradlew installDist
$ ./build/install/registry-sorter/bin/registry-sorter

Test

$ ./gradlew cobertura
$ open build/reports/tests/index.html
$ open build/reports/cobertura/index.html

Check code

$ ./gradlew check
$ open build/reports/codenarc/main.html
$ open build/reports/codenarc/test.html

Check for dependency updates

$ ./gradlew dependencyUpdates

registry-sorter's People

Contributors

martinmosegaard avatar

Watchers

 avatar  avatar

registry-sorter's Issues

Handle rich text

Make the input text field capable of handling rich text such that:

  • Formatting like italic and bold is preserved
  • Text can be copied from Word, unlike today, where text has to be copied via a plain text editor like Notepad

GUI for copy-pasting text

A window to paste text into and an "Alphabetize" button.
Bonus points for handling rich, formatted text.

Handle quotes

Entries are currently sorted by text comparison. Some entries may start with a quote or double quote.

For example:
bee
"ape"

should be sorted as:
"ape"
bee

Handle bad indentation

Try to handle this case:

level 1
        level 2 but with too much indent
  level 2 with proper indent

Lines 2 and 3 should have the same parent, line 1. It should be possible to guess by looking at the parent of line 2 and that the indent of line 1 and line 3 is not the same.

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.