https://github.com/dideler/fish-index
🐟 Shows indexed chars for hidden or visible text data
https://github.com/dideler/fish-index
fish fish-packages fish-plugin fish-shell fisherman oh-my-fish security sensitive-data
Last synced: 4 months ago
JSON representation
🐟 Shows indexed chars for hidden or visible text data
- Host: GitHub
- URL: https://github.com/dideler/fish-index
- Owner: dideler
- License: mit
- Created: 2019-10-02T23:02:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T19:50:15.000Z (over 4 years ago)
- Last Synced: 2025-03-24T19:36:49.096Z (9 months ago)
- Topics: fish, fish-packages, fish-plugin, fish-shell, fisherman, oh-my-fish, security, sensitive-data
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fish-index
Shows indexed characters for hidden or visible input strings.
## Demo

## Installation
Install with your favourite fish package manager, such as [fisherman][] or [oh-my-fish][]
```fish
# Install with fisher v4
fisher install dideler/fish-index
# Install with fisher v3
fisher add dideler/fish-index
# Install with fisher v2
fisher install dideler/fish-index
# Install with oh-my-fish
omf install https://github.com/dideler/fish-index
```
## Usage
```
Usage: index [OPTION] [STRINGS]
Description:
Prints the index of characters in a string.
Sensitive strings can be given as a prompt
or fetched and cleared from the clipboard,
to avoid appearing in the shell's history.
When no indexes given, prints all indexes.
Examples:
$ index ab cd
1: a
2: b
1: c
2: d
$ index "ab cd"
1: a
2: b
3:
4: c
5: d
$ index
Secret ▶ ●●●●
Indexes ▶ 2 4
2: x
4: z
$ index
Secret ▶ ●●●
Indexes ▶
1: x
2: y
3: z
$ index
Secret ▶ popped from clipboard
Indexes ▶ 1 2 3
1: x
2: y
3: z
Options:
-h, --help Prints help and exits
```
[fisherman]: https://github.com/fisherman/fisherman
[oh-my-fish]: https://github.com/oh-my-fish/oh-my-fish