update: Moved openFileInEditor

* Moved openFileInEditor function to this library to simplify its
  maintenance

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