File has been moved to subdirectory.
Note: TBR = To Be Refactored/Restructured.
- changed `ctx` to `gcm` as import for context manager module.
- gcm/GCM = global context manager
- all associations with this variable have been updated
respectfully.
- func@new is no longer responsible for creating a new context in the
GCM. This is now handled per built-in.
- call to gcm@update now respects newly modified GCM structure.
- Added presser@move_next_buffer:
- temporary function to experiment moving between buffers which
are marked as `allowed = true` in the GCM.
- TBR.
- Added func@read_buffer:
- reads the contents of all buffers in the GCM.
- returns a table storing all collected buffer contents.
- TBR.
- Added presser@execute:
- temporary function which calls func@read_buffer and performs a
vim substitute as per the built-in presser@find_replace.
- TBR.
- Added func@start_buffer:
- place the cursor in an initial buffer by name.
- TBR. Should be func@put_cursor_in_buf (or similar).
- Updated keymap to store more keys for experimenting.
- Calculate the centre of the current window height (should check for
split windows in future, or determine terminal size).
- Changed ordering of window creation. Windows created in order they are
rendered.
- 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.