Skip to content

Commit

Permalink
Rename 'modify_multiple' operation to 'modify_bulk' and enable autoco…
Browse files Browse the repository at this point in the history
…mpletion
  • Loading branch information
kevinstadler committed Apr 17, 2021
1 parent a1d51c3 commit 9fdb6ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vit/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def command_bar_keypress(self, data):
# before hitting enter?
if self.execute_command(['task', metadata['uuid'], 'modify'] + args, wait=self.wait):
self.activate_message_bar('Task %s modified' % self.model.task_id(metadata['uuid']))
elif op == 'modify_multiple':
elif op == 'modify_bulk':
# same underlying command as the modify command above, only
# the message bar is set to information about the number of
# tasks modified, instead of a single task info
Expand Down Expand Up @@ -774,7 +774,7 @@ def task_action_modify(self):
def task_action_modify_all(self):
current_view_filter = self.active_view_filters()
ntasks = self.model.get_n_tasks(current_view_filter)
self.activate_command_bar('modify_multiple', 'Modify all (%s tasks): ' % ntasks, {'target': current_view_filter, 'ntasks': ntasks})
self.activate_command_bar('modify_bulk', 'Modify all (%s tasks): ' % ntasks, {'target': current_view_filter, 'ntasks': ntasks})

def task_action_start_stop(self):
uuid, task = self.get_focused_task()
Expand Down Expand Up @@ -846,7 +846,7 @@ def refresh_blocking_task_uuids(self):

def setup_autocomplete(self, op):
callback = self.command_bar.set_edit_text_callback()
if op in ('filter', 'add', 'modify'):
if op in ('filter', 'add', 'modify', 'modify_bulk'):
self.autocomplete.setup(callback)
elif op in ('ex',):
filters = ('report', 'column', 'project', 'tag', 'help')
Expand Down

0 comments on commit 9fdb6ad

Please sign in to comment.