texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

[Feature request] Display file contents of sub directories in project directory

Open Brakjen opened this issue 5 years ago • 5 comments

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?

Brakjen avatar Jun 11 '19 06:06 Brakjen

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 ?

sunderme avatar Jun 11 '19 20:06 sunderme

@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

  1. suppose you are using \includegraphics{<cursor position>}
  2. keep cursor position inside curly braces
  3. hit shortcut of (on macOS it's Ctrl + space) or click menu item Idefix -> Complete -> Normal, then the completer pops up
  4. choose the sub directory containing figures, hit "enter"
  5. continue to choose the desired figure you want to include.

Screen Recording 2019-07-06 at 01 45 31

muzimuzhi avatar Jul 05 '19 17:07 muzimuzhi

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.

ludwigbald avatar Aug 29 '19 12:08 ludwigbald

It would be really nice to see the filesystem structure in the tree on the left like on overleaf!

YunfeiZHAO avatar Jan 07 '23 13:01 YunfeiZHAO

I honestly feel like every LaTeX editor should have this feature

dlabaja avatar Feb 03 '24 16:02 dlabaja

Actually this would be super useful and needed. The current view is far from intuitive

athn-nik avatar Mar 29 '24 15:03 athn-nik

first version implemented (https://github.com/texstudio-org/texstudio/releases/tag/4.8.0alpha3)

sunderme avatar Apr 01 '24 17:04 sunderme

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 ?

athn-nik avatar Apr 01 '24 18:04 athn-nik

You have tabs on the left-hand side to select which functionaliyt to use. Furthermore the docks can be split.

sunderme avatar Apr 01 '24 18:04 sunderme

thanks for this work, texstudio will be finally a really good alternative to overleaf

dlabaja avatar Apr 01 '24 18:04 dlabaja

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]

sunderme avatar Apr 04 '24 06:04 sunderme

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.

octaeder avatar Apr 04 '24 10:04 octaeder