-
Notifications
You must be signed in to change notification settings - Fork 7
Components
These components automatically created by a function which takes the string from desired function.
A custom parameter lets you create components from the given string in name parameter.
e.g. A custom component
{type = "string", custom = true, name = "Hello World!"},
Create a component that has hovered file's or directory's name.
e.g.
{type = "string", custom = false, name = "hovered_name"},
e.g. With default config parameters
{type = "string", custom = false, name = "hovered_name", params = {{ trimed = false, show_symlink = false, max_length=24, trim_length=10 }},
Create a component that has hovered file's or directory's path.
e.g.
{type = "string", custom = false, name = "hovered_path"},
e.g. With default config parameters
{type = "string", custom = false, name = "hovered_path", params = {{ trimed = false, max_length=24, trim_length=10 }},
Create a component that has hovered file's or directory's size.
e.g.
{type = "string", custom = false, name = "hovered_size"},
Create a component that has hovered file's mime.
e.g.
{type = "string", custom = false, name = "hovered_mime"},
Create a component that has hovered file's user and group ownership.
e.g.
{type = "string", custom = false, name = "hovered_ownership"},
Create a component that has hovered file's or directory's extension.
e.g.
{type = "string", custom = false, name = "hovered_file_extension"},
Create a component that has current active tab's path.
e.g.
{type = "string", custom = false, name = "tab_path"},
e.g. With default config parameters.
{type = "string", custom = false, name = "tab_path", params = {{ trimed = false, max_length=24, trim_length=10 }},
Create a component that has active tab's mode.
e.g.
{type = "string", custom = false, name = "tab_mode"},
Create a component that has number of files in the current active tab.
e.g.
{type = "string", custom = false, name = "tab_num_files"},
Create a component that has cursor's position in the current active tab.
e.g.
{type = "string", custom = false, name = "cursor_position"},
Create a component that has cursor's percentage in the current active tab.
e.g.
{type = "string", custom = false, name = "cursor_percentage"},
Create a component that has date according to the given format (See formats).
e.g.
{type = "string", custom = false, name = "date", params = {"%A, %d %B %Y"}},
Coloreds is an array of pair of string and color. These components used to multi-colorize single component but they can also used with single pair of string and color, too.
A custom parameter lets you create components from the given coloreds in name parameter.
e.g. A custom component
{type = "coloreds", custom = true, name = {{"Hello ", "red"}, {"World", "green"}}},
Create a component that has hovered file's or directory's permissions. Colors of these component can be configured in config.
e.g.
{type = "coloreds", custom = false, name = "permissions"},
Create a component that has number of selected and yanked (copied or cut) files of the active tab. Colors of these component can be configured in config.
e.g.
{type = "coloreds", custom = false, name = "count"},
Create a component that has number of task states. Colors of these component can be configured in config.
e.g.
{type = "coloreds", custom = false, name = "task_states"},
Create a component that has number of task workloads. Colors of these component can be configured in config.
e.g.
{type = "coloreds", custom = false, name = "task_workload"},
Create a component that has a colored string-based component.
e.g.
{type = "coloreds", custom = false, name = "string_based_component", params = {"date", "blue", {"%A, %d %B %Y"}}},
These components are the most complex components type. They need to manually created and adjusted.
A custom parameter lets you create components from the given line in name parameter.
e.g. A custom component
{type = "line", custom = true, name = custom_line},
Create a component that shows tabs. The side which will be needs to be written again in params parameter.
e.g.
{type = "line", custom = false, name = "tabs", params = {"left"}},