-
Notifications
You must be signed in to change notification settings - Fork 0
simplyfile.util
Rizwanelansyah edited this page May 21, 2024
·
1 revision
List of avaible function or variable on
simplyfile.util module:
get devicon highlight name by data
- @field
namename of the directory - @field
absoluteabsolute path of the directory - @field
is_foldertrue if the directory is folder or symlink otherwise false - @field
iconnerd fonts icon that represent the directory - @field
hlhl name of the directory icon - @field
filetypefiletype if its a file
get all directory on path and represent each
directory as SimplyFile.Directory class
trim from /some/folder/../ to /some/ and
from /some/folder/./ to /some/folder/
open window with below config and enter to the window if enter is true and with buffer number buf and return the window handle
config:
{
width = width,
height = height,
row = row,
col = col,
relative = 'editor',
style = 'minimal',
border = 'single',
}add/override all field on additional_config table to the window handle win
make a buffer modifiable with buffer number in {...}
make a buffer not modifiable with buffer number in {...}
if value is not a function return value if value is a function call the value with parameter {...} then return the value