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

Can dot (.) operator be preserved across cells? #17

Open
dtabell opened this issue Nov 23, 2020 · 5 comments
Open

Can dot (.) operator be preserved across cells? #17

dtabell opened this issue Nov 23, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@dtabell
Copy link

dtabell commented Nov 23, 2020

When I make a change in one cell, I can then repeat that change elsewhere in the same cell
with everyone's favorite magic vim command, .. This does not work across cell boundaries.
Is there any way to fix this?

Yes, one might mush all the cells together, make the changes , and then un-mush the cells,
but that's so non-vim.

@dtabell dtabell changed the title Can dot (.) be preserved across cells? Can dot (.) operator be preserved across cells? Nov 24, 2020
@ianhi
Copy link
Collaborator

ianhi commented Dec 21, 2020

I don't think there's an easy way for the extension to do this as jlab makes each cell a separate codemirror editor instance.

@firai firai added the enhancement New feature or request label Oct 1, 2023
@joelostblom
Copy link
Contributor

This would be super useful if it ever becomes technically feasible in the future!

@ianhi
Copy link
Collaborator

ianhi commented Oct 2, 2023

This works by default in jlab4!

But remains a won't/can't fix for jlab3.

If i'm wrong and somehow fooled myself into thinking this works please feel free to re-open

@ianhi ianhi closed this as completed Oct 2, 2023
@joelostblom
Copy link
Contributor

@ianhi Hmm, it doesn't seem to work for me in jlab 4.05. More precisely. It seem to kind of work sometimes, and it maybe dependent on if a cell already exists (and maybe also if it is in insert mode?) by the time the repeat operation is performed. An example of something that does not work is to write a word in an existing cell, create a new cell, and then press . for the same word to be repeated in the new cell. Does that work for you @ianhi ?

@ianhi
Copy link
Collaborator

ianhi commented Oct 6, 2023

ahh indeed it doesn't seem to translate properly to new cells. I wonder if theres any way we can pull some of the state of when a new cell gets created, I guess it doesn't have access to the same history

@ianhi ianhi reopened this Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants