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

Feature Suggestion: Cut current line #8574

Closed
skjerns opened this issue Jan 14, 2019 · 13 comments · Fixed by #22480
Closed

Feature Suggestion: Cut current line #8574

skjerns opened this issue Jan 14, 2019 · 13 comments · Fixed by #22480

Comments

@skjerns
Copy link
Contributor

skjerns commented Jan 14, 2019

This is a function I have been missing since a long time (since I first used it in other IDEs e.g VBStudio back in 2005).
Often I want to duplicate the current line elsewhere. Right now I have to select the line with my mouse and press CTRL+X to cut it.

Do you think it would be possible to add a keyboard-shortcut for cutting the current line in the editor/console?

Once again props for this very good yet simple IDE, I've been using very extensively!

@ccordoba12
Copy link
Member

There's a shortcut to remove the current line, but it doesn't add its contents to the clipboard. What about if we do just that? Would that be enough for you @skjerns?

@skjerns
Copy link
Contributor Author

skjerns commented Jan 14, 2019

if it would copy the just-cut line to the clipboard, that would be exactly what I need! thank you for the quick response :)

@ccordoba12
Copy link
Member

Ok, we'll implement this for Spyder 4.

@skjerns
Copy link
Contributor Author

skjerns commented Jan 15, 2019

super cool!

@skjerns skjerns closed this as completed Jan 15, 2019
@ccordoba12 ccordoba12 reopened this Jan 15, 2019
@bcolsen
Copy link
Member

bcolsen commented Jan 15, 2019

Is there any reason that ctrl-x and ctrl-c couldn't act on the whole line if nothing is selected?

Currently if nothing is selected those shortcuts do nothing. It could be convenient if they copied or cut the current line the cursor is in if nothing is selected.

@jnsebgosselin
Copy link
Member

jnsebgosselin commented Jan 15, 2019

There's a shortcut to remove the current line, but it doesn't add its contents to the clipboard. What about if we do just that?

I'm not sure that having my clipboard content overridden every time I remove the current line with Ctrl+d is something I like... this will have an important impact on my workflow.

Is there any reason that ctrl-x and ctrl-c couldn't act on the whole line if nothing is selected?

I prefer this solution, or use new shorcuts derived from these.

@bcolsen
Copy link
Member

bcolsen commented Jan 15, 2019

I'm not sure that having my clipboard content overridden every time I remove the current line with Ctrl+d is something I like... this will an important impact on my workflow.

I was going to mention this as well.

@skjerns
Copy link
Contributor Author

skjerns commented Jan 16, 2019

I was also assuming a new shortcut and not overriding the current one.

@ccordoba12 ccordoba12 modified the milestones: v4.0beta3, future Jan 16, 2019
@goanpeca goanpeca removed this from the future milestone Feb 23, 2020
@gurditsbedi
Copy link

gurditsbedi commented Oct 7, 2021

Was this implemented?
I am using Spyder 5.0.5.

If not, I can try to implement. Pointing me to necessary files will help.

@wheyVanilla
Copy link

Is there any updates for this one?

@ccordoba12 ccordoba12 added this to the v6.0alpha3 milestone Jun 11, 2023
@ccordoba12
Copy link
Member

Sorry, we haven't implemented this due to lack of time. But we'll try to do it for Spyder 6, to be released before the end of the year.

@Yugadeep
Copy link

Okay, I'm low-key excited about this feature. I've wanted quick selecting line/ quick cutting line for the longest time.

@ccordoba12 ccordoba12 modified the milestones: v6.0alphaX, v6.1.0 Jul 7, 2024
@ccordoba12
Copy link
Member

ccordoba12 commented Nov 6, 2024

To everyone following this issue: it'll be fixed in our 6.1.0 version, to be released in the first half of 2025.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants