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 request] No backspace if carriage in line beginning #4

Open
Kristinita opened this issue Nov 23, 2016 · 3 comments
Open

[Feature request] No backspace if carriage in line beginning #4

Kristinita opened this issue Nov 23, 2016 · 3 comments

Comments

@Kristinita
Copy link

Kristinita commented Nov 23, 2016

1. Request

It would be nice, if you add command to run backspace command only if carriage is not in line beginning.

2. Justification

I record macros. I need same behavior if I have text before carriage and if my carriage in beginning of line, because now I can get different macros results.

3. Actual behavior

If I run native Sublime Text Delete to Hard EOL macro (Ctrl+Shift+Backspace in Windows by default):

Actual behavior

I have same behavior if I run native Sublime Text Delete to EOL macro.

4. Desirable behavior

  • If I have text before carriage, all text before carriage was deleted, carriage move to beginning of line.
  • If I have not text before carriage, nothing occurs. Carriage not move to previous line.

Thanks.

@mac2000
Copy link
Owner

mac2000 commented Nov 23, 2016

I not sure that I got you right but seems that you ara asking to add something like and col != 0 in if statement?

@Kristinita
Copy link
Author

@mac2000 , I try to explain expected behavior:

I run expected command:

  • if line length>0, will be delete to Hard EOL like Ctrl+Shift+Backspace native Sublime Text command;
  • if line length=0, nothing occurs.

Thanks.

@mac2000
Copy link
Owner

mac2000 commented Nov 23, 2016

@Kristinita can you please write kinda if statement in pseudo code, I still can not get it, sorry, if it feels hard to you ping me on skype mac2000-skype will try to help

Thanks

PS: if line length = 0 nothing occurs - already here (this is first check in if statement), just can not figure out about first statement

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

No branches or pull requests

2 participants