You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO - you can't pass existing file content into the input easily
r"\:"self.is_read_only=Truedeft_QUESTION(self, t):
r"\?"ifself.is_extra:
# gets the questionquestion=t.lexer.lexdata[t.lexer.lexpos:]
ifquestion.find("\n") !=-1:
question=question[:question.find("\n")]
original_length=len(question)
question='\n'.join(question.split('\\n'))
ifquestionisnotNoneandquestion!="":
ifquestion[0] ==" ":
question=question[1:]
# print(question)print("\n")
print("Editing: "+self.last_file_created)
print("************************************************************")
print("Multi-line editor: then Ctrl-D or Ctrl-Z ( windows ) to save.")
print("TIP: Press Return for an empty newline BEFORE saving.")
print("************************************************************")
print("\U0001F4DD Enter/Paste your content.")
print("************************************************************")
# TODO - you can't pass existing file content into the input easily# i do have a branch that can break into vim and return.# but that wont work for windows. so will have a think about it.contents= []
whileTrue:
try:
line=input()
exceptEOFError:
breakcontents.append(line)
content='\n'.join(contents)
iftree.TEST_MODE:
sslog('TEST_MODE1: skip writing content into this file:', self.last_file_created)
else:
self.last_file_created=self.last_file_created.strip() # ensure remove trailing spaceswithopen(self.last_file_created, "w+", encoding="utf-8") asf:
f.write(content)
sslog(f' - Writing into {self.last_file_created}')
f.close()
# sslog("wrote content into this file:", self.last_file_created)t.lexer.skip(original_length)
else:
filetype='folder'ifself.is_direlse'file'print('What would you like the '+filetype+' to be called?')
line=input()
classmock():
value=linet=mock()
self.t_FILE(t)
deft_TAB(self, t):
r"[\t]+"self.move_back(len(t.value))
The text was updated successfully, but these errors were encountered:
This issue was automatically created by a github action that converts project Todos to issues.
sharpshooter/sharpshooter/__init__.py
Line 491 in a4473f4
The text was updated successfully, but these errors were encountered: