st icon indicating copy to clipboard operation
st copied to clipboard

Scrollback patch request

Open jackpeters667 opened this issue 4 years ago • 24 comments

Sweet work buddy. Would you be able to provide a scrollback patch here or on the suckless site? So everyone can share your awesomeness?

jackpeters667 avatar Aug 12 '21 14:08 jackpeters667

I will but it can take a while.

ashish-yadav11 avatar Aug 12 '21 14:08 ashish-yadav11

waits very patiently for it ( amazing work btw! )

sewnie avatar Aug 13 '21 16:08 sewnie

I haven't had time yet to extract the patch. But thanks to koetemagie, you can find one here. I haven't looked at the patch yet. If required I will refine it and update here.

ashish-yadav11 avatar Dec 12 '21 14:12 ashish-yadav11

If required I will refine it and update here.

It would be better, since you made it, you know what should and shouldn't be on the patch.

BeyondMagic avatar Dec 12 '21 16:12 BeyondMagic

https://gist.github.com/wael444/bc44d877d0f6fe96411c49d265dbe82d is this good?

sewnie avatar Apr 10 '22 16:04 sewnie

There are some unnecessary parts but otherwise I don't see any problem.

ashish-yadav11 avatar Apr 10 '22 17:04 ashish-yadav11

The STRESCARG thing isn't required. I have separately provided it in "title parsing fix" titled patch on suckless' site.

ashish-yadav11 avatar Apr 10 '22 17:04 ashish-yadav11

The STRESCARG thing isn't required. I have separately provided it in "title parsing fix" titled patch on suckless' site.

oh. well it was included in the fused patch that was by BeyondMagic well could you modify the diff and remove it? or is it easy to just replace all lines that look like STRESCARGEST to strescseq.args?

sewnie avatar Apr 10 '22 17:04 sewnie

yeah just remove STRESCARG and every change in strhandle function.

ashish-yadav11 avatar Apr 10 '22 17:04 ashish-yadav11

STRESCARGREST to strescseq.args and STRESCARGJUST to what? it is only used in par = (narg = strescseq.narg) ? atoi(STRESCARGJUST(0)) : 0;

sewnie avatar Apr 10 '22 17:04 sewnie

remove every change in strhandle function. Keep it vanilla and remove the definition of STRESC... at the top.

ashish-yadav11 avatar Apr 10 '22 18:04 ashish-yadav11

could you check on the new revision of the gist? i also assume that the patch name should be added to the scrollback patch section with the name st-scrollback-column-reflow-20220410-ef05519.diff

sewnie avatar Apr 10 '22 18:04 sewnie

The scrollback is maintained by another person, and I'm pretty sure how the scroll works in this patch is too different to add there (In my opinion, obviously).

BeyondMagic avatar Apr 11 '22 02:04 BeyondMagic

honestly, i just formatted the patch the main authors or whoever is related can choose what the patch name and description should be if i were to submit the package id have to wait on @ashish-yadav11 's call on if the patch is good to be submitted. then make its name seen in my previous comment.

sewnie avatar Apr 11 '22 11:04 sewnie

for some reason, now my patch sets a broken title.

my only fix was to patch in title parsing fix.

sewnie avatar Apr 15 '22 14:04 sewnie

remove the changes in strparse function.

ashish-yadav11 avatar Apr 15 '22 14:04 ashish-yadav11

remove the changes in strparse function.

well that fixed it. i didn't know there were still strparse changes, thanks!

also, is this still good to be submitted yet? or is there still some problems?

sewnie avatar Apr 15 '22 15:04 sewnie

You can submit if you want to. Do add a link to this repo in case of bugs or for support.

ashish-yadav11 avatar Apr 15 '22 15:04 ashish-yadav11

You can submit if you want to. Do add a link to this repo in case of bugs or for support.

alright.. i will just do a pretty basic description for that matter. i will also update your patch title parsing fix since it doesnt apply cleanly

sewnie avatar Apr 15 '22 15:04 sewnie

a new scroll back patch was released. st-scrollback-0.8.5, i did not base my patches over this new one.

https://gist.github.com/wael444/fcfe9fd27c7f0c75f45aa9275d0abca0 contains both the patch that is placed ontop of scrollback >=0.8.5 and another patch which fuses both scrollback 0.8.5 and column reflow.

are they good?

btw. the patch will be named column_reflow just keep that in mind as i have no other name for it.

sewnie avatar Apr 15 '22 16:04 sewnie

If after patching you get the same code, then it must be fine.

ashish-yadav11 avatar Apr 15 '22 16:04 ashish-yadav11

sorry for the constant comments, i will be putting this under the scrollback patch index.md as this the original patch requires to patch it on top of scrollback 0.8.5 as it makes sense for it to be added there, unless BeyondMagic's comment is correct and this should be placed under a different patch index as of how different it is.

i also believe by adding this to the scrollback patch page it'll be much easier for users to find this patch.

sewnie avatar Apr 15 '22 17:04 sewnie

it breaks st-scrollback-mouse-20220127-2c5edf2.diff, it no longer scrolls.

edit: turns out the patch is actually malformed and is missing some things...

sewnie avatar Apr 23 '22 13:04 sewnie

https://st.suckless.org/patches/scrollback/

well, this should be closed now i guess

sewnie avatar May 24 '22 10:05 sewnie