* Add a GoTo tag for ctags lookup and line number jump
* Use select to check for error strings in exec.c
* Add a tools dir to namespace utility scripts only useful inside the editor
-* shift+click to extend selection
* implement command diffing logic to optimize the undo/redo log
* add command line flags to toggle options (Tabs, Indent, etc..)
* backspace should delete indent if preceded by whitespace
/* Mouse Handling
*****************************************************************************/
static void mouse_left(enum RegionId id, size_t count, size_t row, size_t col) {
- if (count == 1)
- view_setcursor(getview(id), row, col);
- else if (count == 2)
+ if (count == 1) {
+ if (x11_keymodsset(ModShift))
+ view_selext(getview(id), row, col);
+ else
+ view_setcursor(getview(id), row, col);
+ } else if (count == 2) {
view_select(getview(id), row, col);
- else if (count == 3)
+ } else if (count == 3) {
view_selword(getview(id), row, col);
+ }
}
static void mouse_middle(enum RegionId id, size_t count, size_t row, size_t col) {