-
Notifications
You must be signed in to change notification settings - Fork 3
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
Pasting should overtype rather than insert in overtype mode #15
Comments
Indeed |
hi @brunetton, greets Andreas |
Hi @andread, I do not use Atom anymore so I don't take time on this project. Do you want me to add you as a project manager so you can merge PRs and manage other team people? |
@brunetton hello Bruno, regards, Andreas |
At end-of-line it should just append to the end; it should not overwrite the linefeed and overtype into the next line. |
I do use Atom, and I also think pasting should overwrite what's there when overtype mode is on, exactly as if the pasted text were typed. |
@lawrence-dol
Thats why I'm asking for your use-cases and needs. Cos' they are surely different from mine. Technically I like to play with the idea of marking the overwrite-area by doing a selection. Then there would be two cases of user-intent - with a user-defined-area or without. |
I think pasted linefeeds should be actioned by erasing to end-of-line, then moving to the next line and continuing to paste. With a question mark about moving to true start-of-line or the indented start of line. When overtype pasting a block of text, hole insertion should be done as if they were individually pasted one at a time. I think all block-mode insertions should behave as if each line of the block were done individually at each successive caret. |
@lawrence-dol sry, i don't understand completely. Pls. elaborate a bit between cases like :
The current implementation is rather dumb. greets |
What I mean is that clipboard paste overtype should, at the point of a line break, delete to the end of the line, move to the start of the next line at the column of the past point, and continue overtyping using the clipboard data. This means if I copy the full lines include the 3 linefeeds of this text:
and paste with my cursor on the
the result will be
and if pasted at the beginning of the line it would be:
In effect, my intent is to replace existing lines of text with the lines of text I copied. This is distinct behavior from when I copy a block of text using muli-cursors, and paste that block into the same number of multi-cursors, where each cursor point is a normal overtype paste point. (Note that I don't know how, or even if, Atom indicates that text has been copied using multiple cursors, but I expect you end up with multiple blocks to paste.) PS: I think the idea to indicate the paste first and then paste is fine, even better. But this is what I expect to happen when pasting in overtype mode. |
@lawrence-dol
What you propose is cutting the right-parts of the target-region, but keeping the left-parts. I would name this maybe 'multiline-paste preserving source-indents and cutting rest-of-line' ? greets Andreas |
I don't use snippets yet, but I have a mental to-do to look into them as a substitute for macros I used to use in TextPad to insert common boilerplate code. So I will before very long. I am in the long-tail of transitioning from TextPad as my coding editor. |
…elete-to-(end|beginning)-of-line‘ New paste-mode as discussed in issue-brunetton#15 Partial line-delete-options : ‚delete-to-end-of-line‘, ‚delete-to-beginning-of-line‘
Just to put a finer point on multiline paste, if the last line of my example above were pasted without the final
Does that make sense? No |
@lawrence-dol a first version of this paste-action is there. I'm struggling a bit with auto-indent, so this paste-action does need some testing. |
@Asc2011 Where is this project at. I see no updates in the Atom packages repo. Do I need to pull this repo down and manually link into my atom packages? I am not familiar with how one goes about this. |
When pasting, if overtype mode is on, I would expect the pasted text to overtype any existing characters within the length of the pasted text. Currently it just does a normal insert paste.
Would be nice for pasting into formatted Markdown tables, for example.
The text was updated successfully, but these errors were encountered: