diff options
author | Erlend Lind Madsen <erlendf80@gmail.com> | 2021-10-04 13:28:02 +0200 |
---|---|---|
committer | Erlend Lind Madsen <erlendf80@gmail.com> | 2021-10-04 13:28:02 +0200 |
commit | 08a01cb00f62b8c0761a0fde7c3781e05f9bef65 (patch) | |
tree | d83c92245ee2a0f1da3596b0a71426976f165238 | |
parent | 2b24123e83810e6e34c65a308f983e1a4c1c0380 (diff) | |
download | vis-cursors-08a01cb00f62b8c0761a0fde7c3781e05f9bef65.tar.gz |
better explain folder compress
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,7 +40,7 @@ local read_cursors = function() local prev_dir for line in f:lines() do for path, pos in string.gmatch(line, '(.+)[,%s](%d+)') do - -- append prev dir if '@' (compressed) + -- uncompress prev dir if '@' local repeat_dir = string.match(path, '^%@') if repeat_dir then local filename = string.match(path, '^.*/(.*)') @@ -76,7 +76,7 @@ local write_cursors = function() local prev_dir for i, path in ipairs(paths) do local dir = string.match(path, '(.*/)') - -- simplify prev dirs to '@' + -- compress dir to just '@' if same as prev dir if dir == prev_dir then local filename = string.match(path, '^.*/(.*)') table.insert(t, string.format('@/%s,%d', filename, cursors[path])) |