Use 'git ls-files' for entr
dblume

dblume commited on 2022-01-23 14:10:56
Showing 1 changed files, with 6 additions and 2 deletions.

... ...
@@ -26,11 +26,15 @@ Sublime Text 3 projects.
26 26
 The best IDE of all, for those who live on the CLI. Create two panes in tmux,
27 27
 run vim in one, and run entr in the other with a command like:
28 28
 
29
+    git ls-files | entr -c sh -c 'ctags -R *; ./testpython.py'
30
+
31
+or
32
+
29 33
     find . -type f -name \*.py | entr -c sh -c 'ctags -R *; ./testpython.py'
30 34
 
31
-or run in pdb:
35
+or to run in pdb:
32 36
 
33
-    find . -type f -name \*.py | entr -c sh -c 'ctags -R *; python3 -m pdb testpython.py'
37
+    git ls-files | entr -c sh -c 'ctags -R *; python3 -m pdb testpython.py'
34 38
 
35 39
 Tip: In vim you can do a multi-file grep and use the QuickFix window with commands like...
36 40
 
37 41