Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Allow for sublime style "Paste and Indent" #10614

Open
skunkworker opened this issue Jan 29, 2016 · 12 comments
Open

Allow for sublime style "Paste and Indent" #10614

skunkworker opened this issue Jan 29, 2016 · 12 comments
Labels

Comments

@skunkworker
Copy link

I can't seem to find any packages or settings in atom that can replicate Sublime's "Paste and Indent" behavior. What I want atom to do is to truncate the whitespace ahead of the content on the line and paste where my cursor is at. In both cases I triple click each line to select the entire contents.

Here are two gifs showing the difference, and in the atom gif I have the settings autoIndentOnPaste: false and normalizeIndentOnPaste: false

Atom

alt tag

Sublime (Paste and Indent)

alt tag

Is there a way to get the same kind of behavior in Atom?

@Zireael07
Copy link

The Atom behavior is a bug in auto-indent, which has been reported several times.

@pvorona

This comment has been minimized.

@d3v-null
Copy link

If anyone has any idea of how to write this is a command in init.coffee that would be very helpful. I can't figure out how to access the clipboard from within atom.

@tbenst

This comment has been minimized.

@mikael1000
Copy link

Oh YES! This is so annoying. I just wrote some repeating code structure where you do a lot of ctrl+c - ctrl+v. But it don't put the code where the cursor is so after a while I started to write all the code instead. That got to be the wrong way. But it felt easier. This should be prioritized.
I really like Atom otherwise.

@Enerccio

This comment has been minimized.

@theoephraim

This comment has been minimized.

@theoephraim
Copy link

@stale
Copy link

stale bot commented Jun 27, 2019

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of Atom
  2. Comment that the issue is still reproducible and include:
    • What version of Atom you reproduced the issue on
    • What OS and version you reproduced the issue on
    • What steps you followed to reproduce the issue

Issues that are labeled as triaged will not be automatically marked as stale.

@stale stale bot added the stale label Jun 27, 2019
@tbenst
Copy link

tbenst commented Jun 27, 2019

Verified as still valid for 1.36.1 on linux following @skunkworker's example.

@stale stale bot removed the stale label Jun 27, 2019
@stale
Copy link

stale bot commented Jun 26, 2020

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of Atom
  2. Comment that the issue is still reproducible and include:
    • What version of Atom you reproduced the issue on
    • What OS and version you reproduced the issue on
    • What steps you followed to reproduce the issue

Issues that are labeled as triaged will not be automatically marked as stale.

@stale stale bot added the stale label Jun 26, 2020
@tbenst
Copy link

tbenst commented Jun 27, 2020

Still relevant to me

@stale stale bot removed the stale label Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

9 participants