Commit Graph

6 Commits

Author SHA1 Message Date
a66d9ae62f
Updated context_manager/init.lua
- Added diagram for global context manager (GCM) structure.
- Removed local func@get_ctx_head (unused).
- Updated func@M.update:
	- function takes 2 parameter arguments (see docstring).
	- constructs new record for the given context in the GCM to keep
	  record of a newly constructed window buffer.
	- function updates the GCM with the new record.
- Updated func@M.flush:
	- handles for new structure of records in the GCM.
	- see docstring for info.
2023-01-10 22:02:16 +00:00
8f88af8d69
Renamed modules
Files were moved from top-level space into presser sub-directory.
2023-01-09 19:46:12 +00:00
90b57ed4b1
Added context manager module
Added a context manager for handling and managing windows/buffers
constructed by built-ins. This was handled by the `new()` function in
presser/init.lua but is now a dedicated module.
2023-01-09 19:44:44 +00:00
5f6839ca43
Updated init.lua
Script has been refactor and now easily allows for the creation of new
windows/buffers upon function call. Tracking windows/buffers previously
was invalid and lead to visual glitches of buffers. Windows/buffers now
belong to a context manager found within Vim's global scope, due to ease
of accessibility.

Created function `new()` which is responsible for constructing new
windows/buffers, updating the global context manager of newly added
windows/buffers, and allowing for customisation given by plenary.popup.
2023-01-08 22:31:34 +00:00
9472a7b969
Added utils.lua
File is not used extensively at current development; however, usage in
the future is to be considered.

Provide utility functions to aid built-in functions. Greater usage to be
made in future development.
2023-01-08 22:29:33 +00:00
ceb8576281
Added init.lua
First initial commit of file as a backup to refactor.
2023-01-08 12:35:11 +00:00