Compare commits

...

3 Commits

Author SHA1 Message Date
J0J0 Todos 6058d869f1
Merge 0cec811a3c into 5c17bcd21f 2025-01-08 09:49:32 +01:00
Bhanu 5c17bcd21f
feat(web-search): add perplexity.ai (#12815) 2025-01-08 09:34:00 +01:00
J0J0 Todos 0cec811a3c
Typo and defaults fix README.md
Defaults stated in the docs seem to be incorrect: 

62cf1201b0/plugins/alias-finder/alias-finder.plugin.zsh (L17-L19)
2024-10-05 08:02:12 +02:00
3 changed files with 7 additions and 4 deletions

View File

@ -15,9 +15,9 @@ To enable it for every single command, set zstyle in your `~/.zshrc`.
# ~/.zshrc # ~/.zshrc
zstyle ':omz:plugins:alias-finder' autoload yes # disabled by default zstyle ':omz:plugins:alias-finder' autoload yes # disabled by default
zstyle ':omz:plugins:alias-finder' longer yes # disabled by default zstyle ':omz:plugins:alias-finder' longer yes # enabled by default
zstyle ':omz:plugins:alias-finder' exact yes # disabled by default zstyle ':omz:plugins:alias-finder' exact yes # enabled by default
zstyle ':omz:plugins:alias-finder' cheaper yes # disabled by default zstyle ':omz:plugins:alias-finder' cheaper yes # enabled by default
``` ```
As you can see, options are also available with zstyle. As you can see, options are also available with zstyle.
@ -63,6 +63,6 @@ Running the shortest `gs` shell alias that it found:
- Use `--longer` or `-l` to include aliases where the source is longer than the input (in other words, the source could contain the whole input). - Use `--longer` or `-l` to include aliases where the source is longer than the input (in other words, the source could contain the whole input).
- Use `--exact` or `-e` to avoid aliases where the source is shorter than the input (in other words, the source must be the same with the input). - Use `--exact` or `-e` to avoid aliases where the source is shorter than the input (in other words, the source must be the same with the input).
- Use `--cheaper` or `-c` to avoid aliases where the destination is longer than the input (in other words, the destination must be the shorter than the input). - Use `--cheaper` or `-c` to avoid aliases where the destination is longer than the input (in other words, the destination must be shorter than the input).

View File

@ -52,6 +52,7 @@ Available search contexts are:
| `gopkg` | `https://pkg.go.dev/search?m=package&q=` | | `gopkg` | `https://pkg.go.dev/search?m=package&q=` |
| `chatgpt` | `https://chatgpt.com/?q=` | | `chatgpt` | `https://chatgpt.com/?q=` |
| `reddit` | `https://www.reddit.com/search/?q=` | | `reddit` | `https://www.reddit.com/search/?q=` |
| `ppai` | `https://www.perplexity.ai/search/new?q=` |
Also there are aliases for bang-searching DuckDuckGo: Also there are aliases for bang-searching DuckDuckGo:

View File

@ -33,6 +33,7 @@ function web_search() {
gopkg "https://pkg.go.dev/search?m=package&q=" gopkg "https://pkg.go.dev/search?m=package&q="
chatgpt "https://chatgpt.com/?q=" chatgpt "https://chatgpt.com/?q="
reddit "https://www.reddit.com/search/?q=" reddit "https://www.reddit.com/search/?q="
ppai "https://www.perplexity.ai/search/new?q="
) )
# check whether the search engine is supported # check whether the search engine is supported
@ -87,6 +88,7 @@ alias packagist='web_search packagist'
alias gopkg='web_search gopkg' alias gopkg='web_search gopkg'
alias chatgpt='web_search chatgpt' alias chatgpt='web_search chatgpt'
alias reddit='web_search reddit' alias reddit='web_search reddit'
alias ppai='web_search ppai'
#add your own !bang searches here #add your own !bang searches here
alias wiki='web_search duckduckgo \!w' alias wiki='web_search duckduckgo \!w'