@@ -44,7 +44,7 @@ local function entry_maker1(entry)
4444 local name = entry .value
4545 local local_path = github_dir .. sep .. name
4646 local local_exists = util .path_exists (local_path ) and true or false
47- local local_icon = local_exists and " 💾Local " or " 🌐"
47+ local local_icon = local_exists and " 💾 " or " 🌐"
4848 if filter == " local" and not local_exists then
4949 return nil
5050 end
@@ -54,7 +54,7 @@ local function entry_maker1(entry)
5454 end
5555 return {
5656 value = entry .value ,
57- display = entry . display .. " " .. local_icon ,
57+ display = local_icon .. " " .. entry . display .. " " ,
5858 ordinal = entry .value ,
5959 is_private = entry .isPrivate ,
6060 is_fork = entry .isFork ,
@@ -81,13 +81,16 @@ local finder = finders.new_table({
8181
8282local function selection_open_project ()
8383 local selection = action_state .get_selected_entry ()
84- local local_path = selection .local_path
85- local local_exists = selection .local_exists
84+ local github_dir = config .github_dir
85+ local sep = config .sep
86+ local name = selection .value
87+ local local_path = github_dir .. sep .. name
88+ local local_exists = util .path_exists (local_path )
8689
8790 if local_exists then
8891 util .open_project (local_path )
8992 else
90- vim .notify (" Selected:" , selection .value , " local_path: " , local_path )
93+ vim .notify (" Selected:" .. selection .value .. " local_path: " .. local_path )
9194 end
9295end
9396
0 commit comments