typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

File filtering in files panel

Open cgrima opened this issue 5 years ago • 29 comments

Hi,

My notes are stored in folders alongside data files (e.g., .csv, .txt). I don't want those files to appear in the outline panel because I use Typora only for notes editing, not for browsing the data files.

Ideally, I would suggest to make a filter option based on regex. In my case that would allow me to display only the *.md files in the outline panel. Is that something worth to implement?

Thanks for your work

cgrima avatar Aug 31 '18 14:08 cgrima

i have the opposite need and usage case for typora. my pdf files for research and text files are in the same directory. i would like to see pdf, exel etc. in files list and open them externally. i thing a filter for the file types you like to see in the files panel is the best solution as suggested.

hodanli avatar Mar 21 '19 17:03 hodanli

So what is the solution now?

The file tree hidden all non-.md files, and I can not find the setting to show all files.

Can I get any help?

bitfishxyz avatar Apr 02 '19 07:04 bitfishxyz

I also store pdf files for research alongside my md notes, would be great if there was an option to filter which files are shown in the tree. In my case, I'd like to show pdf files

seyuboglu avatar Apr 21 '19 18:04 seyuboglu

Because i have a lot of artical have images , and i choose the option to put theam in local $ARTICAL_NAME.asserts folder, the left file tree view's top always sized by a lot asserts folders.

  1. Hope to have an option to toggle the view of $ARTICAL_NAME.asserts folder.
  2. Or have another option to put image to ./asserts/$ARTICAL_NAME.asserts, so that to make the folder num from N to 1.

dulm avatar May 15 '19 02:05 dulm

I too would like to see more than just MD files. For instance, *.rst or *.txt files would be great. Files that Typora could handle, but not render is fine.

travisfranck avatar May 21 '19 15:05 travisfranck

Adding support for viewing all files types from the file tree sidebar would be excellent for me as well. I have the following documents saved alongside my markdown files and would like to be able to at least see that they exist in the file tree (though rendering the content of the file in the main section is less important to me):

  • pdf
  • jpg
  • xlsx
  • gsheet (though I am working to migrate off of Google completely. That company is evil.)
  • zip
  • mov

Thanks!

dlumma avatar Aug 18 '19 16:08 dlumma

Could someone familiar with the code point to where the file-types are filtered?

I would like to work on adding a config option for additional file-extensions to be dislayed in the tree.

ginkgomzd avatar Oct 10 '19 14:10 ginkgomzd

@ginkgomzd, Typora is not open source

vassudanagunta avatar Oct 13 '19 18:10 vassudanagunta

As a workaround i just noticed that if you set a directory to hidden in file explorer typora will not display it in the filetree. Unfortunately only works in windows as linux does not have a hidden attribute (do not know about mac). Also the filetree will not refresh if it is set, it only works after restart.

ascii78 avatar Nov 30 '19 19:11 ascii78

Just another tip, it seems that on both linux and windows directories get hidden by the file browser if they are prepended with a "." (dot). So if you set your image path to "./.${filename}.assets", they become invisible by default.

ascii78 avatar Dec 19 '19 14:12 ascii78

Hey, I also think it would be awesome to enable Typora to show all files in the file tree pane. Are there any news regarding this issue? I'm currently in the evaluation phase and this is unfortunately a big drawdown for me.

Just want to ask if such a feature can be expected in a future release or not.

Thanks :)

Evox402 avatar Jan 03 '22 14:01 Evox402

Just another tip, it seems that on both linux and windows directories get hidden by the file browser if they are prepended with a "." (dot). So if you set your image path to "./.${filename}.assets", they become invisible by default.

That's what I've been doing, but I use Firebase to host my notes and the config files get a bit cluttered.

Bonus tip on macOS: ⌘⇧[dot] will quickly show and hide hidden folders in Finder Bonus bonus tip for macOS: "chflags hidden [your full folder path]" in Terminal will hide any folder and "chflags nohidden [your full folder path]" will unhide it

Screen Shot 2022-02-19 at 10 42 08 AM

ghost avatar Feb 19 '22 15:02 ghost

+1 for the ability to toggle on/off displaying other file types in the sidebar.

dannydarvish avatar Mar 16 '22 21:03 dannydarvish

+1, this would be very helpful since I store images in the same folder as my notes. Would love to be able to quickly view my image files in Typora as well.

rcbyron avatar Apr 13 '22 17:04 rcbyron

+1 for the ability to toggle on/off displaying other file types in the sidebar.

nichelnich avatar Apr 22 '22 02:04 nichelnich

.mdx support is reauired!Just treat it as md file.

terwer avatar Jun 13 '22 09:06 terwer

+1 for me too. At least for images in the asset folder if you choose to clipboard an image then copy/paste it and create the image file. Having them hidden isn't ideal. Being able to browse the file by clicking on it to see the content would be very helpful. Thanks!

iaingblack avatar Dec 17 '22 10:12 iaingblack

I would like to be able to jump over to .py or .sh files in the same directory.

0xdf223 avatar Feb 06 '23 14:02 0xdf223

Not being able to see all files also makes Typora difficult to use when managing files for a DocFx project. DocFx uses YAML files for specifying the table-of-contents. The missing image files also make it difficult to verify links.

jgscherber avatar Mar 31 '23 13:03 jgscherber

I have a file called .NET.md that does not show up in Typora because of this issue... makes it difficult to keep notes about the .NET framework. 😅

pmarrapese avatar Apr 20 '23 01:04 pmarrapese

Upvote, I don't understand why .mdx is not supported.

Indosaram avatar Apr 23 '23 00:04 Indosaram

+1

sertorsol avatar Jul 16 '23 14:07 sertorsol

+1,If I can't see the files in the folder, I may mistakenly delete it as an empty folder.

smil1546ekimbang2 avatar Oct 19 '23 02:10 smil1546ekimbang2

+1

mingyEx avatar Nov 02 '23 02:11 mingyEx

Hello, This feature would be a greate improvement in using Typora for notes. Is there any forecast in implementing this feature sometimes ? Thanks and Bests.

joelschaer avatar Dec 15 '23 07:12 joelschaer

Would buy some licenses for my customers (web content management) if .mdx would be supported.

cgpro avatar Dec 20 '23 19:12 cgpro

This is so stupid, if you create a nested directory because you are structuring a folder whatever, then you can't access any subdirectory and have to use a file manager to create your .md files only then it shows up in typora. Why the hell did I pay money for this

sertorsol avatar Jan 30 '24 09:01 sertorsol

https://docusaurus.io/docs/migration/v3#using-the-mdx-extension

mdx is recommended but they don't show up in the folder view...

jovezhong avatar Feb 24 '24 06:02 jovezhong