Author: Ichinoe
Version: 0.0.1
- This is a practicing project using Electron to achieve a simple notepad under the demands from one of author's friends.
- The notepad mainly support words statistics and full screen for more focused plain text writing experience.
-
It's recommend to install
nvmin advanced and ensure that you have install at least two version ofnpm(one before10.12.0and one after it).> nvm install 10.11.0 # before 10.12.0 > nvm install 14.15.0 # later than 10.12.0 > nvm list
-
Clone this repository and install dependencies.
- Since the project require Semantic UI, it's a must to use
npmwhose version is not later than10.11.0. - The
npm startcan also be changed aselectron ..
> git clone https://github.com/ShiinaHiiragi/Notepad-- > cd Notepad-- > nvm use 10.11.0 > npm install > npm start
- Since the project require Semantic UI, it's a must to use
-
If you want to package the project, please ensure to have installed the
electron-packager.> nvm use 14.15.0 > npm run package
- If you want to change the target platform (Linux, for example), please change it at
package.json:--platform=linux
- If you want to change the target platform (Linux, for example), please change it at
-
The shortcut Ctrl + H can hide the menu, which means that most of the shortcut are disabled (such as Ctrl + S to save). To toggle REAL full screen, press F11 and then Ctrl + H ; to cancel it, press Ctrl + H and then F11.
-
In order to response to sudden crash, the notepad will autosave the
Unsavedfile in the back up zone (./backup) every 30 seconds. The program will NOT clear the backup area when it's too large (in case user may forget to drag out the important file which is not saved).-
The file name is the md5 of the saving time.
-
Press Ctrl + B or menu
Sytem - Open Backup Directoryto open backup directory. -
Click menu
Sytem - Detect Size of Backupto view the size of files stored in the backup area, and clickSytem - Clear Backupto delete all files in the backup. Attention, the directories in the./backupwill not be detected or deleted.
-
-
The tab used in the text editor will be automatically changed into a SBC space (Unicode+12288).
-
License: MIT
-
Dependencies
Node.js: 14.15.4 Electron: 11.2.0 Semantic-UI: 2.4.2 Chromium: 87.0.4280.88 jQuery: 3.5.1 -
Existing bugs:
- Pressing tab out of the notepad will trigger error of node.
- Trying to make Ctrl + S a global shortcut.
2021 01/21