Skip to main content

Squirrel Bookmarks

Bookmark system between development branches.

Why?

When I am at work, it's common to work on multiple development branches simultaneously.

For example, when I am developing a new feature on a feature branch feature-param-validation, I want to run a local environment of production branch production. Meanwhile, our QA found a critical bug on the other feature branch feature-remove-tokens.

What do I do?

Single clone of the working repository is not enough for me. So I clone multiple copies of the repositories in my local machine. You can see many directories in the directory of my ~/dev, and each directory is a development branch, e.g. feature-param-validation, feature-remove-tokens, production, etc.

Then it's time for Squirrel Bookmarks. Basically it can do the following 2 things:

  • Switch to a bookmark quickly: When I am doing my development, there are some directories that I frequently cd into. For example, I often cd into client-side/js/components and server-side/src/resources. So I need bookmarks for those directories.

  • Switch to a branch quickly: I also want to switch between branches quickly. As mentioned above, I have multiple branches: feature-param-validation, feature-remove-tokens, production, etc.

Example usage will be like:

$ sq feature-param-validation
jump to /Users/johnlinp/dev/feature-param-validation
$ sq components
jump to /Users/johnlinp/dev/feature-param-validation/client-side/js/components
$ cd checkbox
$ pwd
/Users/johnlinp/dev/feature-param-validation/client-side/js/components/checkbox
$ sq production
jump to /Users/johnlinp/dev/production/client-side/js/components/checkbox
$ sq resources
jump to /Users/johnlinp/dev/production/server-side/src/resources

Requirement

Currently only supports Python 3.5+.

Operation System

Currently tested on:

  • macOS 10.13.6 (High Sierra)
  • Ubuntu 18.04 (Bionic Beaver)

Install

Please type:

$ sudo pip3 install squirrel-bookmarks

to install.

Setup Config

You have to setup config first.

Please type:

$ squirrel init-config

to initialize your bookmark config at ~/.squirrel.yaml.

After that, please edit ~/.squirrel.yaml to meet your needs.

Usage

When you want to jump to a branch called production, please type:

$ sq production

When you want to jump to a bookmark named components, please type:

$ sq components

Release files for squirrel-bookmarks 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for squirrel-bookmarks 0.1.9
File Size Uploaded
squirrel-bookmarks-0.1.9.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for squirrel-bookmarks 0.1.9
File Interpreter ABI Platform
squirrel_bookmarks-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / squirrel-bookmarks-0.1.9.tar.gz

Download URL squirrel-bookmarks-0.1.9.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
40867c1cb9dc407189e240374ae4b4db8ed2634062ca849bdf4e91b186b82c02
BLAKE2b-256 checksum
How to use checksums
234f4212b6db2f4f170e086f638f4fc190edc114bf5884cab9d08a4c28cdbe6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / squirrel_bookmarks-0.1.9-py3-none-any.whl

Download URL squirrel_bookmarks-0.1.9-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c2e75351445e8cea815226ec30fa99f2d08413ba436a51f6dd419655d286f8a
BLAKE2b-256 checksum
How to use checksums
60418b54adadc713ecab8d9567c672d12f37e68d77474beac48cfb1594bdd4bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.2

2 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page