master v0.1.3
Skylar Ittner 5 年之前
父節點 7b5c4c7b92
當前提交 d2fffd4fee

@ -2,10 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="7e2ff7f2-75de-431f-9457-e0d648b65015" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/notepostcli/api.py" beforeDir="false" afterPath="$PROJECT_DIR$/notepostcli/api.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/notepostcli/notepost.py" beforeDir="false" afterPath="$PROJECT_DIR$/notepostcli/notepost.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/setup.py" beforeDir="false" afterPath="$PROJECT_DIR$/setup.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
@ -19,7 +16,7 @@
<entry file="file://$PROJECT_DIR$/setup.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="14" column="29" selection-start-line="14" selection-start-column="29" selection-end-line="14" selection-end-column="29" />
<caret line="14" column="27" selection-start-line="14" selection-start-column="27" selection-end-line="14" selection-end-column="27" />
</state>
</provider>
</entry>
@ -27,8 +24,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/notepostcli/notepost.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225">
<caret line="115" column="30" selection-start-line="115" selection-start-column="30" selection-end-line="115" selection-end-column="30" />
<state relative-caret-position="180">
<caret line="115" column="33" selection-start-line="115" selection-start-column="33" selection-end-line="115" selection-end-column="33" />
<folding>
<element signature="e#224#234#0" expanded="true" />
</folding>
@ -36,6 +33,15 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/notepostcli/termcolors.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="465">
<caret line="31" column="9" lean-forward="true" selection-start-line="31" selection-start-column="9" selection-end-line="31" selection-end-column="9" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/notepostcli/api.py">
<provider selected="true" editor-type-id="text-editor">
@ -190,7 +196,6 @@
</component>
<component name="ToolWindowManager">
<frame x="-4" y="0" width="1928" height="1046" extended-state="6" />
<editor active="true" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.17923036" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
@ -228,7 +233,7 @@
<entry file="file://$PROJECT_DIR$/setup.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="14" column="29" selection-start-line="14" selection-start-column="29" selection-end-line="14" selection-end-column="29" />
<caret line="14" column="27" selection-start-line="14" selection-start-column="27" selection-end-line="14" selection-end-column="27" />
</state>
</provider>
</entry>
@ -242,13 +247,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/notepostcli/termcolors.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="17" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/notepostcli/config.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
@ -259,10 +257,17 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/notepostcli/termcolors.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="465">
<caret line="31" column="9" lean-forward="true" selection-start-line="31" selection-start-column="9" selection-end-line="31" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/notepostcli/notepost.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225">
<caret line="115" column="30" selection-start-line="115" selection-start-column="30" selection-end-line="115" selection-end-column="30" />
<state relative-caret-position="180">
<caret line="115" column="33" selection-start-line="115" selection-start-column="33" selection-end-line="115" selection-end-column="33" />
<folding>
<element signature="e#224#234#0" expanded="true" />
</folding>

@ -113,7 +113,7 @@ def editnote(note):
def editmenu():
global notes
rows, columns = os.popen('stty size', 'r').read().split()
linelength = int(columns) - 10
linelength = int(columns) - 5
clearscreen()
loadnotes()
i = 1
@ -129,9 +129,11 @@ def editmenu():
if linecount > 5:
print("\n(" + str(len(note["content"].splitlines())) + " more lines" + ")", end='')
break
print("\n " + line[0:linelength].ljust(linelength), end='')
print("\n " + line[0:linelength].ljust(linelength), end='')
if len(line) > linelength:
print("...", end='')
else:
print(" ", end='')
linecount += 1
i += 1
resetcolor()

Loading…
取消
儲存