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.
 
 
 
 
 
 

47 lines
1.4 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[auto-create NNN_FIFO]'
  12. '(-A)-A[disable dir auto-select]'
  13. '(-b)-b[bookmark key to open]:key char'
  14. '(-c)-c[cli-only opener]'
  15. '(-C)-C[color by context]'
  16. '(-d)-d[start in detail mode]'
  17. '(-D)-D[dirs in context color]'
  18. '(-e)-e[open text files in $VISUAL/$EDITOR/vi]'
  19. '(-E)-E[use EDITOR for undetached edits]'
  20. '(-f)-f[use readline history file]'
  21. '(-F)-F[show fortune]'
  22. '(-g)-g[regex filters]'
  23. '(-H)-H[show hidden files]'
  24. '(-J)-J[no auto-proceed on select]'
  25. '(-K)-K[detect key collision]'
  26. '(-l)-l[lines to move per scroll]:val'
  27. '(-n)-n[start in type-to-nav mode]'
  28. '(-o)-o[open files only on Enter]'
  29. '(-p)-p[copy selection to file]:file name'
  30. '(-P)-P[plugin key to runn]:key char'
  31. '(-Q)-Q[disable quit confirmation]'
  32. '(-r)-r[show cp, mv progress (Linux-only)]'
  33. '(-R)-R[disable rollover at edges]'
  34. '(-s)-s[load session]:session name'
  35. '(-S)-S[persistent session]'
  36. '(-t)-t[timeout to lock]:seconds'
  37. '(-T)-T[a d e r s t v]:key'
  38. '(-u)-u[use selection (no prompt)]'
  39. '(-V)-V[show program version and exit]'
  40. '(-w)-C[hardware cursor mode]'
  41. '(-x)-x[notis, sel to system clipboard]'
  42. '(-h)-h[show program help]'
  43. '*:filename:_files'
  44. )
  45. _arguments -S -s $args