Commit Graph

21 Commits

Author SHA1 Message Date
aditya-K2
ddb1557142 Expanding Home Directory for NETWORK_ADRESS 2022-09-15 00:06:18 +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
aee19c1e2f Seek Forward only when playback has been stopped. 2022-09-09 02:00:09 +05:30
aditya-K2
ea3fc105a4 simple seeking implementation 2022-09-09 01:31:51 +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
7b35d30ef7 Changed Default Key Mappings and updated The Documentation 2021-12-26 14:04:13 +05:30
aditya-K2
6ccd90b36b minor changes 2021-12-19 01:43:22 +05:30
aditya-K2
ae1b05c203 RENAME : goMP -> gomp
Renaming goMP to gomp as it feels kind of awkward to have two upper case
letters in a name of cli program.
2021-12-17 01:06:18 +05:30
aditya-K2
9b60cbc98e Moving utils.go to utils package 2021-12-13 01:35:40 +05:30
aditya-K2
73aebcd0a0 Added Check for / at the end in directory names 2021-12-13 00:13:16 +05:30
aditya-K2
62bcda33cb Setting up Defaults 2021-12-09 02:28:42 +05:30
aditya-K2
4c7378e77c Added Default Key To Navigate to Search View with the 4 Button 2021-11-16 20:01:02 +05:30
aditya-K2
afddf95cac Added Function to Default Key Map For Focusing Search Box 2021-11-15 15:34:41 +05:30
aditya-K2
6a5155efed minor changes 2021-11-12 14:32:06 +05:30
aditya-K2
c943b936b9 More Test Cases 2021-11-12 14:26:06 +05:30
aditya-K2
211911342e Added More Special Keys and now check for single letters in first part too 2021-11-12 14:03:57 +05:30
aditya-K2
836e67a24d More informing error 2021-11-12 01:25:40 +05:30
aditya-K2
0fa68fe7b0 GenerateKeyMap() now changes KEY_MAP according to the config file 2021-11-11 23:58:57 +05:30
aditya-K2
482978897d Added Default Mappings
Following Changes Have been made:

    1.  Rename KMAP -> SPECIAL_KEYS
    2.  Added Default Mappings through KEY_MAPPINGS
	so when the config is read it will change the KEY_MAPPINGS map
	which will be then used by the handler function for events.
2021-11-11 23:24:58 +05:30
aditya-K2
3c5835dba1 RENAME ReadMappings -> GenerateKeyMap 2021-11-11 23:24:04 +05:30
aditya-K2
9c039a8681 Reading Mappings from config file
Following Changes have been made in addition to
`1572a460b0`

    1. config.go :

	ReadMappings Reads Array for each function
	Basically we are going to define mappings like this :

	```yml

	    Function :
		- first mapping
		- second mapping
		- third mapping

	`````

    2. kMap.go :

	GetAsciiValues will help us to get e.Rune() for the event for
	the handler function. So basically we will have a keymappings map
	generated which will help us to handle events.

	    for e.g

		if an user has defined following mappings

	````yml

	    togglePlayBack :
		- P
		- p
		- B

	````

		then the keymappings map will look like this

	    []keymappings = {
		GetAsciiValues("P") : togglePlayBack(),
		GetAsciiValues("p") : togglePlayBack(),
		GetAsciiValues("B") : togglePlayBack(),
	    }

	    so when the handler function will get an event e
	    we will just pass it to this keymappings map i.e

		keymappings[e] which will return the function
2021-11-11 22:03:35 +05:30