AnthonyDiGirolamo / todotxt-machine

an interactive terminal based todo.txt file editor with an interface similar to mutt
https://pypi.python.org/pypi/todotxt-machine/
GNU General Public License v3.0
245 stars 37 forks source link

searching with no results #8

Closed AnthonyDiGirolamo closed 10 years ago

AnthonyDiGirolamo commented 10 years ago

When searching and no results are shown, a quote is displayed. Should probably say no results found.

Also if you hit enter at that point the app crashes with:

Traceback (most recent call last):                                                                                               
  File "/Users/anthony/projects/todotxt_python/env341/bin/todotxt-machine", line 9, in <module>                                  
    load_entry_point('todotxt-machine==1.1.7', 'console_scripts', 'todotxt-machine')()                                           
  File "/Users/anthony/projects/todotxt_python/todotxt_machine/cli.py", line 57, in main                                         
    view.main_loop()                                                                                                             
  File "/Users/anthony/projects/todotxt_python/todotxt_machine/screen.py", line 483, in main_loop                                
    self.edit_item()                                                                                                             
  File "/Users/anthony/projects/todotxt_python/todotxt_machine/screen.py", line 571, in edit_item                                
    raw_index = self.items[self.selected_item].raw_index                                                                         
IndexError: list index out of range

It should probably cancel the search instead.