npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

touchbar-plus

v0.3.0

Published

Better Atom touchbar support for Mac OSX

Downloads

6

Readme

touchbar-plus package

Add Touch-bar support for Atom.

Motivation

The touch-bar is an interesting interface in the MacBook, though sometimes feels a bit gimmicky. Why would someone use it since keyboard shortcuts exist? For simple shortcuts like ctrl-c doesn't make sense, people usually know those universally shortcuts. But have you looked at atom's shortcuts list? Every package can register new shortcuts. Just reading the list takes time, more so to memorize all of them.

There are some applications that use the touch-bar brilliantly, making it actually something useful. Those interfaces have some "awareness" about what's being used by the user. This package attempts to use the active Pane as a reference to show different things that might be useful at that moment.

This of course, is an iterative learning & development. This first release might feel a bit gimmicky, because maybe the touch-bar is just that, just a gimmick. But maybe it turns to be something useful, that I'll leave for you to decide.

Features

  • UI changes depending on the active pane.
  • Works out of the box (pre-made configurations).

Default Interfaces

Text Editor View

When active pane is the text editor.

Text editor touch-bar buttons

Buttons:

  • Toggle tree-view pane.
  • Navigate to the left (tab to the left).
  • Navigate to the right (tab to the right).
  • Toggle git pane.
  • Toggle command-palette.
  • Fold & Unfold code by levels.

Tree View

When active pane is the tree-view

Tree view touch-bar buttons

Buttons:

  • Toggle tree-view pane.
  • New file.
  • New folder.
  • Toggle git pane.
  • Toggle command-palette.
  • Rename active item.
  • Duplicate active item.

Git Pane

When active pane is the git "editor".

Git pane touch-bar buttons

Buttons:

  • Toggle tree-view pane.
  • Fetch remote.
  • Toggle github pane.
  • Toggle git pane.
  • Toggle command-palette.
  • Pull.
  • Push.

Settings Page

When settings page is open.

Settings touch-bar buttons

Buttons:

  • Navigate to core settings.
  • Navigate to editor settings.
  • Navigate to URI handling settings.
  • Navigate to keybindings settings.
  • Navigate to packages settings.
  • Navigate to themes settings.
  • Navigate to updates settings.
  • Navigate to install settings.

Unknown Page

When touchbar-plus is not sure which pane or page is displayed.

Unknown page buttons

Buttons:

  • Toggle tree-view pane.
  • Open file/project.
  • Open settings.
  • Toggle git pane.
  • Toggle command-palette.

The Future

In this first release, is not clear how to use the touch-bar. Feel free to propose ideas as issues. Interesting ideas and use-cases may be around the corner!

I know for sure some kind of configuration is gonna be needed. People will want to add/change/remove buttons and move them to their needs. This feature is a big task and right now I don't have the time to do it. Plus I want to release this package before that happens.

Development

First install dependencies & run initial build and compilation.

npm i
npm run build

# Now we need to build the octicons.
# Please add the dependencies instructed here.
# https://github.com/Automattic/node-canvas#compiling
npm run build:octicons

# Make sure apm is installed
https://flight-manual.atom.io/getting-started/sections/installing-atom/
apm rebuild

Then for regular development

DEBUG=1 npm run build:watch

And open Atom in development mode

atom --dev .

Then, to check if the changes are working, just refresh the atom window: "Command Pallette" -> "Window: Reload".