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

Indent entire line with an indent command #1323

Closed
lagbox opened this Issue Apr 28, 2016 · 6 comments

Comments

Projects
None yet
4 participants
@lagbox
Contributor

lagbox commented Apr 28, 2016

Short Summary

(Ctrl + ]) currently will indent from the position of the cursor. Would be nice to have an option to have it indent the entire line regardless of the position of the cursor.

Platform Information

Komodo Edit or IDE? IDE
Komodo Version? 10 Alpha
Operating System (and version)? Ubuntu 15.10

Additional Information

I added a macro to do this that gets the position of the cursor and line length, calls a home + indent, then moves the cursor to the position it was plus the difference in line length. For indent and unindent respectively.

@Naatan Naatan added this to the 10.1 milestone Apr 28, 2016

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 28, 2016

Thanks @lagbox, great idea :)

To be clear this would be a new command, we're not changing the way the current command works.

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented Apr 28, 2016

+1. nice suggestion. I actually run up against this often.

@lagbox

This comment has been minimized.

Contributor

lagbox commented Apr 28, 2016

@cgchoffman I can put the 2 macros into a gist if you want, may not be pretty but they work

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented Apr 28, 2016

I can put the 2 macros into a gist if you want

You'd be doing me a double solid if you add it here: https://github.com/Komodo/macros

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 28, 2016

Don't add it there, that repo is deprecated. If you want to submit userscripts use the instructions here:

http://komodoide.com/packages/submit-instructions/#pane-packages

@lagbox

This comment has been minimized.

Contributor

lagbox commented Apr 29, 2016

This is what I put together Gist - indent/unindent entire line(s), respecting position change

Ill add a repository when I get a chance and submit it.

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