• Stars
    star
    123
  • Rank 290,145 (Top 6 %)
  • Language
    TypeScript
  • Created over 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔃 Sync Hyper.app settings with Github.

Hyper Sync Settings

Sync Hyper settings with Github.

Installation

  1. Open your Hyper settings (i.e., .hyper.js)

  2. Add hyper-sync-settings to plugins section

// Example
module.exports = {
  ...,
  plugins: [
    'hyper-sync-settings'
  ],
  ...
}
  1. Save and restart Hyper!

Setup

  1. Create a new personal access token which has the gist scope. Save your token to personalAccessToken inside ~/.hyper_plugins/.hyper-sync-settings.json. Alternatively, set the HYPER_SYNC_SETTINGS_PERSONAL_ACCESS_TOKEN environmental variable using this token.

  2. Create a new gist and save it. Save your gist id (last part of the url after the username) to gistId inside ~/.hyper_plugins/.hyper-sync-settings.json. Alternatively, set the HYPER_SYNC_SETTINGS_GIST_ID environmental variable using this id.

  3. Restart Hyper.

Disclaimer: Github Gists are by default public. If you don't want other people to easily find your gist (i.e. if you use certain packages, storing auth-tokens, a malicious party could abuse them), you should make sure to create a secret gist.

How to use

alt demo

Use the commands below in the menu:

  1. Plugins > Sync Settings > Check for Updates

    Checks Github to see if there are any updates available for your settings.

  2. Plugins > Sync Settings > Backup Settings

    Copies your ~/.hyper.js file to your local repository and pushes it to Github.

  3. Plugins > Sync Settings > Restore Settings

    Fast forwards local repo with all new commits from Github and copies the new settings to your ~/.hyper.js file.

  4. Plugins > Sync Settings > Open >

    • Gist: Opens the link to the configured Gist.

    • Repo: Opens the local repo that is cloned from the Gist.

    • Configuration: Opens the ~/.hyper_plugins/.hyper-sync-settings.json config file.

Configuration

Add syncSettings in your .hyper.js config. The configuration below shows all existing configuration values in their default states.

module.exports = {
  config: {
    // other configs...
    syncSettings: {
      quiet: false,
      accelerators: {
        checkForUpdates: 'CmdOrCtrl+8'
      }
    },
  },
  // ...
}

config.syncSettings.quiet

  • Type: boolean
  • Default: false

Mute the notification saying "Your settings are up to date". This will not hide any other notifications.

config.syncSettings.accelerators

  • Type: object
  • Default: {}

Add configurable keyboard shortcuts to each of the menu options. The value of each of the properties should be a valid Electron Accelerator. The available options are:

  • checkForUpdates
  • backupSettings
  • restoreSettings
  • openGist
  • openRepo
  • openConfiguration

Contribution

Please help improve this package! There's lots of room for stability and new features to be made, so I would love if you could help improve it :)

Credit

Credit where credit's due; the idea of this comes directly from atom-sync-settings.

Contributors

Thanks go out to @rfgamaral for all the help getting this working on Hyper 2.0 and fixing stuff on Windows!

More Repositories

1

pokemonsay

👾 Pokemon version of cowsay with CLI and API.
JavaScript
401
star
2

ampreact

⚡⚛ AMP HTML, Next.js, React, styled-components, GraphQL, and TypeScript — The most trendy website boilerplate possible.
TypeScript
228
star
3

react-amphtml

⚡️ Use amphtml components inside your React apps easily!
TypeScript
143
star
4

bluster

A Rust crate for implementing BLE (Bluetooth Low Energy) peripherals
Rust
110
star
5

hyper-tab-icons

💅 Icons in the header tabs for the current running process in Hyper.app.
JavaScript
92
star
6

sous-vide

🍲 Node.js API to control Anova water circulators.
JavaScript
69
star
7

wasm-brotli

🗜 WebAssembly compiled Brotli library
TypeScript
66
star
8

hyper-transparent-bg

🌫 An emulated transparent background for HyperTerm!
JavaScript
36
star
9

threejs-water

Three.js implementation of water with real-time caustics.
JavaScript
30
star
10

xpc-connection-rs

XPC connection bindings for Rust
Rust
29
star
11

lastpass-node

🔐 Lastpass client for Node.js
JavaScript
26
star
12

font-family-merger

Merge font variations together to make a big, happy, font family!
Python
21
star
13

nixos-rpi-sd-image

A convenient way to create custom Raspberry Pi NixOS SD images.
Nix
21
star
14

wasm-zopfli

🗜 WebAssembly compiled Zopfli library
JavaScript
16
star
15

awesome-rust-keyboard-firmware

A list of keyboard firmwares written in Rust and related resources.
13
star
16

hyperterm-lastpass

⚫️ Lastpass plugin for autofilling passwords in HyperTerm.
JavaScript
13
star
17

bitwise-rotation

🔄 Rotate values with a bitwise rotation.
JavaScript
10
star
18

rollup-webpack-loader

🍭 Add rollup to your webpack.
JavaScript
9
star
19

node-fonttools

🖋 Native bindings to `fonttools` to decompile and compile fonts.
C++
8
star
20

keycode

