Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

[Feature] simplify file operationΒ #30

@roachsinai

Description

@roachsinai

When using defx I can use setting below to create file/directory, remove file, and no need to remember all that maps, just one map m.

nnoremap <silent><buffer>m :call <sid>defx_context_menu()<CR>
function! s:defx_context_menu() abort
  let l:actions = ['new_multiple_files', 'rename', 'copy', 'move', 'paste', 'remove']
  let l:selection = confirm('Action?', "&New file/directory\n&Rename\n&Copy\n&Move\n&Paste\n&Delete")
  silent exe 'redraw'
  return feedkeys(defx#do_action(l:actions[l:selection - 1]))
endfunc

Could this possible when using LeaderF-filer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions