bouncepaw / mycorrhiza

🍄📑 Filesystem and git-based wiki engine for the independent web written in Go and using Mycomarkup as its primary markup language.
https://mycorrhiza.wiki
GNU Affero General Public License v3.0
300 stars 26 forks source link

A way to create a hypha #124

Open bouncepaw opened 2 years ago

bouncepaw commented 2 years ago

123 implemented a way to create a hypha with Mycorrhiza's interface, without following red links or using browser's interface. I did not accept the way it implemented that, though.

But we do need something like that. Here's what I think:

Like in that pull request, the address should be /new. Sounds nice. People could bookmark this address.

kytta commented 2 years ago

I have a similar idea, that is easier to implement.

If a user is logged in (= may create hyphæ) and searches for a hypha by its name, there can be a link to create said hypha:

Screenshot

The link would go to the /edit/<hypha_name>. We can show this link even if results aren’t empty.

bouncepaw commented 2 years ago

Cool idea. Why /edit/? What if I want to upload a picture instead?

handlerug commented 2 years ago

It would actually be nice if the hypha name field was present on edit pages for non-existent hyphae. This would work nicely with @kytta's suggestion (I like it too).

Cool idea. Why /edit/? What if I want to upload a picture instead?

You could also add a way to attach a file to the new hypha on the edit page. Then there will be no need for a /new page.

kytta commented 2 years ago

Cool idea. Why /edit/? What if I want to upload a picture instead?

We can alternatively go to /hypha/<.> (then maybe name the link "Navigate to"), where the user then can create a hypha or upload a picture

bouncepaw commented 2 years ago

It would actually be nice if the hypha name field was present on edit pages for non-existent hyphae.

So, if I go to /edit/fish, there is a name field? Dunno.

You could also add a way to attach a file to the new hypha on the edit page. Then there will be no need for a /new page.

Yeah. That's basically having /new on the same address, ok.

We can alternatively go to /hypha/<.> (then maybe name the link "Navigate to"), where the user then can create a hypha or upload a picture

I actually find myself needing this link every other day. Also, this is the easiest to implement.

handlerug commented 2 years ago

I can implement name and attachment fields on the edit page if you want.

bouncepaw commented 2 years ago

I see it this way.

Having a name field for editors of already named hyphae kinda doesn't make sense.

Sure, implement it, I'll be glad.