My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

picker 624 B

il y a 4 ans
il y a 4 ans
1234567891011121314151617181920212223242526
  1. #!/usr/bin/env sh
  2. # Description: Pick files and pipe the newline-separated list to another utility
  3. #
  4. # Usage:
  5. # Copy this file in your $PATH, make it executable and preferably name it to picker.
  6. # Run commands like:
  7. # ls -l `picker`
  8. # cd `picker`
  9. # vimdiff `picker`
  10. # or, in fish shell:
  11. # ls -l (picker)
  12. # cd (picker)
  13. # vimdiff (picker)
  14. #
  15. # Note: This use case is limited to picking files, other functionality may not work as expected.
  16. #
  17. # Shell: POSIX compliant
  18. # Author: Arun Prakash Jana
  19. nnn -p /tmp/picked
  20. if [ -f /tmp/picked ]; then
  21. tr '\0' '\n' < /tmp/picked
  22. rm /tmp/picked
  23. fi