Coder Social home page Coder Social logo

ruff-andy's Introduction

ruff

ruff is a little tool to help my dad quickly find info in a .csv file.

It quickly filters rows based on search text and lets you configure a command to run for a row.

ruff is cross platform. No Operating System Left Behind.

Install

Windows

ruff-0.0.3.exe

How To Enter a Command

Format

The basic format looks like this:

program arg1 "arg with a space" arg3

The first thing is the path to the executable. After that is space-separated arguments. If you want an argument to have a space, you may use single quotes (') or double quotes ("). If you need a literal single quote in a single- quoted string, use two in a row, 'like ''this'''. Same thing for double quotes.

Consider running your command in a shell for more features. For example, on Linux you might do bash -c "command arg arg arg" and on Windows you might do cmd.exe /c "command arg arg arg".

Column Parameters

When you load a .csv file, the first row is used as the headers. Each header is available as a variable in the command. So if the first row of your .csv file looks like this:

Name,PC,Number,Address

Then you have these variables available to you in your command:

  • ${Name}
  • ${PC}
  • ${Number}
  • ${Address}

If you have a folder for each item on your computer and you want the command to open the folder to it, it might look something like this:

explorer C:\Some\Folder\${Number}

If you need to enter a literal $, use 2 of them like this: $$.

Inside the ${}, $ are already literal. Use }} if you need a literal }.

Compiling for Windows

Use mxe.

git clone https://github.com/mxe/mxe.git
cd mxe
make qt5
mkdir /your/project/build-win && cd /your/project/build-win
/path/to/mxe/usr/i686-pc-mingw32.static/qt5/bin/qmake /path/to/ruff/ruff.pro
make
/path/to/mxe/usr/bin/i686-pc-mingw32.static-strip release/ruff.exe
upx release/ruff.exe

ruff-andy's People

Contributors

andrewrk avatar timothygu avatar

Watchers

 avatar

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.