Create Gitlab Snippet from selection or entire file

A nice feature to have would be the ability to create a new snippet from either a selection or an entire file. Thank you for your work!