Commit Graph

6 Commits

Author SHA1 Message Date
b59715ae67
Updated builtins/__modules.lua
Added modules@hyperlink. A new presser tool which will convert text to a
hyperlink in markdown format.
	- Firstly the function identifies the mode. If visual-mode, the text
	  selected is used. If normal-mode, the text used is whatever is
	  identified under the cursor.
	- Secondly, if the text is identified to be a valid URI schema, then
	  hyperlink will automatically make the conversion.
	- If the text isn't a URI schema, then a new steamer is created to
	  allow for the user to enter a URI.
2023-02-04 18:30:29 +00:00
dd0f25ffa1
Updated actions/init.lua
Added actions@hyperlink_exec. Responsible for acting upon an execution
call from keybinding. Function gets the contents of the buffer and makes
call to actions@suburl.

Added actions@suburl. This function specifically performs a substitution
of text in a buffer line and replaces it with a hyperlink, formatted as
markdown.
2023-02-04 18:16:58 +00:00
69af7b05d1
Updated utils.lua
M@clean_buffer no longer escapes sequences (caused undesirable
behaviour).

Added M@get_selection which will return four values indicating the
starting row/column and ending row/column of a visual-mode selection. If
no selection has been performed in buffer instance, values may be -1.
Value is "cached" as defined Vim behaviour of '< and '> positions.

Added M@subslice is used to get a substring of a word between two
whitespace characters (i.e., spaces). The `line` is the string to check,
and `col` is a position (e.g., from the cursor) within the word which
will be extracted. Return value is a table of starting and ending
indices of the original string.
2023-01-23 18:21:44 +00:00
b81d6b5acc
Updated init.lua to allow autocomplete of new command builtins@hyperlink 2023-01-23 18:19:56 +00:00
f841a23dde Updated context_manager/init.lua 2023-01-13 17:18:56 +00:00
0d458544e0 Moved presser/ -> lua/presser/
Created new director lua/ and moved presser/ into the subdirectory.
This is to align with other standard developments of Neovim extensions.
2023-01-13 17:18:56 +00:00