diff --git a/_config.py b/_config.py index 9fb3313..5cc5540 100644 --- a/_config.py +++ b/_config.py @@ -92,7 +92,6 @@ class Production(_BaseConfig): # print("set %s: %s" % (attr, getattr(CONFIG, attr))) -from importlib import import_module - - -import_module("utils.logger.init") +if __name__ == "Simplenote._config": + print("__name__", __name__) + from .utils.logger import init diff --git a/messages/install.txt b/messages/install.txt new file mode 100644 index 0000000..70d7671 --- /dev/null +++ b/messages/install.txt @@ -0,0 +1,20 @@ +Sublime Text 3/4 plugin for Simplenote. Use Sublime Text as a Simplenote client. + +First time use, To configure your Simplenote account username and password in the settings file, follow these general steps: + +1. **Open the Settings File:**: Sublime Text > Settings > Package Control > Simplenote > Settings + +2. **Configure Username and Password** + - Look for the configuration section and add or modify your username and password. For example, if the configuration file is in JSON format, you might add the following content: + ```json + { + "username": "your_username", + "password": "your_password" + } + ``` + - Make sure to replace "your_username" and "your_password" with your actual username and password. + +3. **Save the File** + +5. **Restart the Application** + - Sometimes you need to restart Simplenote or the related application for the new settings to take effect. diff --git a/simplenotecommands.py b/simplenotecommands.py index 5431a68..2700f26 100644 --- a/simplenotecommands.py +++ b/simplenotecommands.py @@ -145,6 +145,10 @@ def run(self): if not start(): return + if Note.tree.count <= 0: + show_message( + "No notes found. Please wait for the synchronization to complete, or press [super+s+c] to create a note." + ) self.list__modificationDate: List[float] = [] self.list__title: List[str] = [] list__filename: List[str] = []