]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added a tools directory using the edit wrapper script. This will allow for segragatin...
authorMichael D. Lowis <mike.lowis@gentex.com>
Tue, 10 Jan 2017 13:57:00 +0000 (08:57 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Tue, 10 Jan 2017 13:57:00 +0000 (08:57 -0500)
.gitignore
TODO.md
edit [new file with mode: 0755]

index 2c0e260eae93f2c78a6269e8c2182f0278b6ab7e..1f2c0fea6ae4e2f090e7aace59df6588375744cd 100644 (file)
 # Debug files
 *.dSYM/
 *.d
-edit
-unittests
-project.vim
-tags
+
+# Coverage data
 *.gcno
 *.gcda
 *.gcov
+
+# Project specific files
+unittests
+tags
 xedit
 xpick
 DELETEME
diff --git a/TODO.md b/TODO.md
index 66c97541f02e355d7dab6c2c2e3f64b314620b39..401162c5c89b193d0c711cc819cb0511b3f1306f 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -3,6 +3,7 @@
 Up Next:
 
 * context sensitive selection of words, commands, line numbers, or filenames.
+* Implement X Selection protocol for handling clipboard and primary selections
 * Tag line count should account for wrapped lines
 * ctrl+alt+f should find next occurence of previous search term
 * invalid memory accesses while viewing docs/waf
@@ -11,7 +12,6 @@ Up Next:
 
 The Rest: 
 
-* Implement X Selection protocol for handling clipboard and primary selections
 * add a distinct state for pointer move versus drag
 * Add a SaveAs tag that takes an argument for the filename to save as
 * Add a GoTo tag for ctags lookup and line number jump
diff --git a/edit b/edit
new file mode 100755 (executable)
index 0000000..f08e35e
--- /dev/null
+++ b/edit
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# Add the editing tools directory to your PATH var so its contents may be used
+# while editing.
+export PATH="$HOME/.config/edit/tools:$PATH"
+
+# Now figure out the correct editor to execute
+if [ -z "$DISPLAY" ]; then
+    if [ -z "$EDITOR" ]; then
+        vim "$@"
+    else
+        "$EDITOR" "$@"
+    fi
+elif [ 0 -eq $# ]; then
+    (nohup xedit > /dev/null 2>&1) &
+else
+    for f in "$@"; do
+        (nohup xedit "$f" > /dev/null 2>&1) &
+    done
+fi