From 4dd35ef0e154ab1836fc923a33196a4101a97a9c Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Tue, 23 Feb 2021 22:10:19 +0100 Subject: feat: file browser & refresh interface (#290) and more picker api stuff for sunjon. refresh is implemented for file_browser and git_status --- lua/telescope/actions/init.lua | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lua/telescope/actions/init.lua') diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index c2354b4..9286833 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -245,16 +245,11 @@ actions.git_staging_toggle = function(prompt_bufnr) local cwd = action_state.get_current_picker(prompt_bufnr).cwd local selection = action_state.get_selected_entry() - -- If parts of the file are staged and unstaged at the same time, stage - -- changes. Else toggle between staged and unstaged if the file is tracked, - -- and between added and untracked if the file is untracked. if selection.status:sub(2) == ' ' then utils.get_os_command_output({ 'git', 'restore', '--staged', selection.value }, cwd) else utils.get_os_command_output({ 'git', 'add', selection.value }, cwd) end - do_close(prompt_bufnr, true) - require('telescope.builtin').git_status() end local entry_to_qf = function(entry) -- cgit v1.2.3