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

Select specific sections or pages for convertion. #124

Open
OliverShenYah opened this issue Feb 28, 2022 · 2 comments
Open

Select specific sections or pages for convertion. #124

OliverShenYah opened this issue Feb 28, 2022 · 2 comments
Assignees
Labels

Comments

@OliverShenYah
Copy link

Current

Currently, the convertion will always happen to the entire notebook.

Expectation

Select specific sections or pages in the notebook for convertion.

Discussion

Is there any way to make the convertion happen to only part of the selected notebook, such as a several sections of pages or just several pages with specific names.

@leojonathanoh leojonathanoh self-assigned this Jul 7, 2022
@leojonathanoh leojonathanoh added this to the v2.17.1 milestone Jul 7, 2022
@leojonathanoh
Copy link
Member

This would definitely be handy feature. Perhaps there can be a config option that match Sections or Pages by name. It will work if one only uses predictable and simple-to-type Section and Page titles.

However, in reality many people have all kind of names and characters for sections and page titles. So a regex is going to be better. The only downside to regex is that it is not going to be usable for non-technical users.

If I can think of a way for both non-technical and technical users to be able to select sections or pages, i'll definitely implement this. Perhaps others might have some ideas.

@leojonathanoh leojonathanoh removed this from the v2.18.0 milestone Jul 7, 2022
@daughtkom
Copy link

Perhaps instead of a config setting to match the name (or regex), if there was a different config setting for "$userSpecifiedPages", the script can prompt the user based on what it finds in the notebook? For example:

All Sections or Specify Section (comma separated):
[0] - All (default)
[1] - In Progress
[2] - Archive

>2

All Pages or Specify Pages (comma separated):
[0] - All (default)
[1] - Page 1
[2] - Page 2
[3] - Page 3
[4] - Page 4

>1,3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants