tbabej / vit

Placeholder to demostrate issue porting for VIT.
0 stars 0 forks source link

[VT-49] 'gg' equivalent to '0' for moving to first line? #49

Closed tbabej closed 6 years ago

tbabej commented 6 years ago

Scott Kostyshak on 2013-04-06T21:12:19Z says:

'gg' is a Vi binding for moving to the first line in a file. It would be nice to have this in Vit.

Below is a diff that implements it:

* -- vit-1.1/getch.pl   2013-04-03 08:49:06.000000000 -0400
+++ vit-1.1new/getch.pl 2013-04-06 16:56:40.928196459 -0400
@@ -9,7 +9,7 @@

     CASE: {
*       if ( $ch eq '0' ) {
+      if ( $ch eq '0' || ( $ch eq 'g' && $prev_ch eq 'g' ) ) {
         $task_selected_idx = 0;
         $display_start_idx = 0;
         $refresh_needed = 1;

tbabej commented 6 years ago

Migrated metadata:

Created: 2013-04-06T21:12:19Z
Modified: 2014-02-09T01:16:51Z
tbabej commented 6 years ago

steve rader on 2013-04-06T21:56:04Z says:

sure.