瀏覽代碼

Add user script to view files in hex

master
Arun Prakash Jana 6 年之前
父節點
當前提交
144682ad49
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 2 個檔案被更改,包括 12 行新增0 行删除
  1. +1
    -0
      user-scripts/README.md
  2. +11
    -0
      user-scripts/hexview

+ 1
- 0
user-scripts/README.md 查看文件

@@ -5,6 +5,7 @@
| copier | Copy selection to clipboard |
| edit | Fuzzy find a file in directory subtree with fzy and edit in vim |
| fzy | Fuzzy find a file in directory subtree with fzy and open using xdg-open |
| hexview | view a file in hex; needs xxd and $PAGER |
| imgur | Upload an image file to imgur |
| kdeconnect | Send selected files to Android device using kdeconnect-cli |
| ndiff | File and directory diff for selection using vimdiff |


+ 11
- 0
user-scripts/hexview 查看文件

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

# Description: View a file in hex
# Requires: xxd and $PAGER
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana

if ! [ -z "$1" ]; then
xxd "$1" | "$PAGER"
fi

||||||
x
 
000:0
Loading…
取消
儲存