Frank Wunderlich wrote:
i want to change my "open files from project"-lua-script to a userlist (not 
open all, only write them to a list).
is there a possibility to hold "hidden" data, so i can only display filename 
(hiding path)?
You could create a Lua table who's keys are the short filenames and the values are the "hidden" data.

e.g. (untested)

local project_files = {
  'foo.lua' = '/home/user/projects/1/foo.lua',
  'bar.lua' = '/home/user/projects/1/bar.lua'
}

local str, sep = '', string.char(editor.AutoCSeparator)
for fname, _ in pairs(project_files) do
  str = str..fname..sep
end
str = string.sub(str, 1, -2) -- chop off last separator char

editor:AutoCShow(10, str) -- 10 could be another int

Take care,
-Mitchell;


as i see in the other scripts, the userlist is only a string where the entries 
separated by a char (editor.AutoCSeparator).

are there any simple examples? which IDs are not used?

Frank

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to