Shougo / defx.nvim

:file_folder: The dark powered file explorer implementation for neovim/Vim8
MIT License
1.17k stars 86 forks source link

cancel paste, link, move state #317

Closed v6cc closed 3 years ago

v6cc commented 3 years ago

I use defx-icons, after copy,link,move will have icon show

but seems without a method to cancel state so after paste , icon can't cancel

could you support ACTIONS cancel copy or link or move state? or this is defx-icons problem ?

v6cc commented 3 years ago

@Shougo I update and use nnoremap <silent><buffer><expr><nowait> ud defx#do_action('clear_clipboard'), then get error

Error detected while processing function defx#call_action[9]..defx#util#rpcrequest:
line   18:
Error invoking '_defx_do_action' on channel 6 (python3-rplugin-host):
error caught in request handler '_defx_do_action [['clear_clipboard', [], {'columns': 'indent:icons:space:filename:
git:type', 'winrelative': 'editor', 'auto_cd': 1, 'prev_bufnr': 2, 'root_marker': '[in] ', 'resume': 1, 'close': Fa
lse, 'auto_recursive_level': 0, 'sort': 'filename', 'listed': False, 'new': False, 'ignored_files': '.*,*.class', '
focus': True, 'direction': 'topleft', 'visual_end': 0, 'winheight': 30, 'profile': False, 'preview_height': 12, 'po
st_action': '', 'buffer_name': 'default', 'winwidth': 30, 'filtered_files': '', 'split': 'vertical', 'preview_width
': 40, 'winborder': 'none', 'visual_start': 0, 'cursor': 10, 'floating_preview': False, 'prev_last_bufnr': -1, 'sea
rch': '', 'prev_winid': 1001, 'wincol': 28, 'winrow': 20, 'session_file': '', 'ignored_recursive_files': '.git,node
_modules,__pycache__,miniprogram_npm,colorui', 'vertical_preview': False, 'show_ignored_files': False, 'drives': []
, 'toggle': 1}]]':
Traceback (most recent call last):
....
oard
    view._clipboard.action = ClipboardAction.NONE
NameError: name 'ClipboardAction' is not defined
Shougo commented 3 years ago

Fixed.

v6cc commented 3 years ago

thanks you so fast solved problem