<commit_before>anc is a shell script to make changing between frequently used directories
as easy and as natural as possible.

> Note: The current version was developed with and for bash. Nevertheless it might work out of the box on other modern shells, but is unlikely to work on a pure POSIX shell. This may get fixed in future versions. Patches, bug reports and help welcome.

Installation:
 1. Download anc.
 2. Put this line into ~/.bashrc 
    ```alias anc=". /absolute/path/to/anc"```

> Note: Anchors are directories between which the user wants to jump back and forth.
anc saves the list of anchors in ~/.anc_list. The current default anchor is saved in ~/.anc .

Examples:
```
    # make the current directory the default anchor:
    $ anc s

    # go to /etc, then /, then /usr/bin and then back to the default anchor:
    $ cd /etc; cd ..; cd usr/local; anc

    # go back to /usr/local :
    $ anc b

    # add another anchor:
    $ anc a $HOME/test

    # view the list of anchors (the default one has the asterisk):
    $ anc l
    (0) /path/to/first/anchor *
    (1) $HOME/test

    # jump to the anchor we just added:
    # by using its anchor number
    $ anc j1
    # or by jumping to the last anchor in the list:
    $ anc -1

    # add multiple anchors:
    $ anc a $HOME/projects/first $HOME/projects/second $HOME/documents/first

    # use text matching to jump to $HOME/projects/first
    $ anc g pro fir

    # use text matching to jump to $HOME/documents/first
    $ anc g doc fir
```

anc -h
```
Usage: anc [OPTIONS]

Changes directory to one of the previously set anchors.
Jumps to current default anchor with no options given.

First the user has to set one or more anchor directories
to jump between. See options (and --examples) below.

Note that for all short options like -s, -v and -b,
you can alternatively type s, v and b without the dash.

Likewise for long options like --clear or --version<commit_msg>small example fix<commit_after>anc is a shell script to make changing between frequently used directories
as easy and as natural as possible.

> Note: The current version was developed with and for bash. Nevertheless it might work out of the box on other modern shells, but is unlikely to work on a pure POSIX shell. This may get fixed in future versions. Patches, bug reports and help welcome.

Installation:
 1. Download anc.
 2. Put this line into ~/.bashrc 
    ```alias anc=". /absolute/path/to/anc"```

> Note: Anchors are directories between which the user wants to jump back and forth.
anc saves the list of anchors in ~/.anc_list. The current default anchor is saved in ~/.anc .

Examples:
```
    # make the current directory the default anchor:
    $ anc s

    # go to /etc, then /, then /usr/bin and then back to the default anchor:
    $ cd /etc; cd ..; cd usr/local; anc

    # go back to /usr/local :
    $ anc b

    # add another anchor:
    $ anc a $HOME/test

    # view the list of anchors (the default one has the asterisk):
    $ anc l
    (0) /path/to/first/anchor *
    (1) /home/user/test

    # jump to the anchor we just added:
    # by using its anchor number
    $ anc j1
    # or by jumping to the last anchor in the list:
    $ anc -1

    # add multiple anchors:
    $ anc a $HOME/projects/first $HOME/projects/second $HOME/documents/first

    # use text matching to jump to $HOME/projects/first
    $ anc g pro fir

    # use text matching to jump to $HOME/documents/first
    $ anc g doc fir
```

anc -h
```
Usage: anc [OPTIONS]

Changes directory to one of the previously set anchors.
Jumps to current default anchor with no options given.

First the user has to set one or more anchor directories
to jump between. See options (and --examples) below.

Note that for all short options like -s, -v and -b,
you can alternatively type s, v and b without the dash.

Likewise for long options like --clear or --version
{'fraction_non_alphanumeric': 0.07842633067626639, 'fraction_numerical': 0.0030856261249678583, 'mean_word_length': 2.847675568743818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1389359', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1088, 'n_words': 587}