i would like to know how to open my post directly on sublime text right after creating it on terminal
i usually use : hugo new my-new-post.md
You can either add the command line command used to open the editor by itself in your config file:
newContentEditor: ""
or when you make a new post you can add:
hugo new post/new.md --editor=vim
or whatever. but remember it has to be the command used to open the editor from the command line.
thanks gaetawoo; i have been struggling with this since i’ve created my blog , i’ve chosen the newContentEditor option and it works great
1 Like