Skip to content
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

command mode #92

Closed
wants to merge 6 commits into from
Closed

command mode #92

wants to merge 6 commits into from

Conversation

stokhos
Copy link
Contributor

@stokhos stokhos commented Feb 10, 2021

I have done the implementation, I hope you can give me some feedback over this.

  • command mode
  • replaced "Press 'q' to quit" to name of current mode.
  • add a KeyMap for each mode.
  • dot graph is saved to log.

I added a KeyMap for each mode, those codes are duplicates. There should be a better way of doing this think.

In vim's command mode, we press : cmd and <cr> to execute that command. Should I do it now, or leave it for a another push, as this might relate to insert mode?

fixes #90

@stokhos stokhos force-pushed the command_mode branch 3 times, most recently from 2f4614c to 7da272c Compare February 10, 2021 04:42
kneasle and others added 4 commits February 9, 2021 23:45
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.61...v1.0.62)

Signed-off-by: dependabot[bot] <support@github.com>
minor fixes

command modef

minor imporovements

command mode

minor fixes

asdf

asdf
minor fixes

command modef

minor imporovements

command mode

minor fixes

asdf

asdf
@kneasle
Copy link
Owner

kneasle commented Feb 11, 2021

OK so I started writing a review for this, and I realised that implementing command mode in the current set-up is actually really hard (and needs knowledge of basically every part of the code).

So I think it's probably best for both of us if I implement this. Please don't get me wrong - I really appreciate the work you're putting into Sapling and it's really nice to have help on a project like this, and I'm happy to give pointers and advice when needed 😁. But this specific PR will involves too many moving parts. If you really want to do this specifically, then I'll give you the help required, but I think it would probably involve many many rounds of code review and probably wouldn't be particularly interesting for you.

I think the best thing for you to implement is the cursor undo (#88).

@stokhos
Copy link
Contributor Author

stokhos commented Feb 11, 2021

No problem!

@stokhos stokhos closed this Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement command mode
2 participants