You want to type something and you needed some trivial patterns, you in correct place
Not even close. Just copy
and paste
all you find usefull.
- Array:
- Text:
- Fs (file system):
os_sep
— separator of current os, if you really need itexist
— check iffilepath
existis_dir
— check iffile
is directoryscandir
— find all files of directory and all subdirectoryread_lines
— readfilepath
by lineread_lines_async
— readfilepath
by line async TODOread_file
— read full fileread_file_async
— read full file asyncappend
— append something tofilepath
and save
- Async (something with coroutine):
choice
— async choice, especially forvim.ui
or something else, if you want to specify user-choice model
- Vim:
get_selection
— get visual selected textstart_insert
— into insert mode
- @L3MON4D3 —
fs/read_lines_async
- @FoamScience —
async/choice
- @chrisgrieser —
vim/start_insert