Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Implement selection flipping #85
Conversation
|
Awesome, thanks! I think the approach is right overall, with a clever use of the paste buffer I'm going to comb |
|
thanks! I was considering doing rotations as well, but I'm unsure about changing the dimensions of a selection and have yet to figure out a eloquent solution, but I haven't had the need to rotate anything in my five days of using Here are some other ideas that I'm considering trying, though:
if you think any of these is a particulary good idea, I can prioritize it, or if you have any tips what to watch out for, it would be awesome :D |
Yes, I'd love to have something like this. Actually, part of this is already implemented via the "archive" format ( The other part exists via the |
I also want this. The way I was thinking is to just replace the current
The command could also take arguments, in case the color isn't in your session, then you would do |
Oh, that's great, I hadn't known about ˙.rxa |
Yea, that's pretty much what I thought I'd try. The colorpicking command might a great addition to, especially in reference to #22 . the |
Note that a semi-hidden feature is that you can use the color sampler while in command mode, and the hex code is added to the command line. This is a lot easier if you're picking from the palette. |
Oh, I didn't know that! Yea, that invalidates my concern completely, haha |
|
@luciusmagn do you want to finish this? |
|
Yea, I do. Sorry, I was graduating which kinda temporarily brought my programming endeavors to a screeching halt. I resolved most of the issues already, I will commit them asap! |
…tch arm and check if we are selecting
|
Thanks for this contribution! |
Hi,
this is my humble attempt at implementing the functionality to flip a selection. It was once again a pleasant experience as I really like the structure of the code, but I'm not sure if I'm doing it "idiomatically".
Here is a demonstration of how it looks:

(yea, the colors are screwed because it's a gif, here's a webm for more pleasant viewing -> flip.webm)
This is what I did for these changes:
selection/flipwhich takes one argument of direction, valid values arehorhorizontalandvorvertical.ViewOpfor flip and went togl/mod.rsto create an implementation. It's pretty much a yank, which also takes direction as an argument and then flips the pixels accordinglyI'm really unsure if this is the correct way to do it, so I am sorry if I did something wrong, haha😅