How does capturing work in gipf?
That is mostly correct. However, the player who picks up the pieces is not the current player, but the player who owns the 4+ pieces in a row.

E. Taking Pieces

As soon as 4 pieces of the same color are lined up next to each other, they must be taken from the board by the one playing with that color. Moreover, not only must these 4 pieces be removed, but also all of the pieces that form a direct extension of them. The pieces of one's own color are returned to the reserve, the pieces of the other color are captured, thus lost for the opponent.

As soon as 4 pieces of the same color are lined up, it is compulsory to remove them from the board (included the pieces extending the row), no matter who created the row. The color of the pieces in a row determines which player must take them. One's own pieces are returned to the reserve, the opponent's pieces are captured.



A copy of the rules can be found here.