Skip to content

simplyfile.mapping

Rizwanelansyah edited this page May 24, 2024 · 3 revisions

simplyfile.mapping

List of avaible function or variable on simplyfile.mapping module:

open(dir)

if dir is a folder or symlink open cange directory to the dir if dir is a file edit dir on simplyfile explorer

go_to_parent()

go to the parent directory on simplyfile explorer

add()

prompt with vim.ui.input() first and add the file with the name if name ends with "/" create a folder on simplyfile explorer

rename(dir)

rename the dir with the result of vim.ui.input() prompt on simplyfile explorer

delete(dir)

ask with vim.ui.select() first if the answer is Yes delete permanently dir on simplyfile explorer

search()

set current search value on simplyfile explorer with the input

paste(dir)

paste the last register on clipboard on simplyfile explorer path

paste_select(dir)

open a clipboard menu and paste the selected register on clipboard on simplyfile explorer path

refresh(dir)

refresh the file explorer directories

redraw(dir)

redraw the file explorer

default

default mapping for keymaps config

override_state(value)

override field on vim.g.simplyfile_explorer with all fields on value

get_filter()

get current filter function

get_sort()

get current sort function

filter_dirs()

filter all file/folder on simplyfile explorer

search_dirs()

find dir that match with current search value on simplyfile explorer

filter(dir)

select filter on simplyfile explorer

set_filter_to_default(dir)

set current filter to default value

toggle_reverse_filter(dir)

toggle the reversed filter

sort(dir)

select filter sort on simplyfile explorer

set_sort_to_default(dir)

set current sort to default value

toggle_reverse_sort(dir)

toggle the reversed sort

Clone this wiki locally