Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow custom mappings #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

allow custom mappings #4

wants to merge 4 commits into from

Conversation

shiar
Copy link

@shiar shiar commented Jul 1, 2019

Map s:NewTimesheetEntry() to <Plug>(Timesheet) so users can customise it. If they do, avoid the default Leader key bindings.

Personally I prefer to override o to insert a new entry, especially as \n etc are already occupied here. Also O instead of \c and do instead of \s.

shiar added 3 commits July 1, 2019 20:34
Common method to register plugin commands to allow custom mappings.
No need to add specific support to add followed_by strings and enter insert
mode; this can just as easily be done afterwards by normal commands.
Keeps intended behaviour regardless of local configuration.
Notably allows for o to be remapped to insert a new entry,
and set formatoptions o to continue comments.
Leave insert mode without abbreviations and triggers, in some configurations
preventing a noticeable timeout before results are visible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant