texstudio
texstudio copied to clipboard
[Feature request] Display file contents of sub directories in project directory
Displaying directory contents in the Structure side bar in TeXstudio.
I personally, and I suspect many other users as well, structure our projects with directories dedicated to various file types. For example, I always have a "./figs" dir where I store my figure files. Having the possibility of displaying the file contents of such dirs directly from within TeXstudio, would make my life a lot simpler. Now I have to keep open a Finder window or terminal window to display the file names, instead of just looking in the side bar.
Having TeXstudio also autocomplete the filenames of files in pre-defined, standard directories, would also be an awesome feature. The dir "./figs" could be one such default place where to look for files. Maybe we could set a few of these in the settings?
I don't fully understand. txs completes filenames, hence when you type './fi' , complete it to 'figs', you can complete further filenames. What should txs do instead ?
@Andersmb
Having the possibility of displaying the file contents of such dirs directly from within TeXstudio, would make my life a lot simpler.
I think texstudio has already supported this feature. Here is a step-by-step guideline
- suppose you are using
\includegraphics{<cursor position>}
- keep cursor position inside curly braces
- hit shortcut of (on macOS it's
Ctrl + space
) or click menu itemIdefix -> Complete -> Normal
, then the completer pops up - choose the sub directory containing figures, hit "enter"
- continue to choose the desired figure you want to include.
It would be nice to see the filesystem structure in the tree on the left, where we currently only see the structure of the currently loaded LaTeX documents. There's plenty of space left to display the contents of the whole workspace folder.
It would be really nice to see the filesystem structure in the tree on the left like on overleaf!
I honestly feel like every LaTeX editor should have this feature
Actually this would be super useful and needed. The current view is far from intuitive
first version implemented (https://github.com/texstudio-org/texstudio/releases/tag/4.8.0alpha3)
Thanks for taking care of this, but how to test this feature? How to turn on the normal file structure in case I install the prereleased version @sunderme ?
You have tabs on the left-hand side to select which functionaliyt to use. Furthermore the docks can be split.
thanks for this work, texstudio will be finally a really good alternative to overleaf
Can you post a screenshot?
04.04.2024 02:24:04 Pavel Kosov @.***>:
How to show filesystem on the left as in overleaf? It was shown but I closed it and now I cannot get it back
— Reply to this email directly, view it on GitHub[https://github.com/texstudio-org/texstudio/issues/639#issuecomment-2035847079], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADLCCELEMQUXT5E7IUHSVP3Y3SMSFAVCNFSM4HW3ATK2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTGU4DINZQG44Q]. You are receiving this because you were mentioned. [Verfolgungsbild][https://github.com/notifications/beacon/ADLCCEPJJBXC6AYOBW3D7O3Y3SMSFA5CNFSM4HW3ATK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOPFMI7JY.gif]
Maybe this is a misunderstanding. This is not a general file browser. When a tex file is opened with txs then the location of the file is used as top node for the file viewer. So you can navigate to everything that is in that subtree, but not to things outside - especially not the parent of the subtree. Said this, be aware that closing the editor will remove the subtree.