lfp


Logs | Files | README | LICENSE | GitLab


1
commit 7ab653c7c339e9084f814a53895a3e2f1185cc1f
2
Author: Connor Etherington <[email protected]>
3
Date:   Sun Sep 24 18:18:47 2023 +0200
4
5
    Auto-Commit Update - 20230924
6
---
7
 PKGBUILD                    |  2 +-
8
 README.md                   |  2 +-
9
 usr/share/doc/lfp/README.md |  2 +-
10
 usr/share/lfp/lfprc         | 11 ++++++-----
11
 4 files changed, 9 insertions(+), 8 deletions(-)
12
13
diff --git a/PKGBUILD b/PKGBUILD
14
index dc27c36..20531ed 100644
15
--- a/PKGBUILD
16
+++ b/PKGBUILD
17
@@ -1,7 +1,7 @@
18
 # Maintainer: Connor Etherington <[email protected]>
19
 # ---
20
 pkgname=lfp
21
-pkgver=4.0.3
22
+pkgver=4.0.4
23
 pkgrel=1
24
 pkgdesc='A wrapper for the lf file manager with in-terminal media previews, on-exit directory changing and much more'
25
 license=('MIT')
26
diff --git a/README.md b/README.md
27
index 99c64da..c4b55ea 100644
28
--- a/README.md
29
+++ b/README.md
30
@@ -3,7 +3,7 @@
31
 ### `lfp` is a simple wrapper for the `lf` file manager, with built-in file, image, and video previews, as well as on-exit directory changing.
32
 ### The program makes use of `ueberzug` to preview images, documents, and video thumbnails. Preview behavior can be altered by editing the *scope* file.
33
 
34
-**Version: 4.0.3**
35
+**Version: 4.0.4**
36
 
37
 ***
38
 
39
diff --git a/usr/share/doc/lfp/README.md b/usr/share/doc/lfp/README.md
40
index 99c64da..c4b55ea 100644
41
--- a/usr/share/doc/lfp/README.md
42
+++ b/usr/share/doc/lfp/README.md
43
@@ -3,7 +3,7 @@
44
 ### `lfp` is a simple wrapper for the `lf` file manager, with built-in file, image, and video previews, as well as on-exit directory changing.
45
 ### The program makes use of `ueberzug` to preview images, documents, and video thumbnails. Preview behavior can be altered by editing the *scope* file.
46
 
47
-**Version: 4.0.3**
48
+**Version: 4.0.4**
49
 
50
 ***
51
 
52
diff --git a/usr/share/lfp/lfprc b/usr/share/lfp/lfprc
53
index 965f978..37d62c7 100644
54
--- a/usr/share/lfp/lfprc
55
+++ b/usr/share/lfp/lfprc
56
@@ -239,10 +239,9 @@ Tab   : toggle preview
57
       'b'|'n') notify-send "📦 Building Project..." && runScript build ;;
58
       'i'|'I'|',') clear ; echo -e "\e[0m" && npm init ;;
59
       'r') clear && getPKGs && for x in ${pkgs[@]}; do runScript remove $x && notify-send "✅ $x removed" ; done ;;
60
-      '') notify-send "📦 Starting Server in Background..." && runScript start >/dev/null 2>&1 & disown ;;
61
       '.') notify-send "📦 Updating Server..." && runScript && notify-send "📦 Package Base Updated" ;;
62
-     # '/') clear ; getFile && notify-send "📦 Serving $file" && node $file ;;
63
-       '/') clear ; serve ;;
64
+      's') clear ; selectNodeScript && exeScript $file ;;
65
+      '/') clear ; notify-send "📦 Starting server on port 5000..." &&  npx serve -l 5000 ;;
66
       'q') exit 0 ;;
67
      *) NodeManager ;;
68
     esac
69
@@ -322,7 +321,7 @@ EOF
70
         fzf --ansi --no-sort --cycle --pointer "▶" \
71
           $RandomColor \
72
           --info=inline --padding=1 --border --margin=1 \
73
-          --prompt="Select Python Script: " \
74
+          --prompt="$1" \
75
           --header "
76
 Enter : proceed
77
 Space : toggle sort
78
@@ -377,9 +376,11 @@ Tab   : toggle preview
79
 
80
     case $mode in
81
         '[A') clear && newConda ;;
82
-        '[B') clear && { selectPyScript && runScript $file; } || notify-send "🐍 Failed to run script" "'$file' is not a valid python script" ;;
83
+        '[B') clear && { selectPyScript "Select Python Script: " && runScript $file; } || notify-send "🐍 Failed to run script" "'$file' is not a valid python script" ;;
84
         '[D') clear && getPKGs && for x in ${pkgs[@]}; do installPkg $x; done ;;
85
         '[C') clear && [[ -f "main.py" ]] || { notify-send "🐍 No main.py file found"; return 1; } && notify-send "🐍 Running main.py script..." && runScript main.py ;;
86
+        'r') pip3 install -r requirements.txt && notify-send "🐍 Requirements installed" ;;
87
+        'R') clear && { selectPyScript "Select Requirements File: " && pip3 install -r $file && notify-send "🐍 Requirements installed" || notify-send "🐍 Failed to install requirements" "'$file' is not a valid requirements file" ; } ;;
88
         'q') exit 0 ;;
89
        *) PyManager ;;
90
       esac