From ac859e8df2239bf25f934b76baf9923649f5ff8f Mon Sep 17 00:00:00 2001 From: "V. Guruprasad" Date: Mon, 24 Aug 2020 18:34:58 -0400 Subject: make filename display configurable --- src/gram.y | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gram.y') diff --git a/src/gram.y b/src/gram.y index e6b0a66..0806441 100755 --- a/src/gram.y +++ b/src/gram.y @@ -234,6 +234,7 @@ token S_YANKCOL %token K_NONUMERIC_DECIMAL %token K_NUMERIC_ZERO %token K_NONUMERIC_ZERO +%token K_FILENAME_IN_STATUS %token K_OVERLAP %token K_NOOVERLAP %token K_TRUNCATE @@ -1045,10 +1046,15 @@ setlist : /* things that you can 'set' */ setitem : - K_OVERLAP '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "overlap=0", TRUE); + K_FILENAME_IN_STATUS '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "filename_in_status=0", TRUE); + else parse_str(user_conf_d, "filename_in_status=1", TRUE); } + | K_FILENAME_IN_STATUS { parse_str(user_conf_d, "filename_in_status=1", TRUE); } + + | K_OVERLAP '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "overlap=0", TRUE); else parse_str(user_conf_d, "overlap=1", TRUE); } | K_OVERLAP { parse_str(user_conf_d, "overlap=1", TRUE); } | K_NOOVERLAP { parse_str(user_conf_d, "overlap=0", TRUE); } + | K_TRUNCATE '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "truncate=0", TRUE); else parse_str(user_conf_d, "truncate=1", TRUE); } | K_TRUNCATE { parse_str(user_conf_d, "truncate=1", TRUE); } -- cgit v1.2.3