timeslot + nvim
This commit is contained in:
parent
a5eb6d1897
commit
ecb611f0c1
2 changed files with 4 additions and 10 deletions
12
config.py
12
config.py
|
@ -85,15 +85,11 @@ q - exit
|
||||||
self.manage_timeslot_menu()
|
self.manage_timeslot_menu()
|
||||||
|
|
||||||
def manage_timeslot_menu(self):
|
def manage_timeslot_menu(self):
|
||||||
menu = input(bcolors.OKBLUE + '~config: ' + bcolors.OKGREEN + 'What you want to do? (?!vt#<q) ' + bcolors.ENDC)
|
menu = input(bcolors.OKBLUE + '~config/time_slot: ' + bcolors.OKGREEN + 'What you want to do? (?!vt#<q) ' + bcolors.ENDC)
|
||||||
|
|
||||||
if menu == 'q':
|
if menu == 'q':
|
||||||
self.bye()
|
self.bye()
|
||||||
|
|
||||||
elif menu == '/':
|
|
||||||
self.search_time_slot()
|
|
||||||
self.manage_menu()
|
|
||||||
|
|
||||||
elif menu == '?':
|
elif menu == '?':
|
||||||
self.manage_timeslot_about()
|
self.manage_timeslot_about()
|
||||||
|
|
||||||
|
@ -115,10 +111,8 @@ q - exit
|
||||||
Short instruction
|
Short instruction
|
||||||
-----------------
|
-----------------
|
||||||
? - help (this dialog)
|
? - help (this dialog)
|
||||||
! - toggle active tasks
|
+ - add time slot
|
||||||
v - toggle done tasks
|
- - remove time slot
|
||||||
t - manage time slots
|
|
||||||
# - backup/restore
|
|
||||||
< - back
|
< - back
|
||||||
q - exit
|
q - exit
|
||||||
''' + bcolors.ENDC)
|
''' + bcolors.ENDC)
|
||||||
|
|
2
task.py
2
task.py
|
@ -151,7 +151,7 @@ Created: %s ''' % (task['aid'], tags, long_term, task['created_at'])
|
||||||
f.write(content)
|
f.write(content)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
subprocess.call(['vim', temp.name])
|
subprocess.call(['nvim', temp.name])
|
||||||
|
|
||||||
f = open(temp.name, 'r')
|
f = open(temp.name, 'r')
|
||||||
new_content = f.read()
|
new_content = f.read()
|
||||||
|
|
Reference in a new issue