Git Product home page Git Product logo

cursorless_hat_sandbox's Introduction

Running

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
make serve

Then visit localhost:8000/preview.html to see the different hats and how they look at different scales.

Building

Requires Inkscape installed on your system with the Apply Transforms extension installed.

Then running

make all

Should create built svgs in the build directory.

Installing into cursorless

Assuming your .venv already has been installed and activated:

# replace with the path to the cursorless git clone
export CURSORLESS_DIR=../cursorless
make install

This will preprocess the svgs, copy them to the appropriate directory in the cursorless repo, run the cursorless preprocess step on them, then finally build and install a local version of the cursorless vsix package.

The following files in the cursorless repo need to be edited to make use of the new hats:

cursorless-talon/src/marks/decorated_marks.py                                    2 places
cursorless-talon/src/spoken_forms.json                                           1 places
packages/common/src/types/command/legacy/CommandV0V1.types.ts                    1 place
packages/common/src/types/command/legacy/PartialTargetDescriptorV3.types.ts      1 place
packages/common/src/types/command/legacy/targetDescriptorV2.types.ts             1 place
packages/cursorless-vscode/package.json                                          6 places
packages/cursorless-vscode/src/ide/vscode/hatStyles.types.ts                     1 place
packages/cursorless-vscode/src/ide/vscode/hats/shapeAdjustments.ts               1 place

Some of the files need to be edited in multiple places. Find the places where the hats are specified (by searching for bolt for instance) and make the appropriate additions.

Also, be sure to create a symlink from your .talon/user/cursorless-talon to the local version:

`ln -s $CURSORLESS_DIR/cursorless-talon ~/.talon/user/cursorless-talon

cursorless_hat_sandbox's People

Contributors

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