I use Atom and have a main.tex file and use input to add text, which I write in separate .tex document, e.g. \input{sections/introduction.tex} occurs in the main.tex-file. If I am writing in a section, say introduction.tex and want to compile, then I need to open main.tex and build.
However, I would like to use a shortcut, such that I can compile from a section, e.g. introduction.tex, without changing to main.tex.