-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Extension-less files not supported? #23
Comments
Are you on v1.1 (released today)? Which opener variable did you define? We do detect and attempt to open plaintext files in EDITOR (fallback vi). But that works only if NNN_OPENER is not used. I don't have NNN_OPENER and it's working for me right now. |
I have none of the NNN_* env vars defined. I get the same behavior on the v1.1 release too.
If it matters, I am using To add, if I hit e instead of RET on |
What's the output of |
That's it! It outputs |
This is not a good fix, but I tested this out and it works for me: diff --git a/nnn.c b/nnn.c
index 110495e..e6b8d2b 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1598,7 +1598,7 @@ nochange:
if (get_output(cmd, MAX_CMD_LEN) == NULL)
continue;
- if (strstr(cmd, "ASCII text") != NULL) {
+ if (strstr(cmd, "ASCII English text") != NULL) {
exitcurses();
run = xgetenv("EDITOR", "emacsclient");
spawn(run, newpath, NULL, 0); |
Also I found the use of PAGER there more intuitive than EDITOR ( kaushalmodi@05d7641 ). If I wanted to edit the file, I would have hit the |
I would have to look into the magic numbers and see if I can do anything better than this.
I don't think this is too relevant here. The keybind here is |
You can use the "-i or --mime" option of
|
@olethanh yes, that'ld be nice! I'll push it in. |
@kaushalmodi @olethanh please test with the fix and confirm everything works as expected. Thanks! |
Merge fix for jarun#23 from upstream jarun@cbbe032
Thanks! I confirm this fix. |
When I hit Return on files like CHANGELOG or Makefile, I get "No file association".
The text was updated successfully, but these errors were encountered: