Commit Graph

260 Commits

Author SHA1 Message Date
aditya-K2
dd5a446f1b Move: fileView.go -> fileview.go 2022-09-11 19:38:33 +05:30
aditya-K2
e08e7c9002 Update: README and DOCS 2022-09-11 19:29:01 +05:30
aditya-K2
aee19c1e2f Seek Forward only when playback has been stopped. 2022-09-09 02:00:09 +05:30
aditya-K2
d2e625a4a4 Merge branch 'refactor' into seek 2022-09-09 01:33:28 +05:30
aditya-K2
ba1c6a6898 Rename: CONN -> Conn 2022-09-09 01:33:13 +05:30
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
7f4e1460b8 minor changes 2022-09-07 11:27:20 +05:30
aditya-K2
7e5df526c3 Removed some Connect Functions, some import cycles remain 2022-09-02 01:30:17 +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
49c691e04e Fixes: Nil Reference when Sending Notifications
Also Handling illegal presses in specific Views (PlaylistView,
Searchview)
2022-09-01 00:15:38 +05:30
aditya-K2
ff74bf02ba Initial Implementation of Views 2022-08-31 23:42:15 +05:30
aditya-K2
e86ceaca6a Merge branch 'master' into refactor 2022-08-31 18:42:58 +05:30
aditya-K2
02315f4c17 UPDATE: docs 2022-08-31 18:37:25 +05:30
aditya-K2
5ff27748ae Merge branch 'master' into refactor 2022-08-31 15:19:13 +05:30
Aditya Kurdunkar
0592272d97
Merge pull request #31 from aditya-K2/iss29
Added Functionality to Specify Different Type of Connections e.g a Unix Socket
2022-08-31 14:50:38 +05:30
aditya-K2
d7be3e201d Added Functionality to Specify Different Type of Connections e.g a Unix Socket 2022-08-31 11:28:02 +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 Kurdunkar
dc88d56d77
Merge pull request #27 from aditya-K2/iss26
workaround for #26
2022-08-29 10:28:48 +05:30
aditya-K2
d380f8d2a0 Update sample_config.yml
As mentioned here:
    https://github.com/aditya-K2/gomp/issues/1#issuecomment-1205090265

~ isn't expanded properly. Until further fix I will add this to the
sample_config as acknowledgment for the error.
2022-08-04 17:45:05 +05:30
aditya-K2
73982220a6 workaround for #26 2022-08-04 03:34:04 +05:30
aditya-K2
6c2458b320 Added Feedback Link 2022-07-29 15:04:05 +05:30
Aditya Kurdunkar
d4234de58b
Merge pull request #24 from johnallen3d/patch-1
Fix path to config file in index.md
2022-07-29 14:16:43 +05:30
John Allen
e246b0ef83
Fix path to config file in index.md 2022-07-10 15:59:07 -04:00
aditya-K2
ccf23a4c13 Handling j, k for an empty playlist (Merge 'err') 2022-05-19 22:52:54 +05:30
Aditya Kurdunkar
c68a598046
Merge pull request #19 from aditya-K2/err
Better Error Handling and Notifications
2022-04-23 23:43:43 +05:30
aditya-K2
426e9eb919 Added Exception for j, k (down, up) in the playlist view 2022-04-05 23:32:29 +05:30
aditya-K2
43a7a5c010 Better Error Handling & Explanatory Notifications
fix: Earlier using the `showParentContent` function in playlist
view caused the whole view to freeze now it has been fixed.
2022-03-16 02:49:02 +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 Kurdunkar
f6800b0361
Merge pull request #18 from aditya-K2/buffsearch
Implementing Simple Buffer Searching
2021-12-31 01:35:44 +05:30
Aditya Kurdunkar
bd1cef99ae
Update showcase.md 2021-12-31 01:13:10 +05:30
Aditya Kurdunkar
1c687ec3cf Update README.md 2021-12-31 01:10:36 +05:30
Aditya Kurdunkar
113ccc681d Update index.md 2021-12-31 01:05:24 +05:30
aditya-K2
010f2473ca refactor: Minor Formatting Changes and Refactoring 2021-12-30 18:49:24 +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
921ab9e831 Updated go.mod file 2021-12-28 22:31:52 +05:30
aditya-K2
09297a4974 Adding A new Field to the FileNode -> Title
Previously During Searching the Connection with mpd client was utilised
to get the title for the files this was slowing the search with large
number of files. Now after adding the Title field to the struct the
Field is accessed instead of querying the server this has lead to faster
searches.

[[ Please Note the Title of a Folder would be the last accessed
track from the FileMap. ]]
2021-12-28 10:32:48 +05:30
aditya-K2
a8ae5fb426 Adding more sensible defaults.
1. After Selection during navigating the folder can be added to the
   playlist now.
2. Also Binded Escape to quit the BuffSearchView
2021-12-26 19:23:58 +05:30
aditya-K2
7b35d30ef7 Changed Default Key Mappings and updated The Documentation 2021-12-26 14:04:13 +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 Kurdunkar
9390fbf46e
Merge pull request #17 from aditya-K2/pages
Significant Refactoring
2021-12-24 15:50:41 +05:30
aditya-K2
0118886d5e chore: Added More Informative Comments 2021-12-24 15:46:42 +05:30
aditya-K2
79872cac08 Update: Readme 2021-12-24 07:00:32 +05:30
aditya-K2
6405bebeed minor formatting change 2021-12-23 21:12:09 +05:30