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

Fast export feature (md2html) ready to merge #1

Merged
merged 1 commit into from
Aug 17, 2019
Merged

Conversation

fmount
Copy link
Owner

@fmount fmount commented Jul 31, 2019

Since we need to enable the cbox mappings in different scenarios (e.g. :e *.notes), the cbox mapping is moved in a init function, so we can handle better the init phase when BufRead and BufNewFile events occur.
The feature is also rebased on master and all the core functions are moved in autoload section.

@fmount fmount requested a review from saro July 31, 2019 07:56
@saro
Copy link
Collaborator

saro commented Jul 31, 2019

as discussed I would move the keybindings to add checkbox elements to something more specific like <leader>[ and/or <leader>]. May be we can use the first to have it inline and the second for below. Also I will see how this plays when the <leader> is set to <Space>.

@saro
Copy link
Collaborator

saro commented Jul 31, 2019

Additionally, what do you think about introducing a variable to enable/disable the plugin keybindings? This could be used by user that wish to just the bindings they need.

@fmount
Copy link
Owner Author

fmount commented Aug 2, 2019

  • Added bool to enable/disable the default plugin key mappings: as described in the README section users can now use their own keybindings to define how to add/remove cbox(es)
  • keybindings moved from <leader>n* to <leader>[* (that is more specific to the *.notes)
  • README improved with a "keybindings override" example section (including latest exposed parameters)
  • Added a separed TODO file
  • CONTRIB file renamed to reflect the most common project structure patterns

Copy link
Collaborator

@saro saro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a short test I can see the export functionality work. Still not sure about the default configuration but we can discuss this better in a following PR.

@fmount fmount force-pushed the fast_export branch 3 times, most recently from 5f9626a to 7f59962 Compare August 8, 2019 16:17
@fmount fmount force-pushed the fast_export branch 2 times, most recently from 5f78f57 to 36d8537 Compare August 17, 2019 06:54
@fmount fmount merged commit 826f8c2 into master Aug 17, 2019
Since we need to enable the cbox mappings in
different scenarios (e.g. :e *.notes), a default
cbox mapping is moved in an appropriate function, so
we can control the phase that occur when a *BufRead*
or a *BufNewFile* event is received.
This change also includes the ability to enable and
disable the plugin default key mapping and it exposes
a global variable to meet the requirements.
We also changed the default keybindings to add
cbox(es) to something more specific, providing
an example section in the README file.
In order to have a minimum amount of acceptance tests,
this commit adds the cbox checklist that must pass to
allow a PR to get merged.
We improved our automation on PR events adding mergify
with the following rules:
1. Test passed (travis)
2. Approvers >=2

Signed-off-by: fmount <[email protected]>
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.

2 participants