- 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.
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.
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.
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.