1
0
mirror of https://github.com/jiriks74/presence.nvim synced 2024-11-23 20:37:50 +01:00
Commit Graph

34 Commits

Author SHA1 Message Date
Andrew Kwon
81c3cc0100 Track authorization state and fix race condition 2021-05-31 18:41:34 -07:00
Andrew Kwon
12d177985b Have snappier multi-window updates via focus events
- Fix multi-window presence
- Update on FocusGained events
- Add BufAdd handler and properly cancel on WinLeave
2021-05-31 17:44:31 -07:00
vhyrro
9fd2a30127
Add the ability to show the current line number in presence (#16)
* fix: rewrite for latest commit
* fix: formatting
* fix: use BufEnter instead of BufRead for more stable presence updates
* fix: change vimscript variable from false to 0
Co-authored-by: Andrew Kwon <andrewshky@gmail.com>
* fix: revert back to TextChanged rather than InsertEnter, refactor bits of the codebase
* fix: formatting
* fix: luacheck error and compare options to numeric values rather than booleans
Co-authored-by: Andrew Kwon <andrewshky@gmail.com>
2021-05-22 12:46:41 -07:00
Andrew Kwon
70a3c23ae0 Generalize file tree option to file explorers 2021-05-19 23:23:15 -07:00
Kyle Chui
c2030611c8
Dynamic Text Update (#15)
* Add context-specific status
* Add "browsing" support for file tree explorers
* Move status text into its own function
* Add commit and netrw support
* Fix git commit file recognition
* Add readonly clause
* Revert editing_text option
Co-authored-by: Andrew Kwon <andrewshky@gmail.com>
* Delete copied line
* Dynamic text update (#2)
* Add basic plugin support and rewrite status_text
* Fix syntax error
* Fix errors pt. 2
* Change options -> self.options
* editing_text -> status_text
* Try to get rid of dictionary bug
* Try to fix dictionary bug pt. 2
* Remove self.options
* Reorder status_text initialisation
* Reinsert self.options
* Remove global status_text var
* options still broken
* Tentatively done with dynamic text
* Remove global status_text variable
* Remove unnecessary lines/clean up code
* Dynamic text update (#3)
* Clean up status text options
* General code cleanup
* Fix whitespace issue
Co-authored-by: Andrew Kwon <andrewshky@gmail.com>
2021-05-19 22:04:56 -07:00
Kyle Chui
2927ceb17d
Add context-specific status (#12)
* Add context-specific status
* Add "browsing" support for file tree explorers
* Add commit and netrw support
* Fix git commit file recognition
* Add readonly clause
2021-05-17 19:59:58 -07:00
Andrew Kwon
8d54c87ea2 Merge branch 'main' into nil-ipc-socket-fix 2021-05-13 11:56:19 -07:00
Andrew Kwon
381c87d04e Properly escape characters in project name cmd 2021-05-13 10:02:03 -07:00
Andrew Kwon
0573e4aae3 Merge branch 'main' into nil-ipc-socket-fix 2021-05-12 23:36:52 -07:00
Andrew Kwon
23231dc8c7 Fix LaTeX file asset 2021-05-12 22:30:11 -07:00
Andrew Kwon
154b8fc5a4 Skip Discord events if IPC socket is nil
- Update README
- Improve logs when canceling activity
2021-05-05 23:18:04 -07:00
Andrew Kwon
704ea67102 Fix ipc socket log condition 2021-04-29 22:59:44 -07:00
Andrew Kwon
8251620eb6 Add runtime path log 2021-04-29 22:58:37 -07:00
Andrew Kwon
2a678f03e8 Fix invalid XDG runtime dir socket path 2021-04-29 17:30:03 -07:00
Andrew Kwon
20fea55db9 Merge branch 'windows-support' into main 2021-04-25 16:52:34 -07:00
Andrew Kwon
a9adc37a7a Add more file assets and fix README banner 2021-04-25 16:51:58 -07:00
Andrew Kwon
4f9eb6137a Merge branch 'main' into windows-support 2021-04-04 18:15:43 -07:00
Andrew Kwon
41c1221cad Support more files and update default asset
- Use `code` instead of `file` as default asset
- Check filename before extension in file asset assignment
- Support a lot more files and file extensions
2021-04-04 17:22:53 -07:00
Andrew Kwon
1f1f2f3253 Support Discord Rich Presence on Windows 2021-03-28 11:24:54 -07:00
Andrew Kwon
c61fd0f7ae Add Svelte file asset 2021-03-20 12:37:15 -07:00
Andrew Kwon
19764718e5 Skip updates for unnamed buffers 2021-03-18 22:04:20 -07:00
Andrew Kwon
c8ba01782e Skip debounce on activity across different buffers 2021-03-18 19:53:35 -07:00
Andrew Kwon
a325d154fc Support peer-to-peer workspace state management
- Add sync logic to manage multi-client runtime state
- Debounce and set activity on TextChanged events
- Update timestamp to be workspace-specific
- Set activity on an open nvim instance upon a VimLeave event
2021-03-18 19:10:04 -07:00
Andrew Kwon
a2f6550177 Add yaml and abook file assets 2021-03-11 10:25:30 -08:00
Andrew Kwon
9162582eb6 Use workspace text option when no project is detected 2021-03-08 19:03:25 -08:00
Andrew Kwon
5d4fefccab Disable logging by default 2021-02-28 22:13:11 -08:00
Andrew Kwon
f3e79afaa6 Support functions in text formatting options 2021-02-28 22:06:47 -08:00
Andrew Kwon
a15aed569a Support vimrc, markdown, and git editmsg files 2021-02-28 22:06:17 -08:00
Andrew Kwon
e92f8f73b7 Expose more configs with generalized option setter 2021-02-28 16:05:09 -08:00
Andrew Kwon
bb149540fd Fix various verbiage and style inconsistencies 2021-02-27 17:13:47 -08:00
Andrew Kwon
66bd159dd3 Allow cancelling presence on remote nvim instances
- Add msgpack lib
- Restructure to have lib and deps folders
- Add cancellation methods and invoke remote cancellation on update
2021-01-10 22:28:01 -08:00
Andrew Kwon
42f6c79eb0 Use local epoch value for started timestamp 2021-01-03 12:21:23 -08:00
Andrew Kwon
f3151560a7 Move autocmd to autoload and validate setup opts 2021-01-03 11:29:19 -08:00
Andrew Kwon
a656ba5361 Initial commit 2021-01-03 01:22:15 -08:00