My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.1 KiB

  1. #compdef nnn
  2. #
  3. # Completion definition for nnn.
  4. #
  5. # Author:
  6. # Arun Prakash Jana <engineerarun@gmail.com>
  7. #
  8. setopt localoptions noshwordsplit noksharrays
  9. local -a args
  10. args=(
  11. '(-A)-A[disable dir auto-select]'
  12. '(-b)-b[bookmark key to open]:key char'
  13. '(-c)-c[cli-only opener]'
  14. '(-d)-d[start in detail mode]'
  15. '(-e)-e[open text files in $VISUAL/$EDITOR/vi]'
  16. '(-E)-E[use EDITOR for undetached edits]'
  17. '(-f)-f[use readline history file]'
  18. '(-F)-F[show fortune]'
  19. '(-g)-g[regex filters]'
  20. '(-H)-H[show hidden files]'
  21. '(-K)-K[detect key collision]'
  22. '(-n)-n[start in type-to-nav mode]'
  23. '(-o)-o[open files only on Enter]'
  24. '(-p)-p[copy selection to file]:file name'
  25. '(-Q)-Q[disable quit confirmation]'
  26. '(-r)-r[show cp, mv progress (Linux-only)]'
  27. '(-R)-R[disable rollover at edges]'
  28. '(-s)-s[load session]:session name'
  29. '(-S)-S[persistent session]'
  30. '(-t)-t[timeout to lock]:seconds'
  31. '(-T)-T[a d e r s t v]:key'
  32. '(-V)-V[show program version and exit]'
  33. '(-x)-x[notis, sel to system clipboard]'
  34. '(-h)-h[show program help]'
  35. '*:filename:_files'
  36. )
  37. _arguments -S -s $args