A Rust crate for translating keycodes based on Chrome's mapping of keys.
Rust
8
star
21

grav-plugin-dropbox

A highly alpha, yet working Dropbox plugin for Grav.
PHP
8
star
22

eyeliner

👁 A CSS inliner for making emails.
Rust
8
star
23

proton-c

Board Support Crate for the Proton C.
Rust
6
star
24

docker-preprocessors

📬Easy way to preprocess resources and assets with Docker.
JavaScript
5
star
25

node-eyeliner

Native bindings for eyeliner, a CSS inliner for making emails.
Rust
4
star
26

pm2-loggly

PM2 Remote Logging to Loggly
JavaScript
4
star
27

bleboard

Simple app to make any keyboard bluetooth enabled
Rust
4
star
28

pixelmatch-rs

Pixel-level image comparison
Rust
4
star
29

zopfli-rs

Bindings to `zopfli` for deflate, gzip, and zlib compression.
Rust
4
star
30

bitrate

Extension traits that add convenience methods for working with bitrates and frequencies.
Rust
4
star
31

jsxn-rs

Put JSX in your JSON and JSON in your JSX!
Rust
4
star
32

docker-intranet

Easy way to get started with a small intranet.
PHP
4
star
33

hyper-custom-plugins

🛠 Create Hyper.app plugins from Hyper.app's configuration file.
JavaScript
4
star
34

linter-american

🇺🇸 Make American spelling great again.
JavaScript
3
star
35

mk20d7-hal

Rust embedded-hal implementation crate for the MK20D7 processor
Rust
3
star
36

tokei-aas

Tokei as a Service
Rust
3
star
37

nur-packages

My personal NUR repository
Nix
2
star
38

karl-the-fog

🌫 Creates a "stylized fog" using an HTML5 canvas.
JavaScript
2
star
39

moment.rs

Rust
2
star
40

wasm-module-preprocessors

💎 Easy way to preprocess WebAssembly (wasm) modules.
JavaScript
2
star
41

rust-apigpio

C
2
star
42

zerocater-slack

Simple personal foray into slack slash commands using my newly created ZeroCater client.
JavaScript
2
star
43

inro

🌸 Probably the easiest way to create a responsive UI.
JavaScript
2
star
44

amphtml-validator-rules

🔏Get all the rules that `amphtml-validator` uses.
JavaScript
2
star
45

MagentoOrderCancelEmailNotification

When an order is cancelled a notification of this even will be emailed to magento's support email.
PHP
2
star
46

zerocater-node

🍱 Node.js client for ZeroCater.
JavaScript
2
star
47

image-xterm-loader

🖥 Load images with Webpack as XTerm 256-color compatible strings.
JavaScript
2
star
48

grav-plugin-redirects2

Grav plugin to redirect on a per page basis.
PHP
1
star
49

git-changelog

Quick Node.js script to output a CSV changelog of git commits
JavaScript
1
star
50

node-jsxn

Put JSX in your JSON and JSON in your JSX!
Rust
1
star
51

rust-lib-bin-crate-example

Shows that a Rust module can be both a `lib` and a `bin`.
Rust
1
star
52

jira-absolute-dates

⌛ Chrome extension that shows JIRA absolute dates.
JavaScript
1
star
53

babel-plugin-ad-lib

🔥 A Babel plugin to make your code lit AF
JavaScript
1
star
54

log-scrollback-ui-template

JavaScript
1
star
55

domshot

Render HTML + CSS to images quickly
Rust
1
star
56

docker-tweets

Container for spinning up an oauth server to retrieve tweets.
1
star
57

crowd-control

⚠️ Control promises in a queue with optional timeouts.
JavaScript
1
star
58

nginx-indicator

🚨 Nginx up-indicator, click to start server
JavaScript
1
star
59

node-find-synology

Use find.synology.com's APIs for finding your local Synology NASs
JavaScript
1
star
60

gdo-server

Integrate Security+ 2.0 garage doors w/ MQTT
Python
1
star
61

git-webfont-service

🖇 Serve fonts from a git repo.
JavaScript
1
star
62

sketch-expander

🆙 Expand Sketch files to make them easy to version control.
JavaScript
1
star
63

mk20d7

Rust device crate generated with svd2rust for MK20D7 processors
Rust
1
star
64

hyper-greeting

🙋 Add a nice greeting to each new session created in Hyper.
JavaScript
1
star
65

raspberry-pi-server-poc

🔑 A quick proof of concept that a server (will be a Raspberry Pi) can be used as an upstream server behind a VPN (OpenVPN in this case) from another server (planning on using DigitalOcean).
Shell
1
star
66

linter-rust-cargo

Rust Cargo linter that's fast.
JavaScript
1
star
67

advent-of-code-2022

Zig
1
star
68

npm-reinstall-global-packages

Simple Node.js script to reinstall all npm global packages (convenient for when you change Node.js versions)
JavaScript
1
star
69

npm-dependency-injection

💉 A very dumb version of dependency injection for npm.
JavaScript
1
star
70

rocky-watchface-tutorial-part1-webpack-example

📖 Example of how to use Webpack with the Pebble smartwatch.
JavaScript
1
star