1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-05 01:01:30 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
bretello
41eb8f1a5f zsh: vimscratch: add filetype arg
Allows setting filetype for vimscratch command.

Usage: `<command> | vimscratch [filetype]`.

For example:

```bash
curl https://myip.wtf/json | vimscratch json
```
Will open the output of the curl command as a json
temporary file in vim.
2023-10-25 11:45:54 +02:00
bretello
ee531d18cd functions: remove debug statements in vimscratch 2023-09-25 12:56:09 +02:00
bretello
125a4e7aed functions: allow arguments in vimscratch 2023-09-25 12:39:24 +02:00
bretello
fbc6934f8f
functions: add vimscratch
use `vimscratch` to open a scratch vim buffer.

If run in a pipe, it uses `stdin` as input:

```bash
<command> | vimscratch
```
2023-08-23 13:52:35 +02:00