-
Notifications
You must be signed in to change notification settings - Fork 15
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/multiline support #37
Conversation
wow, cool, give me few days to look at it, to make sure it does not change the nature of the plugin (meaning, don't change the content inside selection). Other than that, the summary above looks good. |
I hadn't thought about apostrophes in my original PR. I added somewhat of a naïve solution to ignore them, but it should handle most use cases. |
The code could be prettier, but it is working! I tested all the cases I could think of and it seems pretty responsive. I'm calling it good. Let me know if you find anything that needs a patch. |
@jameygleason First, thanks for the hard work, I think it will be awesome. Just want to make sure, when we select some text it will change the outside, right? This was a feature of this plugin that I think user appreciated, so, multiline is great if it does not break this. Make sense? |
I did a video manually running through all of the test cases. I think it covers current functionality. Look forward to hearing your thoughts. |
Watched the video. Wow, this is very good work. Give me end of weekend, I will definitely make the final check, but this is impressive. Users should be happy! |
@jameygleason Ok, I accepted the two first one, I tested the multi-line one, and it looks awesome, but it does change a little behavior that I would like to keep (selection content should be ignored from any logic). See my quick video here: https://www.youtube.com/watch?v=X9-BM1DNrHQ If that can be fixed, we should be good to go. Feel free to add the commit to this branch, I have it as an orgin/branch, so, I will pull it when ready. |
@jameygleason So, i was thinking, perhaps what would make sense is put this multiline/traditional in another hot key, like cmd shift ' , to shift toggle quotes to be smarter. This way, we have the dumb way as today, and the smarter way with this multiline support and escaped skip. What do you think? |
@jeremychone sorry for the delayed response. I agree with you, the ignore selection feature is a good one. Also the multiline feature is only basically useful for backticks*, but I'm interested in finding a solution without adding another key command if at all possible. Maybe it could detect multiline and only do backticks, but also ignore selected areas? (*Open to feedback for use cases of multiline with single or double strings?) I've considered adding the same functionality for escaping quotes. Maybe with the Share your thoughts. |
@jameygleason sorry for the delay as well. Need to think more about it and come back. But in short, here are current thinking:
Anway, let's think more about it. If you could refactor the code to not replace add, so that it just becomes a choice of mapping (or not) the keys, that would be great for now. |
All sounds good. I'm hoping to finish up a project this week so I can have time for these changes. |
Closing this merge for now, because of issues noted in comment above |
Multiline support complete