328 Commits

Author SHA1 Message Date
aditya-K2
647cc25fad minor aesthetic changes to menu 2023-04-09 03:56:14 +05:30
aditya-K2
ec3b531ce8 initial implementation of albumPage 2023-04-09 02:19:08 +05:30
aditya-K2
5cc0d44f2b add content and externalInputHandlers 2023-04-09 02:18:36 +05:30
aditya-K2
a4313360a7 playback wrappers 2023-04-08 22:10:19 +05:30
aditya-K2
9727d52a8b add more wrapper functions 2023-04-08 22:10:05 +05:30
aditya-K2
1e3e2c92bc implement playlist wrapper functions 2023-04-08 09:27:49 +05:30
aditya-K2
73d0dd66ec using github.com/aditya-K2/utils 2023-03-25 05:22:34 +05:30
aditya-K2
19d35d231c Better Implementation for Selection Handler 2023-01-26 05:30:31 +05:30
aditya-K2
32ecd96ff9 Better ContentHandler implementation 2023-01-26 05:05:59 +05:30
aditya-K2
31b53b3b3a rename ctx.go -> menu 2023-01-25 02:54:38 +05:30
aditya-K2
6c4531b721 minor changes 2023-01-25 02:52:10 +05:30
aditya-K2
2f29f51ec4 new centeredWidget primitive
CenteredWidget opens a centered widget on the main screen.

ContextMenu implements this interface
2023-01-25 02:46:33 +05:30
aditya-K2
1e294221d9 move files to ui package 2023-01-25 01:36:59 +05:30
aditya-K2
d0b1b0fb94 set title for context menu 2023-01-25 01:04:09 +05:30
aditya-K2
4a509ff078 changes discussed in previous commit 2023-01-24 02:10:36 +05:30
aditya-K2
0f690fa74b Drawing Context Menu in the Middle
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.
2023-01-24 01:34:04 +05:30
aditya-K2
76c3c47bf9 minor changes 2023-01-23 21:50:27 +05:30
aditya-K2
91de710406 New Context Menu Implementation
`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.
2023-01-23 20:39:21 +05:30
aditya-K2
6588214ade added neccessary scopes 2023-01-23 20:38:54 +05:30
aditya-K2
d385ab9a42 not changing selection style 2023-01-23 15:16:16 +05:30
aditya-K2
99a3640baa Basic Authentication for spotify 2023-01-23 14:48:38 +05:30
aditya-K2
d0b636e188 Remove Redundancy and fix scrolling
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')
2023-01-23 03:45:00 +05:30
aditya-K2
196f49690f added scrolling to the top and bottom in visual mode 2023-01-23 03:37:07 +05:30
aditya-K2
9acbba5f61 Better Visual Mode Representation
Also, now 'g' and 'G' are now both possible. (but scrolling to
top/bottom isn't possible)
2023-01-23 03:24:54 +05:30
aditya-K2
2a62f40708 Better Error Handling and Refactoring 2023-01-23 02:26:43 +05:30
aditya-K2
7dfa3848aa check for boundary 2023-01-22 01:37:37 +05:30
aditya-K2
966692717f impl: InteractiveView
Following Features have been implemented for InteractiveView:
    - VisualSelection
2023-01-22 01:00:39 +05:30
Aditya Kurdunkar
1eb880c719 Initial commit 2023-01-21 00:13:49 +05:30