fix: Fixed `edit` command behaviour

* Made sure that the `edit` command will only list notes that match the
  query on no number as the first argument.

Signed-off-by: mr.Shu <mr@shu.io>
janitoring: Fixes around `edit` command

* Improved readability
* Added a boundary test for args

Signed-off-by: mr.Shu <mr@shu.io>