From 5791eb536095f25d366026fa11ce8978869e7ec5 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 10 Jan 2017 08:57:00 -0500 Subject: [PATCH] Added a tools directory using the edit wrapper script. This will allow for segragating editing utilities from the normal PATH var while still making them available in the editor --- .gitignore | 10 ++++++---- TODO.md | 2 +- edit | 20 ++++++++++++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100755 edit diff --git a/.gitignore b/.gitignore index 2c0e260..1f2c0fe 100644 --- a/.gitignore +++ b/.gitignore @@ -31,13 +31,15 @@ # 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 66c9754..401162c 100644 --- 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 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 -- 2.51.0