浏览代码

List available user-scripts

master
Arun Prakash Jana 5 年前
父节点
当前提交
d5245ac5ec
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 3 个文件被更改,包括 19 次插入1 次删除
  1. +15
    -0
      README.md
  2. +3
    -0
      user-scripts/imgur.sh
  3. +1
    -1
      user-scripts/picker.sh

+ 15
- 0
README.md 查看文件

@@ -61,6 +61,7 @@ It runs on Linux, macOS, Raspberry Pi, BSD, Cygwin, Linux subsystem for Windows
- [Configuration](#configuration)
- [Help](#help)
- [Quickstart](#quickstart)
- [User scripts](#user-scripts)
- [Troubleshooting](#troubleshooting)
- [Tmux configuration](#tmux-configuration)
- [BSD terminal issue](#bsd-terminal-issue)
@@ -401,6 +402,20 @@ To lookup keyboard shortcuts at runtime, press <kbd>?</kbd>.
- For additional functionality [setup custom scripts](https://github.com/jarun/nnn/wiki/How-to#run-custom-scripts).
- Visit the [How to](https://github.com/jarun/nnn/wiki/How-to) for many more specific usecases.

#### USER SCRIPTS

The following [user-scripts](https://github.com/jarun/nnn/tree/master/user-scripts) are available.

| Script | Description |
| --- | --- |
| copier.sh | Copy selection to clipboard |
| edit.sh | Fuzzy find a file in directory subtree with fzy and edit in vim |
| fzy.sh | Fuzzy find a file in directory subtree with fzy and open using xdg-open |
| imgur.sh | Upload an image file to imgur |
| picker.sh | Pick files and pipe the newline-separated list to another utility |
| sxiv.sh | Open images in current directory in sxiv |
| upgrade.sh | Check and update to latest version of nnn manually on Debian 9 Stretch |

#### TROUBLESHOOTING

##### Tmux configuration


+ 3
- 0
user-scripts/imgur.sh 查看文件

@@ -3,6 +3,9 @@
# https://imgur.com/tools
#
# Slightly modified for `nnn` integration
#
# Shell: bash
# Description: Upload an image file to imgur

if [ "${1}" = "--debug" ]; then
echo "########################################"


+ 1
- 1
user-scripts/picker.sh 查看文件

@@ -1,6 +1,6 @@
#!/usr/bin/env sh

# Description: Pick files and pipe the line-separated list to another utility
# Description: Pick files and pipe the newline-separated list to another utility
#
# Shell: generic
# Author: Arun Prakash Jana


正在加载...
取消
保存