]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added logic to highlight line when address provided with file path
authorMichael D. Lowis <mike.lowis@gentex.com>
Fri, 21 Jul 2017 13:09:45 +0000 (09:09 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Fri, 21 Jul 2017 13:09:45 +0000 (09:09 -0400)
TODO.md
lib/view.c
tide-fetch.rb

diff --git a/TODO.md b/TODO.md
index d1d6d326e95afc6a279dcb285fcf7f972a682a19..0efafa627e05c9b64ba68911e066266d16a8b6c2 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -5,7 +5,6 @@ Up Next:
 * B2+B1 click executes command with selection as argument
 * right click to fetch file or line
 * Run commands in the background and don't block the main thread.
-* Add a separate config option for pty tags
 * update man pages with new functionality
 
 * moving from tags to the gutter does not transfer focus to edit region
index c0124fc32b7034c13f3e2040dc76504a9b52e8c0..2232ce8d20f1b30fc3a34ce2a9a5e6b396f70393 100644 (file)
@@ -41,6 +41,8 @@ void view_init(View* view, char* file, void (*errfn)(char*)) {
     buf_init(&(view->buffer), errfn);
     if (file) {
         view_jumpto(view, false, buf_load(&(view->buffer), file));
+        view_eol(view, false);
+        view_selctx(view);
         colors_init(view->buffer.path);
     }
 }
index 6853908f1ea6fb687eff2619694a70b2c0f70884..287b4ae1c10ed22323aeceff4cb48e4ecaaf341e 100755 (executable)
@@ -38,7 +38,6 @@ end
 
 def open_with(app)
   app = Apps[app] || ENV[app.to_s.upcase]
-  puts "app: " + app
   raise RuleError.new() if not app
   spawn("#{app} #{$item}")
 end