list dotfiles
This commit is contained in:
@@ -18,13 +18,14 @@ local function check_dir_access(path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function list_dirs(path)
|
local function list_dirs(path)
|
||||||
|
local ls_cmd = 'ls -A --ignore=.git '
|
||||||
if path == nil then
|
if path == nil then
|
||||||
return syslist('ls')
|
return syslist(ls_cmd)
|
||||||
elseif check_dir_access(path) == false then
|
elseif check_dir_access(path) == false then
|
||||||
-- TODO: display an error here (permission denied)
|
-- TODO: display an error here (permission denied)
|
||||||
return {}
|
return {}
|
||||||
else
|
else
|
||||||
return syslist('ls ' .. path)
|
return syslist(ls_cmd .. path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -219,8 +220,8 @@ local function set_mappings()
|
|||||||
local maps = {
|
local maps = {
|
||||||
j = 'j$B',
|
j = 'j$B',
|
||||||
k = 'k$B',
|
k = 'k$B',
|
||||||
l = '<Nop>',
|
l = '',
|
||||||
h = '<Nop>'
|
h = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
for k,v in pairs(maps) do
|
for k,v in pairs(maps) do
|
||||||
|
|||||||
Reference in New Issue
Block a user