I think that instead of adding a config option for "how many lines you want to grab" it may be easier to grasp for a user to pick different presets, like: "grab from all the contents" or "grab only from visible area".
Proposed option name: @extrakto_grab_from (or maybe @extrakto_grab_size)
Options: visible, all
Default: I think that all for default makes more sense, since fzf is really fast and I think that trying to grab something from the screen that just got pushed out of sight is a pretty common case.
If https://github.com/laktak/extrakto/pull/7 gets approved, we'll have horizontal and vertical window for extrakto and the "visible area" will need to be handled differently.
Grabbing from the visible area will require to capture with -S X being X the vertical lines of the extrakto pane, or 0 if we are displaying it horizontally.
Extrakto gets its data from the whole pane, and a user may want to get it only from the visible area.
This has been discussed here: https://github.com/laktak/extrakto/pull/4, https://github.com/laktak/extrakto/pull/7#issuecomment-333400761
I think that instead of adding a config option for "how many lines you want to grab" it may be easier to grasp for a user to pick different presets, like: "grab from all the contents" or "grab only from visible area".
Proposed option name:
@extrakto_grab_from
(or maybe@extrakto_grab_size
) Options:visible
,all
Default: I think thatall
for default makes more sense, since fzf is really fast and I think that trying to grab something from the screen that just got pushed out of sight is a pretty common case.If https://github.com/laktak/extrakto/pull/7 gets approved, we'll have horizontal and vertical window for extrakto and the "visible area" will need to be handled differently.
Grabbing from the
visible
area will require to capture with-S X
beingX
the vertical lines of the extrakto pane, or0
if we are displaying it horizontally.