Closed novoid closed 4 years ago
Hi,
The mentioned functionality is now in the orly
package:
(define-key dired-mode-map "r" 'orly-start)
To test, open /usr/bin
and press r on any executable.
Also works with this simple Python script:
#!/usr/bin/env python3
name = input("name: ")
print("Hello,", name)
The code detects if the file is executable and then runs it in comint.
Hi,
This issue refers to https://oremacs.com/2015/01/04/dired-nohup/ which explains how external commands could be invoked from dired.
My question refers to the possibility to do this for external commands that require user input as well.
The example command that requires user input is from https://github.com/novoid/appendfilename/
Testing the
python -i
approach on Windows 10 where I configured cygwin for the shell:Enter
!
and:Results in:
Testing the compile method: »"C-u M-x compile", then your script name«
Enter
Results in: