-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I open files that is including space memodir? #50
Comments
Could you pleaes try this?
|
This memo command spawn executable
This quotes does not work when using notepad. Could you please this patch? diff --git a/main.go b/main.go
index a6e5dc8..1b07ba3 100644
--- a/main.go
+++ b/main.go
@@ -414,7 +414,9 @@ func (cfg *config) runfilter(command string, r io.Reader, w io.Writer) error {
func (cfg *config) runcmd(command, pattern string, files ...string) error {
var args []string
for _, file := range files {
- args = append(args, shellquote(file))
+ if strings.ContainsRune(file, ' ') {
+ args = append(args, shellquote(file))
+ }
}
cmdargs := strings.Join(args, " ")
|
I patched but same error occured..
And when exec "config", it's openend blank notepad. It seem to need shellquote for other case. Thank you for your cooperation. I'll investigate my situation continually and send PR. |
I set following config:
When I'm trying "memo edit", and after select a file, I got following error(Sorry for only Japanese):
Could you let me know how to write a configuration file to open a file under such a folder?
# I could open when remove call
shellquote(file)
but it's not correct solution...The text was updated successfully, but these errors were encountered: