diff options
author | Ben Lu <ayroblu@gmail.com> | 2019-09-10 01:59:28 +0100 |
---|---|---|
committer | Ben Lu <ayroblu@gmail.com> | 2019-09-10 01:59:28 +0100 |
commit | 4edcb9e24827a5549d95c52ff02f430bd0bfe398 (patch) | |
tree | ee43985ff93521b840604d6218401f6ddc1d0b16 /src | |
parent | 72458f7275076f38a0a33de0031483eb3bd33bbc (diff) |
Add grammar and doc
Diffstat (limited to 'src')
-rw-r--r-- | src/conf.c | 1 | ||||
-rwxr-xr-x | src/doc | 4 | ||||
-rwxr-xr-x | src/gram.y | 2 |
3 files changed, 7 insertions, 0 deletions
@@ -76,6 +76,7 @@ void store_default_config_values() { put(user_conf_d, "numeric_zero", "1"); put(user_conf_d, "numeric_decimal", "1"); put(user_conf_d, "overlap", "0"); + put(user_conf_d, "truncate_cells", "0"); put(user_conf_d, "debug", "0"); put(user_conf_d, "ignorecase", "0"); put(user_conf_d, "trigger", "1"); @@ -1011,6 +1011,10 @@ Commands for handling cell content: If cell content exceedes column width it gets cut off to fit the column width. If overlap is set, the content overflows into the next column. + 'truncate_cells' [default off] + If cell content exceedes column width it gets replaced by asterisks '*'. + If truncate_cells is set, the content is cut off at the end of the cell. + 'debug' [default off] set this to see debug messages in screen @@ -1020,6 +1020,8 @@ setitem : 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_CELLS { parse_str(user_conf_d, "truncate_cells=1", TRUE); } + | K_NOTRUNCATE_CELLS { parse_str(user_conf_d, "truncate_cells=0", TRUE); } | K_AUTOBACKUP '=' NUMBER { char cmd[MAXCMD]; sprintf(cmd, "autobackup=%d", $3); |