autojmp


Nameautojmp JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/thautwarm/autojmp
Summaryportable autojump
upload_time2022-12-03 07:57:45
maintainer
docs_urlNone
authorthautwarm
requires_python>=3.5
licensemit
keywords cli autojump
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## autojmp

An autojump implementation applicable to **any shell** and **any OS** by restoring [Xython/rtpy](https://github.com/Xython/wisepy/tree/836b63c33685b6107e528256a3cc0a9600015140).

Keep things simple and portable, do not fuck your brain.

### Common Configurations

```bash
export AUTOJMP_MAX_CACHE=999
export AUTOJMP_WORD_ANA_LEN=3 # 3-gram is precise enough!
```

### Zsh

Firstly install `autojmp`: `pip install autojmp`.

Then, append the following contents to your `~/.zshrc`:

```zsh
autoload -U add-zsh-hook

add-zsh-hook -Uz chpwd (){
  emulate -L zsh
  ajmp update "$pwd"
}

j(){
  cd "$(ajmp complete $@)"
} 
```

Using it in this way:

```zsh
github> j desk git
github> pwd
/c/Users/<USER>/Desktop/github
github> j git
github> pwd
/c/Users/<USER>/github
```

### Powerh Shell

```powershell
function cd() {
  Set-Location "$@" || return
  ajmp update "$pwd"
}

function j() {
    Set-Location $(ajmp complete "$@")
}
```
### Motivation

Currently I have to work on Windows and I do need `zsh`. This leads me to MSYS2.
However, `autojump` installation does not work for MSYS2.
Hence I restored my own autojump implementation made years ago. 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thautwarm/autojmp",
    "name": "autojmp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "CLI,autojump",
    "author": "thautwarm",
    "author_email": "twshere@outlook.com",
    "download_url": "",
    "platform": "any",
    "description": "## autojmp\n\nAn autojump implementation applicable to **any shell** and **any OS** by restoring [Xython/rtpy](https://github.com/Xython/wisepy/tree/836b63c33685b6107e528256a3cc0a9600015140).\n\nKeep things simple and portable, do not fuck your brain.\n\n### Common Configurations\n\n```bash\nexport AUTOJMP_MAX_CACHE=999\nexport AUTOJMP_WORD_ANA_LEN=3 # 3-gram is precise enough!\n```\n\n### Zsh\n\nFirstly install `autojmp`: `pip install autojmp`.\n\nThen, append the following contents to your `~/.zshrc`:\n\n```zsh\nautoload -U add-zsh-hook\n\nadd-zsh-hook -Uz chpwd (){\n  emulate -L zsh\n  ajmp update \"$pwd\"\n}\n\nj(){\n  cd \"$(ajmp complete $@)\"\n} \n```\n\nUsing it in this way:\n\n```zsh\ngithub> j desk git\ngithub> pwd\n/c/Users/<USER>/Desktop/github\ngithub> j git\ngithub> pwd\n/c/Users/<USER>/github\n```\n\n### Powerh Shell\n\n```powershell\nfunction cd() {\n  Set-Location \"$@\" || return\n  ajmp update \"$pwd\"\n}\n\nfunction j() {\n    Set-Location $(ajmp complete \"$@\")\n}\n```\n### Motivation\n\nCurrently I have to work on Windows and I do need `zsh`. This leads me to MSYS2.\nHowever, `autojump` installation does not work for MSYS2.\nHence I restored my own autojump implementation made years ago. \n",
    "bugtrack_url": null,
    "license": "mit",
    "summary": "portable autojump",
    "version": "0.2.0",
    "split_keywords": [
        "cli",
        "autojump"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "fd886822cd505c75b95330a779e8f5bc",
                "sha256": "59eea04dc71b5bd6305c2305b79c594e63494465f41f4218c9b099dc62a6cc43"
            },
            "downloads": -1,
            "filename": "autojmp-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fd886822cd505c75b95330a779e8f5bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 4419,
            "upload_time": "2022-12-03T07:57:45",
            "upload_time_iso_8601": "2022-12-03T07:57:45.741414Z",
            "url": "https://files.pythonhosted.org/packages/30/d2/835d0baf322e4299a54d8c5d548a36b6d6918d89d3ce9783e33e0c4d4ff5/autojmp-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-03 07:57:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "thautwarm",
    "github_project": "autojmp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "autojmp"
}
        
Elapsed time: 0.21607s