Giter Club home page Giter Club logo

reslate's Introduction

Reslate

A solid backbone for your .slate.js.

What does this add to Slate?

  • Concise configuration.
  • Extensibility - it wraps the Screen, Window, and Rect objects into proxy classes. You can extend these classes pretty easily using JavaScript prototypes.
  • Many convenience methods:
    • Reslate will take most object types in a binding and make sense of them.
    • Nested object syntax for binding hotkeys (reduces need for repetition - see slate.bindAll in slate.example.js).
    • Array syntax will do a slate.chain for you.
    • Strings automatically map to slate's "operation" objects.
  • Works around some issues in Slate:
    • It's harder to lose a window offscreen.
    • Some useless popups are silenced.
  • When you hit an exception, you're provided with a full traceback if possible (see them in Console.app). You can also use $.backtrace to generate one yourself.
  • The $ object ( https://github.com/lunixbochs/reslate/blob/master/reslate.js#L36 )

You should compare the reslate example config with Slate's example JS config.

Getting Started

  1. Do you have Slate? Get Slate.

  2. git clone https://github.com/lunixbochs/reslate.git somewhere convenient.

  3. ln -s "$(pwd)"/reslate.js ~/.reslate.js (Run this in Terminal / bash inside the repo).

  4. S.src('.reslate.js'); from .slate.js to use this if you're a Slate veteran.

    If you're new to Slate, copy my slate.example.js to ~/.slate.js instead.

  5. Either way, look at slate.example.js for a full configuration.

  6. Reslate has a high ratio of comments to code. Dive into reslate.js and hack away.

What will Slate do for me?

Slate

Your desktop has never looked better.

Hyper Key

You should probably set up a Hyper key if you plan on using Slate and your computer at the same time.

Using PCKeyboardHack and KeyRemap4Macbook to create a Hyper key.

I recommend modifying your private.xml to only map Hyper to ctrl+alt+cmd (and not shift).

This allows you to bind both hyper and hyper+shift as modifiers.

reslate's People

Contributors

lunixbochs avatar

Watchers

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