snip


Logs | Files | README | LICENSE | GitLab


1
commit 0ff0a05fe6440ad4fb18bb73a0e856b8ef036e53
2
Author: Connor Etherington <[email protected]>
3
Date:   Mon May 8 20:24:46 2023 +0200
4
5
    Auto-Commit Update - 20230508
6
---
7
 PKGBUILD     | 2 +-
8
 usr/bin/snip | 4 ++--
9
 2 files changed, 3 insertions(+), 3 deletions(-)
10
11
diff --git a/PKGBUILD b/PKGBUILD
12
index be01c9f..2227149 100644
13
--- a/PKGBUILD
14
+++ b/PKGBUILD
15
@@ -1,7 +1,7 @@
16
 # Maintainer: Connor Etherington <[email protected]>
17
 # ---
18
 pkgname=snip
19
-pkgver=1.1.1
20
+pkgver=1.1.2
21
 pkgrel=1
22
 pkgdesc="A simple snippet manager for your predefined Ultisnips Snippet Directory"
23
 arch=(any)
24
diff --git a/usr/bin/snip b/usr/bin/snip
25
index 88c1e23..0b50e09 100755
26
--- a/usr/bin/snip
27
+++ b/usr/bin/snip
28
@@ -107,7 +107,7 @@ editSnippet(){ dialog \
29
 [[ $(cat ${tmpSnipType}) == 'ALL' ]] && ${EDITOR} ${SNIPDIR}/_.snippets &&
30
   notify-send "✅  Snippet File Altered!" &&return 0
31
 
32
-  ${EDITOR} $(find ${SNIPDIR} -name $(cat ${tmpSnipType})|sort) &&
33
+  ${EDITOR} $(cat ${tmpSnipType}) &&
34
   notify-send "✅  Snippet File Altered!" &&
35
   ! exit 0 && err "Snippet file could not be created..."
36
 }
37
@@ -135,7 +135,7 @@ source ${SNIPDATA}/sniprc >/dev/null 2>&1
38
 echo 'snipType=(' >${tmpSnipName}
39
 
40
 for Dirs in $(find ${SNIPDIR} -maxdepth 1 -type d|sort); do for x in $(ls -1 ${Dirs}|sort|grep ".*\.snippets$"); do
41
-  echo "'${x}' '$(basename ${Dirs[@]}) ($(basename ${x} .snippets | sed 's|-p.*||')[$(basename ${x} .snippets | sed 's/.*-p//')]) \
42
+  echo "'${Dirs[@]}/${x}' '$(basename ${Dirs[@]}) ($(basename ${x} .snippets | sed 's|-p.*||')[$(basename ${x} .snippets | sed 's/.*-p//')]) \
43
 Snippets'" >>${tmpSnipName} ; done
44
 done
45