1. Remove external commands like find.
2. Remove extensions and path (if present) from the names in fzf.
3. Only open Nvim if there is a selection.
Do all of these without using find, sed, grep.
- First line creates an array with the files in the scripts directory.
- Second line removes path (:t) and the extensions (:r) from the scripts.
- [[ "${c}" ]] checks if this variable is non-empty.
- ${${(M)s:#*/${c}*}[1]}
(M) enables "match" mode.
:# anchors the pattern to the start of each array element.
*/${c}* matches any path containing the selected basename.
[1] selects the first matching item.
useful if want to use shortcuts w/ different progs instead of
their default behavior (cd / $EDITOR), e.g.:
```sh
cd ~/Downloads
mv foo.mp3 $music
```
Co-authored-by: Luke Smith <luke@lukesmith.xyz>
* weath: Add option to get forecast from a different location
* Remove retry and make max time lower because it is interactive
* Give weath 'cp' option to copy forecast as plain text for sharing
* Make weath a separate script
* Corrects the syntax error in "application/octet-stream is for arbitrary binary files"
#1321 had a syntax error, this commit correct it.
* Update lfrc
support for ts
added `^` and `$` to the pattern used in `grep -v`
in order to avoid matching displays whose name
contains some other display name. e.g ("DPI", "eDPI")
1. Copies the selected filename instead of the filepath, and pipes it to clipboard.
2. Copies the selected filename and if it matches the yt-dlp downloaded video format [1234567891011], gets the full youtube URL and pipes it to clipboard.
3. Copies the selected filename and if it matches the yt-dlp downloaded video format [1234567891011], gets the full piped.video URL and pipes it to the clipboard. (piped.video is a mirror of youtube, even includes comments)
4. Opens current folder in full picture mode. Think windows large icons mode. Good for browsing quickly through image albums.
5. Ctrl+l to unselect all selections so the behaviour matches the terminal.
* Fix pdf and plain text previws in lf
Pdf previws don't appear because are generated with wrong filename.
Plain text previws with `bat` don't respect terminal theme and have
annoying border.
* Revert pdf cache filename to work properly
The s/\\&/&/g operation only effect is to add "amp;" after any ampersand in the artist or song name. "&" displays just fine anyways, so there's no reason to include an operation to replace it.
The part
```
for open in $decrypted; do
[ "$uuid" = "$open" ] && break 1
done
```
exits with `0` if the variable `$decrypted` is empty, causing none of the encrypted devices to be put into the `$unopenedluks` variable. This commit fixes this problem.