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

Bug: macro recording of typing doesn't work. #111

Open
wrightwriter opened this issue May 29, 2023 · 9 comments
Open

Bug: macro recording of typing doesn't work. #111

wrightwriter opened this issue May 29, 2023 · 9 comments

Comments

@wrightwriter
Copy link

It only records a single character stroke. Multiple characters don't work

@terryzfeng
Copy link
Contributor

Using [q] to record a macro works for me. Can you describe your issue in more detail?

@wrightwriter
Copy link
Author

Hey, very weird, I can't get a macro recording of typing working under multiple different chromium browsers and multiple different websites - https://editor.bitwiser.in and 2 other separate ones we are working on!

@wrightwriter
Copy link
Author

I used i and a to enter insert mode

@terryzfeng
Copy link
Contributor

Hmm perhaps https://editor.bitwiser.in isn't up to date for some reason?

I am able to get it to work on my website:
https://ccrma.stanford.edu/~tzfeng/webchuck-ide/dist

@wrightwriter
Copy link
Author

wrightwriter commented Sep 16, 2023

Oh that works! We use the https://unpkg.com/monaco-vim/dist/monaco-vim version in https://compute.toys/new (I forgot why, but it didn't work as npm package in react/nextjs). Maybe it isn't updated?

@terryzfeng
Copy link
Contributor

unpkg seems to be pointing to version 0.4.0 which is what I'm using as well on npm. Macros also seem to be working at https://godbolt.org/

Are you on 0.4.0 as well?

@wrightwriter
Copy link
Author

wrightwriter commented Sep 16, 2023

very weird, it should be fetching the current version from unpckg! Tried updating monaco as well, but no change. It's weird that we have this issue on 2 different projects.

@terryzfeng
Copy link
Contributor

Hmm yeah, you could hard point it to 0.4.0 too if you haven't already: https://unpkg.com/monaco-vim@0.4.0/dist/monaco-vim.js

@wrightwriter
Copy link
Author

wrightwriter commented Sep 17, 2023

huh, that version actually breaks any kind of macro replay, it seems.
if it matters - I initialize monaco-vim like this:

            window.require.config({
                paths: {
                    // 'monaco-vim': 'https://unpkg.com/monaco-vim/dist/monaco-vim'
                    'monaco-vim': 'https://unpkg.com/monaco-vim@0.4.0/dist/monaco-vim.js'
                }
            });
            window.require(['monaco-vim'], MonacoVim => {
                const statusNode = document.querySelector('.vim-status');
                setVimContext(MonacoVim.initVimMode(editor, statusNode));
            });

Does this look correct?

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

No branches or pull requests

2 participants