Thanks for the wonderful evil mode. I have found following minor issues and was not able to find an issue tracker for the project 1. Shell-mode on windows: It blocks all the output text. If I get out of the evil mode the console output is displayed again. Repro steps are in emacs with evil mode open shell (M-x shell) and then type say dir you will see no output. If you disable evil-mode the text is displayed again. 2. Bookmark and dired mode: On pressing enter the file does not open.
ad. 2) I think that the problem is that Dired buffers are not started in Emacs-mode per default (they are started in normal mode -> new keymap). Try C-z inside the dired buffer and then everything should work. The Dired stuff should already be fixed in commit 51e4b94d ! Try updating your evil repo. Regards Thomas On Thu, Jul 21, 2011 at 10:36 PM, Neeraj Sharma <[email protected]> wrote:
Thanks for the wonderful evil mode. I have found following minor issues and was not able to find an issue tracker for the project 1. Shell-mode on windows: It blocks all the output text. If I get out of the evil mode the console output is displayed again. Repro steps are in emacs with evil mode open shell (M-x shell) and then type say dir you will see no output. If you disable evil-mode the text is displayed again. 2. Bookmark and dired mode: On pressing enter the file does not open.
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
On 2011-07-21 22:36 +0200, Neeraj Sharma wrote:
Thanks for the wonderful evil mode.
Thanks for your interest in Evil. Please note that Evil is under development and some features (e.g., Ex) are still missing. You can always get the latest updates with "git pull".
Shell-mode on windows: It blocks all the output text.
Fixed in commit 37c9490.
Bookmark and dired mode: On pressing enter the file does not open.
bookmark-bmenu-mode is fixed in commit 623bab7. Dired should be fixed already -- are you using the latest revision? Evil assigns Dired to Emacs state, so that by default, no vi bindings are active in a Dired buffer.[1] As Thomas points out, you can use "C-z" to toggle between Emacs state and Normal state. [1] It is perfectly possible to add vi bindings to Dired mode, but it requires some thought with regard to the overlap between Dired and vi. Suggestions are welcome. -- Vegard
Thanks for the reply Vegard. I just pulled the latest and it does seem to fix my issue with windows shell mode. Regarding dired mode, I do see its in emacs state by default but i find it somewhat confusing for the fingers to go back and forth between j/k (other modes) and n/p (dired). Moreover, even if I go to the evil-normal-state I expect pressing enter or "o" would open the file but it just goes to the next line. I realize that its not supported but it comes naturally. On vim, I really like the NERDTREE shortcuts so replicating those is what comes to my mind. Thanks & Regards, Neeraj Sharma On Fri, Jul 22, 2011 at 3:05 PM, Vegard Øye <[email protected]> wrote:
On 2011-07-21 22:36 +0200, Neeraj Sharma wrote:
Thanks for the wonderful evil mode.
Thanks for your interest in Evil. Please note that Evil is under development and some features (e.g., Ex) are still missing. You can always get the latest updates with "git pull".
Shell-mode on windows: It blocks all the output text.
Fixed in commit 37c9490.
Bookmark and dired mode: On pressing enter the file does not open.
bookmark-bmenu-mode is fixed in commit 623bab7. Dired should be fixed already -- are you using the latest revision? Evil assigns Dired to Emacs state, so that by default, no vi bindings are active in a Dired buffer.[1] As Thomas points out, you can use "C-z" to toggle between Emacs state and Normal state.
[1] It is perfectly possible to add vi bindings to Dired mode, but it requires some thought with regard to the overlap between Dired and vi. Suggestions are welcome.
-- Vegard
On 2011-07-23 08:15 +0200, Neeraj Sharma wrote:
Regarding dired mode, I do see its in emacs state by default but i find it somewhat confusing for the fingers to go back and forth between j/k (other modes) and n/p (dired).
Dired now comes up in Normal state by default (commit 9a44dbe). As a modest starting point, I have added vi bindings for "h", "j", "k" and "l", but left everything else untouched.
On vim, I really like the NERDTREE shortcuts so replicating those is what comes to my mind.
That is an interesting suggestion. Since you are used to NERDTree's shortcuts, what are the biggest differences between them and Dired's? -- Vegard
On Sun, Jul 24, 2011 at 19:31, Vegard Øye <[email protected]> wrote:
On 2011-07-23 08:15 +0200, Neeraj Sharma wrote:
Regarding dired mode, I do see its in emacs state by default but i find it somewhat confusing for the fingers to go back and forth between j/k (other modes) and n/p (dired).
Dired now comes up in Normal state by default (commit 9a44dbe). As a modest starting point, I have added vi bindings for "h", "j", "k" and "l", but left everything else untouched.
On vim, I really like the NERDTREE shortcuts so replicating those is what comes to my mind.
That is an interesting suggestion. Since you are used to NERDTree's shortcuts, what are the biggest differences between them and Dired's?
I would really like to avoid having this enter Evil. If you want to add NERDTree-specific mappings to Dired mode, then by all means add them to your .emacs, but keep them out of Evil. I don’t want to have to learn NERDTree for Vim to be able to use Dired for Emacs. Learning to use Dired while working inside Emacs makes a lot more sense to me. I mean, it’s already documented. If, however, there are clashes between Dired mappings and Evil movement mappings, then they need to be resolved and looking at NERDTree for suggestions might make sense in this case.
On 2011-07-26 09:45 +0200, Nikolai Weibull wrote:
If you want to add NERDTree-specific mappings to Dired mode, then by all means add them to your .emacs, but keep them out of Evil.
I agree. My only concern was any Dired commands that might have been overwritten by the vi bindings for "h", "j", "k" and "l".
If, however, there are clashes between Dired mappings and Evil movement mappings, then they need to be resolved and looking at NERDTree for suggestions might make sense in this case.
As it turns out, nothing important was bound to these keys, with the exception of "l", which was bound to `dired-do-redisplay'. The NERDTree key for refreshing the current directory is "r", which is unbound in Dired, so it is a pretty good replacement. -- Vegard
On Tue, Jul 26, 2011 at 19:44, Vegard Øye <[email protected]> wrote:
On 2011-07-26 09:45 +0200, Nikolai Weibull wrote:
If, however, there are clashes between Dired mappings and Evil movement mappings, then they need to be resolved and looking at NERDTree for suggestions might make sense in this case.
As it turns out, nothing important was bound to these keys, with the exception of "l", which was bound to `dired-do-redisplay'. The NERDTree key for refreshing the current directory is "r", which is unbound in Dired, so it is a pretty good replacement.
That sounds very reasonable.
participants (4)
-
Neeraj Sharma -
Nikolai Weibull -
Thomas Hisch -
Vegard Øye