v0.1.3
1、屏幕取色设置快捷键alt+cmd+p 2、咖啡因设置快捷键alt+cmd+c 3、json 解析界面修改,触发快捷键同时复制选中的文本
This commit is contained in:
parent
c8ba9c953f
commit
ef592e4267
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
/*.zip
|
/*.zip
|
||||||
|
.idea/
|
9
.idea/.hammerspoon.iml
generated
9
.idea/.hammerspoon.iml
generated
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="JAVA_MODULE" version="4">
|
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
||||||
<exclude-output />
|
|
||||||
<content url="file://$MODULE_DIR$" />
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/.hammerspoon.iml" filepath="$PROJECT_DIR$/.idea/.hammerspoon.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
6
.idea/vcs.xml
generated
6
.idea/vcs.xml
generated
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
860
.idea/workspace.xml
generated
860
.idea/workspace.xml
generated
@ -1,860 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ChangeListManager">
|
|
||||||
<list default="true" id="495daa03-3ea5-4e8c-9013-c532511d508b" name="Default" comment="">
|
|
||||||
<change beforePath="$PROJECT_DIR$/modules/commons.lua" afterPath="$PROJECT_DIR$/modules/commons.lua" />
|
|
||||||
</list>
|
|
||||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
|
||||||
<option name="TRACKING_ENABLED" value="true" />
|
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
||||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
||||||
</component>
|
|
||||||
<component name="FileEditorManager">
|
|
||||||
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
|
||||||
<file leaf-file-name="caffeine.lua" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/caffeine.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="435">
|
|
||||||
<caret line="29" column="17" lean-forward="false" selection-start-line="29" selection-start-column="17" selection-end-line="29" selection-end-column="17" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="dictHistory.json" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/dictHistory.json">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="15">
|
|
||||||
<caret line="1" column="0" lean-forward="true" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="commons.lua" pinned="false" current-in-tab="true">
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/commons.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="280">
|
|
||||||
<caret line="153" column="6" lean-forward="true" selection-start-line="153" selection-start-column="6" selection-end-line="153" selection-end-column="6" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="15">
|
|
||||||
<caret line="1" column="6" lean-forward="true" selection-start-line="1" selection-start-column="6" selection-end-line="1" selection-end-column="6" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="history.json" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/history.json">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="210">
|
|
||||||
<caret line="14" column="40" lean-forward="false" selection-start-line="14" selection-start-column="40" selection-end-line="14" selection-end-column="40" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="README_en.md" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/README_en.md">
|
|
||||||
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
|
||||||
<state split_layout="SPLIT">
|
|
||||||
<first_editor relative-caret-position="225">
|
|
||||||
<caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</first_editor>
|
|
||||||
<second_editor />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="initConfig.json" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/initConfig.json">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="30">
|
|
||||||
<caret line="2" column="22" lean-forward="false" selection-start-line="2" selection-start-column="22" selection-end-line="2" selection-end-column="22" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/README.md">
|
|
||||||
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
|
||||||
<state split_layout="SPLIT">
|
|
||||||
<first_editor relative-caret-position="105">
|
|
||||||
<caret line="7" column="0" lean-forward="true" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</first_editor>
|
|
||||||
<second_editor />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/.gitignore">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="0">
|
|
||||||
<caret line="0" column="12" lean-forward="true" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="12" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="config.json" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/config.json">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="165">
|
|
||||||
<caret line="11" column="1" lean-forward="true" selection-start-line="11" selection-start-column="1" selection-end-line="11" selection-end-column="1" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
</leaf>
|
|
||||||
</component>
|
|
||||||
<component name="FileTemplateManagerImpl">
|
|
||||||
<option name="RECENT_TEMPLATES">
|
|
||||||
<list>
|
|
||||||
<option value="NewLua" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
<component name="FindInProjectRecents">
|
|
||||||
<findStrings>
|
|
||||||
<find>console.clearConsole()</find>
|
|
||||||
<find>menubar</find>
|
|
||||||
<find>config</find>
|
|
||||||
<find>menubar.new(true)</find>
|
|
||||||
<find>searchResult</find>
|
|
||||||
<find>keywords</find>
|
|
||||||
<find>hs.hotkey.bind</find>
|
|
||||||
<find>hs.hotkey</find>
|
|
||||||
<find>displayIdle</find>
|
|
||||||
<find>syntaxHighlight</find>
|
|
||||||
<find>hs.alert.show</find>
|
|
||||||
<find>切换</find>
|
|
||||||
<find>isSyncTime</find>
|
|
||||||
<find>hs.dialog</find>
|
|
||||||
<find>else if</find>
|
|
||||||
<find>elseif</find>
|
|
||||||
<find>colorDialog</find>
|
|
||||||
<find>appid</find>
|
|
||||||
<find>mChooser</find>
|
|
||||||
<find>baiduAppSecret</find>
|
|
||||||
<find>baiduAppid</find>
|
|
||||||
<find>hs.dialog.blockAlert</find>
|
|
||||||
<find>ydAppKey</find>
|
|
||||||
<find>hyperCmd</find>
|
|
||||||
<find>stringIsEmpty</find>
|
|
||||||
<find>listenerEvent</find>
|
|
||||||
<find>config.json</find>
|
|
||||||
<find>greyby</find>
|
|
||||||
<find>destinationfile</find>
|
|
||||||
<find>sourcefile</find>
|
|
||||||
</findStrings>
|
|
||||||
<replaceStrings>
|
|
||||||
<replace>self.menubar</replace>
|
|
||||||
<replace>macMenubar</replace>
|
|
||||||
<replace>sugood</replace>
|
|
||||||
</replaceStrings>
|
|
||||||
</component>
|
|
||||||
<component name="Git.Settings">
|
|
||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
||||||
</component>
|
|
||||||
<component name="GradleLocalSettings">
|
|
||||||
<option name="externalProjectsViewState">
|
|
||||||
<projects_view />
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
<component name="IdeDocumentHistory">
|
|
||||||
<option name="CHANGED_PATHS">
|
|
||||||
<list>
|
|
||||||
<option value="$PROJECT_DIR$/timesync/timesync.sh" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/LuaJson.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/system.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/colorpicker.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/colorPicker.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/Spoons/KSheet.spoon/init.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/utils.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/caffine.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/hotkey.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/jsonFormat.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/snippet.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/dict1.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/dict2.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/data/history.json" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/timesync.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/data/config.json" />
|
|
||||||
<option value="$PROJECT_DIR$/README_zh-CN.md" />
|
|
||||||
<option value="$PROJECT_DIR$/README_en.md" />
|
|
||||||
<option value="$PROJECT_DIR$/init.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/inputstat.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/dict.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/caffeine.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/data/.gitignore" />
|
|
||||||
<option value="$PROJECT_DIR$/data/initConfig.json" />
|
|
||||||
<option value="$PROJECT_DIR$/README.md" />
|
|
||||||
<option value="$PROJECT_DIR$/.gitignore" />
|
|
||||||
<option value="$PROJECT_DIR$/data/dictHistory.json" />
|
|
||||||
<option value="$PROJECT_DIR$/modules/commons.lua" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
|
||||||
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
|
||||||
<component name="JsGulpfileManager">
|
|
||||||
<detection-done>true</detection-done>
|
|
||||||
<sorting>DEFINITION_ORDER</sorting>
|
|
||||||
</component>
|
|
||||||
<component name="ProjectFrameBounds">
|
|
||||||
<option name="x" value="-1920" />
|
|
||||||
<option name="y" value="-11" />
|
|
||||||
<option name="width" value="1920" />
|
|
||||||
<option name="height" value="1009" />
|
|
||||||
</component>
|
|
||||||
<component name="ProjectView">
|
|
||||||
<navigator currentView="ProjectPane" proportions="" version="1">
|
|
||||||
<flattenPackages />
|
|
||||||
<showMembers />
|
|
||||||
<showModules />
|
|
||||||
<showLibraryContents />
|
|
||||||
<hideEmptyPackages />
|
|
||||||
<abbreviatePackageNames />
|
|
||||||
<autoscrollToSource />
|
|
||||||
<autoscrollFromSource />
|
|
||||||
<sortByType />
|
|
||||||
<manualOrder />
|
|
||||||
<foldersAlwaysOnTop value="true" />
|
|
||||||
</navigator>
|
|
||||||
<panes>
|
|
||||||
<pane id="AndroidView" />
|
|
||||||
<pane id="PackagesPane" />
|
|
||||||
<pane id="Scope" />
|
|
||||||
<pane id="Scratches" />
|
|
||||||
<pane id="ProjectPane">
|
|
||||||
<subPane>
|
|
||||||
<expand>
|
|
||||||
<path>
|
|
||||||
<item name=".hammerspoon" type="b2602c69:ProjectViewProjectNode" />
|
|
||||||
<item name=".hammerspoon" type="462c0819:PsiDirectoryNode" />
|
|
||||||
</path>
|
|
||||||
<path>
|
|
||||||
<item name=".hammerspoon" type="b2602c69:ProjectViewProjectNode" />
|
|
||||||
<item name=".hammerspoon" type="462c0819:PsiDirectoryNode" />
|
|
||||||
<item name=".idea" type="462c0819:PsiDirectoryNode" />
|
|
||||||
</path>
|
|
||||||
<path>
|
|
||||||
<item name=".hammerspoon" type="b2602c69:ProjectViewProjectNode" />
|
|
||||||
<item name=".hammerspoon" type="462c0819:PsiDirectoryNode" />
|
|
||||||
<item name="data" type="462c0819:PsiDirectoryNode" />
|
|
||||||
</path>
|
|
||||||
<path>
|
|
||||||
<item name=".hammerspoon" type="b2602c69:ProjectViewProjectNode" />
|
|
||||||
<item name=".hammerspoon" type="462c0819:PsiDirectoryNode" />
|
|
||||||
<item name="modules" type="462c0819:PsiDirectoryNode" />
|
|
||||||
</path>
|
|
||||||
</expand>
|
|
||||||
<select />
|
|
||||||
</subPane>
|
|
||||||
</pane>
|
|
||||||
</panes>
|
|
||||||
</component>
|
|
||||||
<component name="PropertiesComponent">
|
|
||||||
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
|
||||||
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
|
|
||||||
<property name="project.structure.last.edited" value="Project" />
|
|
||||||
<property name="project.structure.proportion" value="0.0" />
|
|
||||||
<property name="project.structure.side.proportion" value="0.0" />
|
|
||||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
||||||
<property name="aspect.path.notification.shown" value="true" />
|
|
||||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
||||||
</component>
|
|
||||||
<component name="RecentsManager">
|
|
||||||
<key name="CopyFile.RECENT_KEYS">
|
|
||||||
<recent name="$PROJECT_DIR$/data" />
|
|
||||||
<recent name="$PROJECT_DIR$/modules" />
|
|
||||||
<recent name="$PROJECT_DIR$/icon" />
|
|
||||||
</key>
|
|
||||||
<key name="MoveFile.RECENT_KEYS">
|
|
||||||
<recent name="$PROJECT_DIR$/data" />
|
|
||||||
</key>
|
|
||||||
</component>
|
|
||||||
<component name="RunDashboard">
|
|
||||||
<option name="ruleStates">
|
|
||||||
<list>
|
|
||||||
<RuleState>
|
|
||||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
|
||||||
</RuleState>
|
|
||||||
<RuleState>
|
|
||||||
<option name="name" value="StatusDashboardGroupingRule" />
|
|
||||||
</RuleState>
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
<component name="RunManager">
|
|
||||||
<configuration default="true" type="Applet" factoryName="Applet">
|
|
||||||
<option name="HTML_USED" value="false" />
|
|
||||||
<option name="WIDTH" value="400" />
|
|
||||||
<option name="HEIGHT" value="300" />
|
|
||||||
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
|
|
||||||
<module />
|
|
||||||
</configuration>
|
|
||||||
<configuration default="true" type="Application" factoryName="Application">
|
|
||||||
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
|
|
||||||
<option name="MAIN_CLASS_NAME" />
|
|
||||||
<option name="VM_PARAMETERS" />
|
|
||||||
<option name="PROGRAM_PARAMETERS" />
|
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH" />
|
|
||||||
<option name="ENABLE_SWING_INSPECTOR" value="false" />
|
|
||||||
<option name="ENV_VARIABLES" />
|
|
||||||
<option name="PASS_PARENT_ENVS" value="true" />
|
|
||||||
<module name="" />
|
|
||||||
<envs />
|
|
||||||
</configuration>
|
|
||||||
<configuration default="true" type="JUnit" factoryName="JUnit">
|
|
||||||
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
|
|
||||||
<module name="" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH" />
|
|
||||||
<option name="PACKAGE_NAME" />
|
|
||||||
<option name="MAIN_CLASS_NAME" />
|
|
||||||
<option name="METHOD_NAME" />
|
|
||||||
<option name="TEST_OBJECT" value="class" />
|
|
||||||
<option name="VM_PARAMETERS" value="-ea" />
|
|
||||||
<option name="PARAMETERS" />
|
|
||||||
<option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
|
|
||||||
<option name="ENV_VARIABLES" />
|
|
||||||
<option name="PASS_PARENT_ENVS" value="true" />
|
|
||||||
<option name="TEST_SEARCH_SCOPE">
|
|
||||||
<value defaultName="singleModule" />
|
|
||||||
</option>
|
|
||||||
<envs />
|
|
||||||
<patterns />
|
|
||||||
</configuration>
|
|
||||||
<configuration default="true" type="Remote" factoryName="Remote">
|
|
||||||
<option name="USE_SOCKET_TRANSPORT" value="true" />
|
|
||||||
<option name="SERVER_MODE" value="false" />
|
|
||||||
<option name="SHMEM_ADDRESS" value="javadebug" />
|
|
||||||
<option name="HOST" value="localhost" />
|
|
||||||
<option name="PORT" value="5005" />
|
|
||||||
</configuration>
|
|
||||||
<configuration default="true" type="TestNG" factoryName="TestNG">
|
|
||||||
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
|
|
||||||
<module name="" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH" />
|
|
||||||
<option name="SUITE_NAME" />
|
|
||||||
<option name="PACKAGE_NAME" />
|
|
||||||
<option name="MAIN_CLASS_NAME" />
|
|
||||||
<option name="METHOD_NAME" />
|
|
||||||
<option name="GROUP_NAME" />
|
|
||||||
<option name="TEST_OBJECT" value="CLASS" />
|
|
||||||
<option name="VM_PARAMETERS" value="-ea" />
|
|
||||||
<option name="PARAMETERS" />
|
|
||||||
<option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
|
|
||||||
<option name="OUTPUT_DIRECTORY" />
|
|
||||||
<option name="ANNOTATION_TYPE" />
|
|
||||||
<option name="ENV_VARIABLES" />
|
|
||||||
<option name="PASS_PARENT_ENVS" value="true" />
|
|
||||||
<option name="TEST_SEARCH_SCOPE">
|
|
||||||
<value defaultName="singleModule" />
|
|
||||||
</option>
|
|
||||||
<option name="USE_DEFAULT_REPORTERS" value="false" />
|
|
||||||
<option name="PROPERTIES_FILE" />
|
|
||||||
<envs />
|
|
||||||
<properties />
|
|
||||||
<listeners />
|
|
||||||
</configuration>
|
|
||||||
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
|
|
||||||
<module name="" />
|
|
||||||
<option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
|
|
||||||
<option name="PROGRAM_PARAMETERS" />
|
|
||||||
<predefined_log_file id="idea.log" enabled="true" />
|
|
||||||
</configuration>
|
|
||||||
<configuration name="timesync.lua" type="lua.app" factoryName="Lua Application" temporary="true">
|
|
||||||
<option name="program" value="lua" />
|
|
||||||
<option name="file" value="$PROJECT_DIR$/modules/timesync.lua" />
|
|
||||||
<option name="workingDir" value="" />
|
|
||||||
<option name="debuggerType" value="2" />
|
|
||||||
<option name="params" value="" />
|
|
||||||
<option name="charset" value="UTF-8" />
|
|
||||||
<option name="showConsole" value="true" />
|
|
||||||
</configuration>
|
|
||||||
<recent_temporary>
|
|
||||||
<list size="1">
|
|
||||||
<item index="0" class="java.lang.String" itemvalue="Lua Application.timesync.lua" />
|
|
||||||
</list>
|
|
||||||
</recent_temporary>
|
|
||||||
</component>
|
|
||||||
<component name="ShelveChangesManager" show_recycled="false">
|
|
||||||
<option name="remove_strategy" value="false" />
|
|
||||||
</component>
|
|
||||||
<component name="SvnConfiguration">
|
|
||||||
<configuration />
|
|
||||||
</component>
|
|
||||||
<component name="TaskManager">
|
|
||||||
<task active="true" id="Default" summary="Default task">
|
|
||||||
<changelist id="495daa03-3ea5-4e8c-9013-c532511d508b" name="Default" comment="" />
|
|
||||||
<created>1602820978741</created>
|
|
||||||
<option name="number" value="Default" />
|
|
||||||
<option name="presentableId" value="Default" />
|
|
||||||
<updated>1602820978741</updated>
|
|
||||||
<workItem from="1602820980264" duration="616000" />
|
|
||||||
<workItem from="1602821729128" duration="86000" />
|
|
||||||
<workItem from="1602821832919" duration="32183000" />
|
|
||||||
<workItem from="1602822925699" duration="14000" />
|
|
||||||
<workItem from="1602822943319" duration="1000" />
|
|
||||||
<workItem from="1602822966566" duration="642000" />
|
|
||||||
<workItem from="1602910724222" duration="3375000" />
|
|
||||||
<workItem from="1602916148688" duration="33848000" />
|
|
||||||
<workItem from="1603074238740" duration="59948000" />
|
|
||||||
<workItem from="1603457165086" duration="45310000" />
|
|
||||||
<workItem from="1603616514599" duration="3158000" />
|
|
||||||
<workItem from="1603819447267" duration="333000" />
|
|
||||||
<workItem from="1603984898167" duration="190000" />
|
|
||||||
<workItem from="1604403791408" duration="11438000" />
|
|
||||||
<workItem from="1604544298691" duration="6187000" />
|
|
||||||
<workItem from="1605253935454" duration="4884000" />
|
|
||||||
</task>
|
|
||||||
<servers />
|
|
||||||
</component>
|
|
||||||
<component name="TimeTrackingManager">
|
|
||||||
<option name="totallyTimeSpent" value="202213000" />
|
|
||||||
</component>
|
|
||||||
<component name="ToolWindowManager">
|
|
||||||
<frame x="-1920" y="-11" width="1920" height="1009" extended-state="0" />
|
|
||||||
<editor active="true" />
|
|
||||||
<layout>
|
|
||||||
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Palette	" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
|
||||||
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="LuaCheck" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
||||||
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="true" content_ui="tabs" />
|
|
||||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
||||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
||||||
</layout>
|
|
||||||
</component>
|
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
|
||||||
<option name="version" value="1" />
|
|
||||||
</component>
|
|
||||||
<component name="VcsContentAnnotationSettings">
|
|
||||||
<option name="myLimit" value="2678400000" />
|
|
||||||
</component>
|
|
||||||
<component name="XDebuggerManager">
|
|
||||||
<breakpoint-manager>
|
|
||||||
<option name="time" value="4" />
|
|
||||||
</breakpoint-manager>
|
|
||||||
<watches-manager />
|
|
||||||
</component>
|
|
||||||
<component name="editorHistoryManager">
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/launcher.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="465">
|
|
||||||
<caret line="31" column="39" lean-forward="false" selection-start-line="31" selection-start-column="39" selection-end-line="31" selection-end-column="39" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/reload.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="60">
|
|
||||||
<caret line="4" column="21" lean-forward="false" selection-start-line="4" selection-start-column="9" selection-end-line="4" selection-end-column="21" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/system.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="0">
|
|
||||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/timesync/timesync.sh">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="90">
|
|
||||||
<caret line="6" column="0" lean-forward="true" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/timesync.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="75">
|
|
||||||
<caret line="5" column="60" lean-forward="false" selection-start-line="5" selection-start-column="60" selection-end-line="5" selection-end-column="60" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/windows.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="270">
|
|
||||||
<caret line="18" column="32" lean-forward="true" selection-start-line="18" selection-start-column="32" selection-end-line="18" selection-end-column="32" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/snippet.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="2415">
|
|
||||||
<caret line="161" column="37" lean-forward="true" selection-start-line="161" selection-start-column="37" selection-end-line="161" selection-end-column="37" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/inputstat.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="180">
|
|
||||||
<caret line="12" column="0" lean-forward="true" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/init.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="150">
|
|
||||||
<caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/dict.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="0">
|
|
||||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/hotkey.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="45">
|
|
||||||
<caret line="3" column="29" lean-forward="false" selection-start-line="3" selection-start-column="29" selection-end-line="3" selection-end-column="29" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/launcher.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="420">
|
|
||||||
<caret line="28" column="19" lean-forward="false" selection-start-line="28" selection-start-column="19" selection-end-line="28" selection-end-column="19" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/system.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="0">
|
|
||||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/timesync.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="60">
|
|
||||||
<caret line="4" column="9" lean-forward="false" selection-start-line="4" selection-start-column="9" selection-end-line="4" selection-end-column="9" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/snippet.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="135">
|
|
||||||
<caret line="9" column="9" lean-forward="false" selection-start-line="9" selection-start-column="9" selection-end-line="9" selection-end-column="9" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/timesync/timesync.sh">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="210">
|
|
||||||
<caret line="14" column="4" lean-forward="true" selection-start-line="14" selection-start-column="4" selection-end-line="14" selection-end-column="4" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/init.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="150">
|
|
||||||
<caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/dict.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="0">
|
|
||||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/hotkey.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="45">
|
|
||||||
<caret line="3" column="29" lean-forward="true" selection-start-line="3" selection-start-column="29" selection-end-line="3" selection-end-column="29" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/LuaJson.lua" />
|
|
||||||
<entry file="file://$PROJECT_DIR$/Spoons/ColorPicker.spoon/docs.json" />
|
|
||||||
<entry file="file://$PROJECT_DIR$/Spoons/ColorPicker.spoon/init.lua" />
|
|
||||||
<entry file="file://$PROJECT_DIR$/Spoons/SpoonInstall.spoon/init.lua" />
|
|
||||||
<entry file="file://$PROJECT_DIR$/Spoons/KSheet.spoon/init.lua" />
|
|
||||||
<entry file="file://$PROJECT_DIR$/Spoons/Caffeine.spoon/docs.json" />
|
|
||||||
<entry file="file://$PROJECT_DIR$/Spoons/Caffeine.spoon/init.lua" />
|
|
||||||
<entry file="jar://$APPLICATION_PLUGINS_DIR$/intellij-emmylua/lib/intellij-emmylua-1.3.2.142-IDEA172.jar!/std/Lua53/debug.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="1110">
|
|
||||||
<caret line="74" column="15" lean-forward="false" selection-start-line="74" selection-start-column="15" selection-end-line="74" selection-end-column="15" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/colorPicker.lua" />
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/dict.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="900">
|
|
||||||
<caret line="60" column="18" lean-forward="true" selection-start-line="60" selection-start-column="18" selection-end-line="60" selection-end-column="18" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/windows.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="15">
|
|
||||||
<caret line="18" column="32" lean-forward="false" selection-start-line="18" selection-start-column="32" selection-end-line="18" selection-end-column="32" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/jsonFormat.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="30">
|
|
||||||
<caret line="2" column="23" lean-forward="true" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="50" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/reload.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="30">
|
|
||||||
<caret line="2" column="0" lean-forward="false" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/system.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="255">
|
|
||||||
<caret line="17" column="25" lean-forward="false" selection-start-line="17" selection-start-column="25" selection-end-line="17" selection-end-column="25" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/timesync/timesync.sh">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="120">
|
|
||||||
<caret line="8" column="20" lean-forward="false" selection-start-line="8" selection-start-column="20" selection-end-line="8" selection-end-column="34" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/launcher.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="450">
|
|
||||||
<caret line="30" column="19" lean-forward="false" selection-start-line="30" selection-start-column="19" selection-end-line="30" selection-end-column="19" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/timesync.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="420">
|
|
||||||
<caret line="28" column="0" lean-forward="true" selection-start-line="28" selection-start-column="0" selection-end-line="28" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/snippet.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="345">
|
|
||||||
<caret line="117" column="42" lean-forward="true" selection-start-line="117" selection-start-column="42" selection-end-line="117" selection-end-column="42" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/hotkey.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="60">
|
|
||||||
<caret line="4" column="25" lean-forward="false" selection-start-line="4" selection-start-column="25" selection-end-line="4" selection-end-column="25" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/init.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="225">
|
|
||||||
<caret line="15" column="0" lean-forward="false" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/inputstat.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="1515">
|
|
||||||
<caret line="101" column="23" lean-forward="false" selection-start-line="101" selection-start-column="23" selection-end-line="101" selection-end-column="23" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/dict.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="1785">
|
|
||||||
<caret line="119" column="22" lean-forward="false" selection-start-line="119" selection-start-column="22" selection-end-line="119" selection-end-column="22" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/caffeine.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="435">
|
|
||||||
<caret line="29" column="17" lean-forward="false" selection-start-line="29" selection-start-column="17" selection-end-line="29" selection-end-column="17" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/history.json">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="210">
|
|
||||||
<caret line="14" column="40" lean-forward="false" selection-start-line="14" selection-start-column="40" selection-end-line="14" selection-end-column="40" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/.gitignore">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="0">
|
|
||||||
<caret line="0" column="12" lean-forward="true" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="12" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/initConfig.json">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="30">
|
|
||||||
<caret line="2" column="22" lean-forward="false" selection-start-line="2" selection-start-column="22" selection-end-line="2" selection-end-column="22" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/README.md">
|
|
||||||
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
|
||||||
<state split_layout="SPLIT">
|
|
||||||
<first_editor relative-caret-position="105">
|
|
||||||
<caret line="7" column="0" lean-forward="true" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</first_editor>
|
|
||||||
<second_editor />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/README_en.md">
|
|
||||||
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
|
||||||
<state split_layout="SPLIT">
|
|
||||||
<first_editor relative-caret-position="225">
|
|
||||||
<caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</first_editor>
|
|
||||||
<second_editor />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="15">
|
|
||||||
<caret line="1" column="6" lean-forward="true" selection-start-line="1" selection-start-column="6" selection-end-line="1" selection-end-column="6" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/config.json">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="165">
|
|
||||||
<caret line="11" column="1" lean-forward="true" selection-start-line="11" selection-start-column="1" selection-end-line="11" selection-end-column="1" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/data/dictHistory.json">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="15">
|
|
||||||
<caret line="1" column="0" lean-forward="true" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/modules/commons.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="280">
|
|
||||||
<caret line="153" column="6" lean-forward="true" selection-start-line="153" selection-start-column="6" selection-end-line="153" selection-end-column="6" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</component>
|
|
||||||
<component name="masterDetails">
|
|
||||||
<states>
|
|
||||||
<state key="GlobalLibrariesConfigurable.UI">
|
|
||||||
<settings>
|
|
||||||
<splitter-proportions>
|
|
||||||
<option name="proportions">
|
|
||||||
<list>
|
|
||||||
<option value="0.2" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</splitter-proportions>
|
|
||||||
</settings>
|
|
||||||
</state>
|
|
||||||
<state key="JdkListConfigurable.UI">
|
|
||||||
<settings>
|
|
||||||
<splitter-proportions>
|
|
||||||
<option name="proportions">
|
|
||||||
<list>
|
|
||||||
<option value="0.2" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</splitter-proportions>
|
|
||||||
</settings>
|
|
||||||
</state>
|
|
||||||
<state key="ProjectJDKs.UI">
|
|
||||||
<settings>
|
|
||||||
<splitter-proportions>
|
|
||||||
<option name="proportions">
|
|
||||||
<list>
|
|
||||||
<option value="0.2" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</splitter-proportions>
|
|
||||||
</settings>
|
|
||||||
</state>
|
|
||||||
<state key="ProjectLibrariesConfigurable.UI">
|
|
||||||
<settings>
|
|
||||||
<splitter-proportions>
|
|
||||||
<option name="proportions">
|
|
||||||
<list>
|
|
||||||
<option value="0.2" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</splitter-proportions>
|
|
||||||
</settings>
|
|
||||||
</state>
|
|
||||||
</states>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -101,10 +101,14 @@ https://github.com/greyby/hammerspoon
|
|||||||
|
|
||||||
### 屏幕取色功能
|
### 屏幕取色功能
|
||||||
|
|
||||||
|
* <kbd>⌥</kbd><kbd>⌘</kbd> + <kbd>P</kbd> 颜色拾取器
|
||||||
|
|
||||||
菜单栏点击屏幕取色,出现取色界面后点击颜色拾取器,就可以获取当前屏幕鼠标所在位置的颜色值
|
菜单栏点击屏幕取色,出现取色界面后点击颜色拾取器,就可以获取当前屏幕鼠标所在位置的颜色值
|
||||||
|
|
||||||
### 咖啡因
|
### 咖啡因
|
||||||
|
|
||||||
|
* <kbd>⌥</kbd><kbd>⌘</kbd> + <kbd>C</kbd> 咖啡因
|
||||||
|
|
||||||
菜单栏点击 咖啡因打开系统永不休眠功能,再点击一次就能关闭
|
菜单栏点击 咖啡因打开系统永不休眠功能,再点击一次就能关闭
|
||||||
|
|
||||||
### 状态栏显示输入法状态
|
### 状态栏显示输入法状态
|
||||||
|
@ -100,10 +100,14 @@ Support baidu and youdao translation API. Baidu Translation can be used directly
|
|||||||
|
|
||||||
### Screen color selection function
|
### Screen color selection function
|
||||||
|
|
||||||
|
* <kbd>⌥</kbd><kbd>⌘</kbd> + <kbd>P</kbd> Screen color selection function
|
||||||
|
|
||||||
Click the screen color in the menu bar, click the color picker after the screen color picker interface appears, and the color value at the position of the mouse on the screen can be obtained
|
Click the screen color in the menu bar, click the color picker after the screen color picker interface appears, and the color value at the position of the mouse on the screen can be obtained
|
||||||
|
|
||||||
### caffeine
|
### caffeine
|
||||||
|
|
||||||
|
* <kbd>⌥</kbd><kbd>⌘</kbd> + <kbd>C</kbd> caffeine
|
||||||
|
|
||||||
On the menu bar, click caffeine to turn on the system's never sleep feature, and then click again to turn it off
|
On the menu bar, click caffeine to turn on the system's never sleep feature, and then click again to turn it off
|
||||||
|
|
||||||
### The status bar shows the status of the input method
|
### The status bar shows the status of the input method
|
||||||
|
@ -47,6 +47,10 @@
|
|||||||
"subText" : "cmd|diff file1 file2|比较并显示两个文件的差异",
|
"subText" : "cmd|diff file1 file2|比较并显示两个文件的差异",
|
||||||
"text" : "diff"
|
"text" : "diff"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"subText" : "cmd|journalctl -f -u xx.service -n1000|显示日志",
|
||||||
|
"text" : "journalctl -f -u xx.service -n1000"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"subText" : "cmd|kill -9 pid|终止进程",
|
"subText" : "cmd|kill -9 pid|终止进程",
|
||||||
"text" : "kill"
|
"text" : "kill"
|
||||||
@ -147,6 +151,26 @@
|
|||||||
"subText" : "code|java|author注释模板",
|
"subText" : "code|java|author注释模板",
|
||||||
"text" : "\/** \n* @Title: ${file_name} \n* @Package ${package_name} \n* @Description: ${todo}(用一句话描述该文件做什么) \n* @author sugood\n* @date ${date} ${time} \n* @version V1.0 \n*\/"
|
"text" : "\/** \n* @Title: ${file_name} \n* @Package ${package_name} \n* @Description: ${todo}(用一句话描述该文件做什么) \n* @author sugood\n* @date ${date} ${time} \n* @version V1.0 \n*\/"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"subText" : "flutter build apk --release",
|
||||||
|
"text" : "flutter build apk --release"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"subText" : "flutter build ios --release",
|
||||||
|
"text" : "flutter build ios --release"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"subText" : "flutter clean",
|
||||||
|
"text" : "flutter clean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"subText" : "flutter doctor",
|
||||||
|
"text" : "flutter doctor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"subText" : "flutter run --debug",
|
||||||
|
"text" : "flutter run --debug"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"subText" : "ins|brew install node|安装node",
|
"subText" : "ins|brew install node|安装node",
|
||||||
"text" : "brew install node"
|
"text" : "brew install node"
|
||||||
|
2
init.lua
2
init.lua
@ -2,8 +2,8 @@ hs.configdir = os.getenv('HOME') .. '/.hammerspoon'
|
|||||||
package.path = hs.configdir .. '/?.lua;' .. hs.configdir .. '/?/init.lua;' .. hs.configdir .. '/Spoons/?.spoon/init.lua;' .. package.path
|
package.path = hs.configdir .. '/?.lua;' .. hs.configdir .. '/?/init.lua;' .. hs.configdir .. '/Spoons/?.spoon/init.lua;' .. package.path
|
||||||
|
|
||||||
require "modules/reload"
|
require "modules/reload"
|
||||||
require "modules/commons"
|
|
||||||
require "modules/hotkey"
|
require "modules/hotkey"
|
||||||
|
require "modules/commons"
|
||||||
require "modules/system"
|
require "modules/system"
|
||||||
require "modules/windows"
|
require "modules/windows"
|
||||||
require "modules/launcher"
|
require "modules/launcher"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
--- DateTime: 2020/10/24 14:13
|
--- DateTime: 2020/10/24 14:13
|
||||||
---
|
---
|
||||||
local console = require("hs.console")
|
local console = require("hs.console")
|
||||||
version = "v0.1.2"
|
version = "v0.1.3"
|
||||||
configPath= "~/.hammerspoon/data/config.json"
|
configPath= "~/.hammerspoon/data/config.json"
|
||||||
initConfigPath= "~/.hammerspoon/data/initConfig.json"
|
initConfigPath= "~/.hammerspoon/data/initConfig.json"
|
||||||
config = {}
|
config = {}
|
||||||
@ -124,15 +124,7 @@ function initMenu()
|
|||||||
end },
|
end },
|
||||||
{ title = "-" },
|
{ title = "-" },
|
||||||
{ title = "屏幕取色", fn = function()
|
{ title = "屏幕取色", fn = function()
|
||||||
hs.openConsole(true)
|
openColorDialog()
|
||||||
colorDialog.show()
|
|
||||||
colorDialog.mode("RGB")
|
|
||||||
colorDialog.callback(function(a,b)
|
|
||||||
if b then
|
|
||||||
hs.closeConsole()
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
hs.closeConsole()
|
|
||||||
end },
|
end },
|
||||||
{ title = "-" },
|
{ title = "-" },
|
||||||
{ title = "咖啡因:" .. config[1].caffeine, fn = function()
|
{ title = "咖啡因:" .. config[1].caffeine, fn = function()
|
||||||
@ -260,3 +252,25 @@ function isCopySuccess()
|
|||||||
print("复制后数量:"..numAfter)
|
print("复制后数量:"..numAfter)
|
||||||
return numAfter > num
|
return numAfter > num
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function openColorDialog()
|
||||||
|
hs.openConsole(true)
|
||||||
|
colorDialog.show()
|
||||||
|
colorDialog.mode("RGB")
|
||||||
|
colorDialog.callback(function(a,b)
|
||||||
|
if b then
|
||||||
|
hs.closeConsole()
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
hs.closeConsole()
|
||||||
|
end
|
||||||
|
|
||||||
|
--设置颜色拾取快键键
|
||||||
|
hs.hotkey.bind(hyperCmd, "P", function ()
|
||||||
|
openColorDialog()
|
||||||
|
end)
|
||||||
|
|
||||||
|
--设置颜色拾取快键键
|
||||||
|
hs.hotkey.bind(hyperCmd, "C", function ()
|
||||||
|
switchCaffeine()
|
||||||
|
end)
|
@ -6,154 +6,6 @@
|
|||||||
--
|
--
|
||||||
--
|
--
|
||||||
|
|
||||||
local function generateHtml()
|
|
||||||
|
|
||||||
local html = [[
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Json格式化高亮展示工具</title>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
body { height: 100%; margin:0; font-family:"微软雅黑"; font-size:12px; }
|
|
||||||
.pdiv { height: 85%; position: absolute; }
|
|
||||||
.title { height: auto; font-size:20px; text-align:center; margin-top: 5px; margin-bottom: 20px;}
|
|
||||||
.author { height: auto; width: 100%; font-size:12px; text-align:center; margin-top: 30px; margin-bottom: 20px;}
|
|
||||||
table { height: 100%; width:100%; border-collapse:collapse; }
|
|
||||||
table .tdLeft { width:85%; text-align:left; padding-left: 10px;padding-right: 10px;}
|
|
||||||
table .tdmid { width:150px; text-align:center; margin: 0px; padding: 0px;}
|
|
||||||
table .tdRight { width:85%; padding-right: 30px;text-align:left; }
|
|
||||||
table textarea { width:100%; height:100%; font-size:14px; padding-top: 10px; padding-left: 10px; outline: none; border-radius: 15px; border: 2px solid #8AC007; }
|
|
||||||
#container { width:100%; height:100%; font-size:14px; padding-top: 10px; padding-left: 10px; border-radius: 15px; border: 2px solid #8AC007;}
|
|
||||||
pre{white-space:pre-wrap; white-space:-moz-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word; margin: 0px; padding: 5px;}
|
|
||||||
pre .string { color: green; }
|
|
||||||
pre .number { color: darkorange; }
|
|
||||||
pre .boolean { color: blue; }
|
|
||||||
pre .null { color: magenta; }
|
|
||||||
.key { color: red; }
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="pdiv">
|
|
||||||
<div class="title" >Json格式化高亮展示工具</div>
|
|
||||||
<table style="table-layout:fixed">
|
|
||||||
<tr>
|
|
||||||
<!-- <td class="tdLeft" nowrap>请输入要展示的Json:</td> -->
|
|
||||||
<td class="tdLeft">
|
|
||||||
<input style="width:auto; margin: 10px;" type="button" value="复制" onClick="copySource()">
|
|
||||||
<textarea name = "jsonContent" id="jsonContent" ></textarea>
|
|
||||||
</td>
|
|
||||||
<td class="tdmid"><input style="width:80%;" type="button" value="格式化JSON >>" onClick="showJson()"></td>
|
|
||||||
<td class="tdRight">
|
|
||||||
<input style="width:auto; margin: 10px;" type="button" value="复制" onClick="copyResult()">
|
|
||||||
<pre id="container"></pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<div class="author">
|
|
||||||
<a href="https://github.com/sugood" target="_blank">By: github.com/sugood</a>
|
|
||||||
</div>
|
|
||||||
<div class="tips" id="tips">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function copySource(){
|
|
||||||
var obj = document.getElementById('jsonContent');
|
|
||||||
//选择当前对象
|
|
||||||
obj.select();
|
|
||||||
try{
|
|
||||||
if(document.execCommand("Copy","false",null)){
|
|
||||||
alert("复制成功!");
|
|
||||||
}
|
|
||||||
}catch(err){
|
|
||||||
alert("复制错误!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function copyResult(){
|
|
||||||
var text = document.getElementById('container').innerText;
|
|
||||||
const input = document.createElement('textarea');
|
|
||||||
input.value = text;
|
|
||||||
input.setAttribute('readonly', 'readonly');
|
|
||||||
document.body.appendChild(input);
|
|
||||||
input.select();
|
|
||||||
try{
|
|
||||||
if(document.execCommand('Copy')){
|
|
||||||
alert('复制成功');
|
|
||||||
}
|
|
||||||
}catch(err){
|
|
||||||
alert("复制错误!");
|
|
||||||
}
|
|
||||||
document.body.removeChild(input);
|
|
||||||
}
|
|
||||||
|
|
||||||
function syntaxHighlight(json) {
|
|
||||||
if (typeof json != 'string') {
|
|
||||||
json = JSON.stringify(json, undefined, 4);
|
|
||||||
}
|
|
||||||
json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
||||||
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
|
|
||||||
var cls = 'number';
|
|
||||||
if (/^"/.test(match)) {
|
|
||||||
if (/:$/.test(match)) {
|
|
||||||
cls = 'key';
|
|
||||||
} else {
|
|
||||||
cls = 'string';
|
|
||||||
}
|
|
||||||
} else if (/true|false/.test(match)) {
|
|
||||||
cls = 'boolean';
|
|
||||||
} else if (/null/.test(match)) {
|
|
||||||
cls = 'null';
|
|
||||||
}
|
|
||||||
return '<span class="' + cls + '">' + match + '</span>';
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function showJson(){
|
|
||||||
var text = document.getElementById('jsonContent').value
|
|
||||||
if (text!="" && text!=null){
|
|
||||||
try {
|
|
||||||
var result = JSON.stringify(JSON.parse(text), null, 4);//将字符串转换成json对象
|
|
||||||
highLineResult = syntaxHighlight(result);
|
|
||||||
document.getElementById('container').innerHTML= highLineResult;
|
|
||||||
localStorage.setItem("jsonFormatSource",text);
|
|
||||||
localStorage.setItem("jsonFormatResult",highLineResult);
|
|
||||||
} catch(e) {
|
|
||||||
document.getElementById('container').innerText= '异常信息:'+e ;
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
document.getElementById("jsonContent").value = "请输入json文本";
|
|
||||||
document.getElementById('container').innerHTML= "显示Json格式化后的效果";
|
|
||||||
localStorage.setItem("jsonFormatSource","请输入json文本");
|
|
||||||
localStorage.setItem("jsonFormatResult","显示Json格式化后的效果");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var jsonFormatSource = localStorage.getItem("jsonFormatSource");
|
|
||||||
if (jsonFormatSource!="" && jsonFormatSource!=null){
|
|
||||||
document.getElementById("jsonContent").value=localStorage.getItem("jsonFormatSource");
|
|
||||||
}else{
|
|
||||||
document.getElementById("jsonContent").value = "请输入json文本"
|
|
||||||
}
|
|
||||||
var jsonFormatResult = localStorage.getItem("jsonFormatResult");
|
|
||||||
if (jsonFormatResult!="" && jsonFormatResult!=null){
|
|
||||||
document.getElementById("container").innerHTML=localStorage.getItem("jsonFormatResult");
|
|
||||||
}else{
|
|
||||||
document.getElementById("jsonContent").value = "显示Json格式化后的效果"
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</html>
|
|
||||||
]]
|
|
||||||
|
|
||||||
return html
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
--- KSheet:hide()
|
--- KSheet:hide()
|
||||||
--- Method
|
--- Method
|
||||||
--- Hide the cheatsheet view.
|
--- Hide the cheatsheet view.
|
||||||
@ -187,8 +39,11 @@ end
|
|||||||
--- Method
|
--- Method
|
||||||
--- Show current application's keybindings in a view.
|
--- Show current application's keybindings in a view.
|
||||||
function show(time)
|
function show(time)
|
||||||
local webcontent = generateHtml()
|
bindCopyKey()
|
||||||
sheetView:html(webcontent, "http://localhost")
|
local str = hs.pasteboard.getContents()
|
||||||
|
-- local webcontent = generateHtml()
|
||||||
|
-- sheetView:html(webcontent, "http://localhost")
|
||||||
|
sheetView:url("https://i.sugood.xyz/pages/jsonweb.html")
|
||||||
sheetView:show(time)
|
sheetView:show(time)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -202,6 +57,10 @@ end
|
|||||||
|
|
||||||
init()
|
init()
|
||||||
|
|
||||||
|
-- 按下添加快捷键时映射到复制快捷键
|
||||||
|
function bindCopyKey()
|
||||||
|
hs.eventtap.keyStroke({ "cmd" }, "C")
|
||||||
|
end
|
||||||
-- 添加片段(按下快捷键时做一个复制操作,并记录复制的内容到片段列表中)
|
-- 添加片段(按下快捷键时做一个复制操作,并记录复制的内容到片段列表中)
|
||||||
hs.hotkey.bind(hyperCmd, "G", function ()
|
hs.hotkey.bind(hyperCmd, "G", function ()
|
||||||
toggle()
|
toggle()
|
||||||
|
Loading…
Reference in New Issue
Block a user