Drawing Context Menu at cursor position doesn't seem doable with the
current implementatoin of tview.Table. Also getting the relative
position of selection when the height is smaller than the row count
isn't feasible there are lot of bugs with that implementation as the
context menu is not drawn when the selection reaches the end of the list
or is out of the view. Instead a global context menu must be implemented
(this is what i think atleast for now) I think InteractiveView can go
back to it's previous implementation and context menu can be a global
thing.
`InteractiveView` instead of just being a `table` is now a `page`
and the `table` is the part of the page. This helps in adding the
functionality of context menu. The Context Menu as of now is not a tree
like view.
fix:
Earlier when 'g' / 'G' was pressed and after that the opposite key
(in g's case 'G' and vice versa) the i.vrange was 0, n (where n is
row count) instead it should have been baseSel, n
i.e
earlier it was:
top (vrange.Start is here)
|
|
|
|
baseSel
|
|
|
bottom (vrange.End is here)
'|' mean selected.
now it is:
top
_
_
_
_
baseSel (vrange.Start is here)
|
|
|
bottom (vrange.End is here)
'_' means not selected.
(The course of action here is first press 'g' and then pressed 'G')