Skip to main content

Goto

v1.6.2

Goto is a magic tool that takes you were you want to be, now.

When you are involved in different projects, they all have their own folders, important files, links to good articles or key websites. The problem is that all these are spread out on different locations.

By adding shortcuts to goto, so called magic words, you can jump to them. The shortcuts are associated with a project name. And you can switch the project context any time.

Usage

$ project your-project
active project is now: your-project

$ goto add github https://github.com/user/your-project
Added magic word github

$ goto github
# opens https://github.com/user/your-project in your browser

Setup

Mac OS-X / Linux / Win (git bash)

pip install magicgoto

After install, close and reopen your terminal.

Windows (using gitbash)

Open git bash and do the same as above.

git bash is included when you install git on windows usually.

Some git bash installs comes without any rcfile. If you get this error: Ah hoy! Failed to determine rcfile... you can fix it by runningtouch ~/.bash_profile and then install_goto

Linux - User Site install

On linux, the recommended way to install goto is by pip install --user magicgoto

This requires that you have your User site bin in your path. Usually this is ~/.local/bin. So adding PATH="${HOME}/.local/bin:$PATH" to your rcfile should do the trick in most cases.

Commands

goto

Used to add and jump to shortcuts.

    The basics
        goto <magicword>                        Go to shortcut
        goto [<magicword>...]                   Go to many shortcuts
        goto add    <magicword> <url or path>   Add shortcut
        goto update <magicword> <new url/path>  Update shortcut
        goto rename <magicword> <new name>      Rename shortcut
        goto rm     <magicword>                 Remove shortcut
        goto show   <magicword>                 Show url of shortcut
        goto list                               List all shortcuts
        goto list -v                            With the urls printed

    Working with folders and files
        goto <magicword>              Goto will cd to a folder shortcut by default.
        goto cd   <magicword>         cd in terminal
        goto open <magicword>         Open in finder/file explorer

    Launching Code editors
        goto subl                     Opens Sublime Text in code folder*
        goto idea                     Opens IntelliJ in code folder*
        goto vscode                   Opens Visual Studio Code in code folder*

    * requires a magicword named code pointing to a folder.
        goto add code <path to folder with code>

project

Used to add and switch project contexts.

Usage: project [add <projectname>] | [list]
   other commands:
     add <projectname> - adds a new project and makes it the active project.
     rm  <projectname> - removes the project
     list              - lists all projects
     deactivate        - deactivates goto project
     help              - if you want to read this one more time.

How does Goto know which project is the active one?

You tell goto with this command: project <project-name>

Examples: project django-blog | project website | project goto

$ project goto
active project is now: goto

Running project with no arguments, will show you the current active project.

$ project
goto

How does Goto know which projects exists?

You tell Goto with the command:

 project add <project-name>

How does Goto know which shortcuts there are in the project?

Define them once, and use them a thousand times. By this command:

 goto add <magic-word> <URI>

A magic-word is the name of your shortcut. The URI is the target of your shortcut. It could be a file, a directory, a web-url.

Examples:
  • goto add github https://github.com/technocake/goto
  • goto add music ~/the/sound/of/music
  • goto add jira http://jira.com/project/X

First one adds a url to a repo on github relevant to the project. The second one adds a folder path.

When you activate a project, Goto remembers which project you are thinking about right now.

Then it makes sense to call the shortcut visualstudio, because it implicit means the visual studio project associated with this project.

Examples:

goto add jira http://jira.com/project/X

Uninstall

pip uninstall magicgoto
# remove source start_goto from your ~/.bash_profile | ~/.bashrc | ~/.zshrc
# project data is kept intact in ~/.goto

Features

Goto many things with one command

goto-many

Metadata

Release files for magicgoto 1.6.2

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

Source distribution (sdist)

Source distribution for magicgoto 1.6.2
File Size Uploaded Provenance
magicgoto-1.6.2.tar.gz 31.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for magicgoto 1.6.2
File Interpreter ABI Platform
magicgoto-1.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 63.5 kB

Release files / magicgoto-1.6.2.tar.gz

Download URL magicgoto-1.6.2.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6ad12a6ef86bb249b074705608db8484878414e4acf3e9314e581ecc3b2b96cd
BLAKE2b-256 checksum
How to use checksums
0c67fbbf192ba5e69730f05e6e046ebe04b3dd1102d937da2e32ef5bbca004f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

Release files / magicgoto-1.6.2-py3-none-any.whl

Download URL magicgoto-1.6.2-py3-none-any.whl
Size 32.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15cd5477f61a28810df6e800aba261cdf2e823307246ddcabc54cdcc3e722beb
BLAKE2b-256 checksum
How to use checksums
d2776e6feb2225ae99f7ebfbc6d8db9de7a6cc295ef1585e1e1d81b810919aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

Security for magicgoto 1.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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