Implement open file action.

Signed-off-by: Mariusz Fik <fisiu@fidano.pl>