Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fmind/xontrib-simplejump
The simplest way to jump between directories with xonsh
https://github.com/fmind/xontrib-simplejump
directory extension jump xonsh xontrib
Last synced: about 1 month ago
JSON representation
The simplest way to jump between directories with xonsh
- Host: GitHub
- URL: https://github.com/fmind/xontrib-simplejump
- Owner: fmind
- License: other
- Created: 2019-03-13T15:29:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T16:28:40.000Z (almost 6 years ago)
- Last Synced: 2024-11-06T00:28:35.158Z (3 months ago)
- Topics: directory, extension, jump, xonsh, xontrib
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# simplejump
## Overview
The simplest way to jump between directories.
## Installation
```bash
pip install xontrib-simplejump
```## Motivation
I wanted a simple and efficient alternative to z, fasd and other jump scripts.
simplejump algorithm:
- **on directory change**: associate the base name to the full path of a dir in simplejump dict
- **on user search**: return the exact match or the smaller partial match from simplejump dict
- **on tabcomplete**: return the list of simplejump dict keys that match the command prefix
- **on shell init**: load the dict from simplejump file or an empty dict
- **on shell exit**: store the dict in simplejump file using json formatsimplejump design:
- keys/names are case insensitive, values/paths are case sensitivesimplejump vars:
- **simplejump file**: $SIMPLEJUMP_FILE
- **simplejump dict**: $SIMPLEJUMP_DICTsimplejump file:
- **simplejump file**: ~/.simplejump
## Example
```bash
simplejump [DIR]
```