From: Michael D. Lowis Date: Fri, 24 Mar 2017 18:40:56 +0000 (-0400) Subject: genral cleanup X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=5c46f79085311579db30b79755108764712e8d74;p=projs%2Ftide.git genral cleanup --- diff --git a/editrc b/editrc index b3686c2..3c5fbff 100644 --- a/editrc +++ b/editrc @@ -3,9 +3,9 @@ # Tag Lines #------------------------------------------------------------------------------ -csrc(){ echo -n "Quit Save !term >lines |bc |uc {>Grep } Find "; } -src(){ echo -n "Quit Save !term >lines |bcmt |ucmt {>Grep } Find "; } -ptext(){ echo -n "Quit Save !term |fmt >words {>Grep } Find "; } +csrc(){ echo -n "Quit Save Eol rctags !term >lines |bc |uc {>Grep } Find "; } +src(){ echo -n "Quit Save Eol rctags !term >lines |bcmt |ucmt {>Grep } Find "; } +ptext(){ echo -n "Quit Save Eol rctags !term |fmt >words {>Grep } Find "; } # setup default tags line export EDITTAGS="$(csrc)" @@ -19,6 +19,9 @@ term(){ (nohup st)& } # Regex search Grep(){ grep -n "$@"; } +# Refresh ctags file +rctags(){ ctags -R --exclude="Build"; } + # Word and Line Counts words(){ wc -w; } lines(){ wc -l; } diff --git a/lib/win.c b/lib/win.c index 939bfa9..165a806 100644 --- a/lib/win.c +++ b/lib/win.c @@ -229,7 +229,7 @@ static void onclick(MouseAct act, MouseBtn btn, int x, int y) { break; case MOUSE_BTN_MIDDLE: onscroll((double)(y - Regions[SCROLL].y) / - (double)(Regions[SCROLL].height - Regions[SCROLL].y())); + (double)(Regions[SCROLL].height - Regions[SCROLL].y)); break; case MOUSE_BTN_RIGHT: view_scroll(win_view(EDIT), +row); diff --git a/term.c b/term.c index cbe35db..bc52920 100644 --- a/term.c +++ b/term.c @@ -5,8 +5,6 @@ #include #include -/* Mouse Handling - *****************************************************************************/ void onmouseleft(WinRegion id, size_t count, size_t row, size_t col) { } @@ -19,24 +17,10 @@ void onmouseright(WinRegion id, size_t count, size_t row, size_t col) { } -//MouseConfig* MouseHandlers[NREGIONS] = { -// [EDIT] = &(MouseConfig){ -// .left = mouse_left, -// .middle = mouse_middle, -// .right = mouse_right -// } -//}; - void onscroll(double percent) { } -/* Keyboard Handling - *****************************************************************************/ - -/* Main Routine - *****************************************************************************/ - void onupdate(void) { }