Commit Graph

18 Commits

Author SHA1 Message Date
aditya-K2
ea3fc105a4 simple seeking implementation 2022-09-09 01:31:51 +05:30
aditya-K2
b2c5575c8b Using fhs/gompd/v2 2022-09-09 00:47:26 +05:30
aditya-K2
4ae005cbe7 No need to use globals as a separate package to avoid import cycles 2022-09-02 01:25:33 +05:30
aditya-K2
ff74bf02ba Initial Implementation of Views 2022-08-31 23:42:15 +05:30
aditya-K2
a8959a10e5 Added Info for ProgressBar 2022-08-29 18:04:34 +05:30
aditya-K2
d7044c48b1 New progressBar Primitive
Previous Implementation of progressBar wasn't clean and for a long time
I wanted to make progressBar a Primitive. Which also makes it project
agnostic.

Following changes have been made:

1. Moved `utils.GetText` to `ui.GetProgressGlyph` (As it had no use other
   than for the progressBar
2. Removed the old Implementation of progressBar

How progressBar works as of right now:

All the Values for the progressBar are provided through the
ProgressFunction()

The ProgressFunction should return
Title (Bar's Title), TopText (Box's Title), BarText (The Text Inside the
progressBar), Percentage(Float64 representing the progress Percentage)
2022-08-29 17:36:36 +05:30
aditya-K2
429db5b1e7 Moved notify package 2022-08-29 11:04:12 +05:30
aditya-K2
b7f7c9cebd Minor Formatting Changes and better error handling 2022-03-16 02:48:53 +05:30
aditya-K2
4a0a3e18f7 Using tcell.Colors instead of HardCoding Hex Values 2021-12-30 17:17:58 +05:30
aditya-K2
175b694a4d Implementing Simple Buffer Searching
Searching the Global Database although is enough but I have felt a need to have a
quick and fast search option to search the current buffer.

Buffer Search is also one of the views It can be only turned on if the File Browser
has focus. ( Thinking of making it global ). The Searching is done
through the fuzzy module. FileNode now implements the Source Interface.
The Changed Function of the Search Bar checks for text changes and then
modifies the Matches Variable which is used by the Update Function to
Draw the Results. The Results have the Matching Characters Highlighted
Differently. Maximum of 15 results are displayed to avoid lag. Upon
Selecting the Result through the Search Bar navigation is possible and
selection of the item is done the same way it works for file Browser.
After Selection the Focus is returned Back to the File Browser. For The
Tracks only the title is used for searching.
2021-12-26 00:18:23 +05:30
aditya-K2
659becf3fb chore: minor changes 2021-12-24 21:15:17 +05:30
aditya-K2
0118886d5e chore: Added More Informative Comments 2021-12-24 15:46:42 +05:30
aditya-K2
6405bebeed minor formatting change 2021-12-23 21:12:09 +05:30
aditya-K2
f56eb1cf1f Removing Globals
Globals are no longer needed instead I am connecting each part with (
what were previously ) globals. Also Renaming SetRenderer to
ConnectRenderer which describes the name more precisely
2021-12-23 20:20:27 +05:30
aditya-K2
b587f5acfd moving notification to notification package inside ui 2021-12-23 00:16:07 +05:30
aditya-K2
33603e1450 Better Focusing Model
Previously I was using the InsidePlaylist and InsideSearchView boolean
values which was a very hacky and unscalable way. Instead I am using a
focus map which can be queried to check which view has focus. Also the
Pages Implementation is kind of on hold because it has a lot of problems
for e.g resizing doesn't seem to work as I imagined. I am keeping that
Idea on hold right now.
2021-12-22 23:49:16 +05:30
aditya-K2
f56169cbd3 moving notification to ui package 2021-12-22 21:20:01 +05:30
aditya-K2
0d9227e019 moving app.go progressbar.go to the new ui package 2021-12-22 20:39:01 +05:30