# 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)"
# Regex search
Grep(){ grep -n "$@"; }
+# Refresh ctags file
+rctags(){ ctags -R --exclude="Build"; }
+
# Word and Line Counts
words(){ wc -w; }
lines(){ wc -l; }
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);
#include <ctype.h>
#include <win.h>
-/* Mouse Handling
- *****************************************************************************/
void onmouseleft(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) {
}