timeslot + nvim

This commit is contained in:
Arnas Udovicius 2018-11-05 09:46:21 +02:00
parent a5eb6d1897
commit ecb611f0c1
2 changed files with 4 additions and 10 deletions

View file

@ -85,15 +85,11 @@ q - exit
self.manage_timeslot_menu()
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':
self.bye()
elif menu == '/':
self.search_time_slot()
self.manage_menu()
elif menu == '?':
self.manage_timeslot_about()
@ -115,10 +111,8 @@ q - exit
Short instruction
-----------------
? - help (this dialog)
! - toggle active tasks
v - toggle done tasks
t - manage time slots
# - backup/restore
+ - add time slot
- - remove time slot
< - back
q - exit
''' + bcolors.ENDC)

View file

@ -151,7 +151,7 @@ Created: %s ''' % (task['aid'], tags, long_term, task['created_at'])
f.write(content)
f.close()
subprocess.call(['vim', temp.name])
subprocess.call(['nvim', temp.name])
f = open(temp.name, 'r')
new_content = f.read()