Avi Aryan avatar

Make note file extension configurable [v2.1] - SublimeNotebook

the-dragon

Published: 30 Apr 2018 › Updated: 30 Apr 2018Make note file extension configurable [v2.1] - SublimeNotebook

Make note file extension configurable [v2.1] - SublimeNotebook

New version 2.1 released

Changelog

Added a new feature to allow users to set the file extensions that can be accepted as a SublimeNotebook "note". In v2.0 and before, only txt and md files were accepted as note files.
With this version, user will be able to add more formats and remove existing formats using a setting in settings.json.

The concerned settings.json setting looks as follows -

{
    "note_extensions": [
        "txt",
        "rst"
    ],
]

This means that only txt and rst files are treated as "note" by SublimeNotebook.

Implementation Details

Implementing this feature basically required changing the default settings.json structure here and then using the corresponding setting in the get_file_list method. The code change required to implement this feature can be seen in the commit fce50fb. Apart from that, I also updated the documentation, diff of which can be seen in the PR.



Posted on Utopian.io - Rewarding Open Source Contributors

Leave Make note file extension configurable [v2.1] - SublimeNotebook to:

Written by

Developer (Maker)

Read more #utopian-io posts


Best Posts From Avi Aryan

We have not curated any of the-dragon's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Avi Aryan