Commit Graph

13 Commits

Author SHA1 Message Date
Sasha Koshka 22e9aaf60e Made it look cooler 2022-10-14 02:30:44 -04:00
aditya-K2 3effda228b Using utils.GetNetwork 2022-09-14 20:42:28 +05:30
aditya-K2 29b796a552 Fixes #33
Also mentioned at (https://github.com/aditya-K2/gomp/issues/1#issuecomment-1205090265)

`~` is not expanded to home directory, Hence adding an internal check
for the same.
2022-09-12 23:31:56 +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 b7f7c9cebd Minor Formatting Changes and better error handling 2022-03-16 02:48:53 +05:30
aditya-K2 719a659df6 Better Error Handling 2021-12-31 15:48:58 +05:30
aditya-K2 4a0a3e18f7 Using tcell.Colors instead of HardCoding Hex Values 2021-12-30 17:17:58 +05:30
aditya-K2 a3c5af06c8 Using a Unique Function
Previously the bug that I mentioned here `f7c2283355/utils/utils.go (L147)` was caused due to the
replication of matched Indexes.
Hence using the utils.Unique function to only get the unique elements in the slice.
2021-12-29 23:58:21 +05:30
aditya-K2 f7c2283355 Update Highlighting Algorithm & Using Tcell Styles
The Algorithm now only inserts the color string over a range i.e
if 1, 2, 3 are matches then instead of adding individually at 1, 2, 3
it adds the color string at 1 and null color string at 3. Also Using
tcell Styles for highlighting the table cells.
2021-12-29 22:28:57 +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 6390039ea9 moving lastfm.go render.go imageUtils.go to the new render package 2021-12-22 21:19:37 +05:30
aditya-K2 da47c9b10c Moving imageUtils.go to utils package 2021-12-13 01:43:20 +05:30
aditya-K2 9b60cbc98e Moving utils.go to utils package 2021-12-13 01:35:40 +05:30