Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use this plugin without actual formation of the hard links #9

Closed
tallguyjenks opened this issue Nov 16, 2020 · 4 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@tallguyjenks
Copy link

So when this plugin is run and generates the output file it actually links to all the files in the vault and makes the graph revolve around a single file:

image

The hack i was using before this plugin came out was a command line one-liner to build this output file:

egrep -ohsr --exclude-dir='.*' "\[\[[A-Za-z0-9 _@ÄÖÜäöüß\'\!\?\.\(\)\-]+\]\]" -- * | sed -e 's/[[:space:]]#/#/' | sort | uniq -c | sort -r -t# -k2  > "🔗️☁️.md"

and it generates a file that has no line breaks between links (your template produces line breaks between links) and also ignored all daily notes based on the date format (another great feature to add)

the output file was also indented so that it doesn't actually create links and distort the graph:

image

in obsidian's settings, you can turn off strict line breaks so

[[link1]]
[[link2]]

appear exactly as they are seen above and not like:

[[link1]][[link2]]

but this can be toggled, the request would be to toggle the plugin so you can have the output displayed like

[[link1]]
[[link2]]

OR

[[link1]]

[[link2]]

if you have those line breaks turned on.

image

just some ideas :)

@aviskase
Copy link
Owner

@tallguyjenks great ideas, so, to summarize:

  • toggle to have use strict line breaks or not
  • toggle to have link [[file_link]] vs plaintext file_link
  • ignore paths with glob

Did I catch all?

@tallguyjenks
Copy link
Author

  1. toggle to have use strict line breaks or not
  2. toggle to have link [[file_link]] vs plaintext file_link
  3. ignore paths with glob

i actually didn't care about 2, but that's a good idea! Yes!

@aviskase
Copy link
Owner

(2) solves the same problem as indenting, but I think will be less confusing. Thanks, gonna work on these first!

@aviskase aviskase added the enhancement New feature or request label Nov 16, 2020
aviskase added a commit that referenced this issue Nov 17, 2020
aviskase added a commit that referenced this issue Nov 17, 2020
@aviskase aviskase added this to the 1.0.0 milestone Nov 17, 2020
@aviskase
Copy link
Owner

(1) and (2) are implemented, (3) is logged as a separate issue #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants