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

Feature Request: Local responder #1

Open
linonetwo opened this issue Aug 5, 2020 · 6 comments
Open

Feature Request: Local responder #1

linonetwo opened this issue Aug 5, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@linonetwo
Copy link

Sometimes I want a solution to open a local tiddler, because I store some of my friends' name as tiddler.

So I hope this will open a local tiddler in the current browser tab, while currently it will open a new tab.

截屏2020-08-05 上午11 04 42

@kookma
Copy link
Owner

kookma commented Aug 6, 2020

@linonetwo Do you mean the link appears an a solution tiddler can open a local tiddler instead of a url? If so, I look and see how can I add this!

@kookma kookma added the enhancement New feature or request label Aug 6, 2020
@linonetwo
Copy link
Author

Yes, I think if url is a hash fragment, just remove the target="_blank" from the a tag?

@kookma
Copy link
Owner

kookma commented Aug 6, 2020

Have you tried that, if so you may submit a PR. If not let me see how to fix.

@linonetwo
Copy link
Author

I don't know how to express this in tw template:

<a href={{!!url}} target={url.startWith('#') ? "_blank" : null}>
  <$list filter="[enlist<responders>join[, ]]" variable=item><$text text=<<item>> /></$list>
</a>

I have written too much React ...

@linonetwo
Copy link
Author

<a href={{!!url}} target={{[url]+regexp[^#]else{{url}} }}>, oh it seems wrong...

@kookma
Copy link
Owner

kookma commented Aug 7, 2020

No problem, I will fix it!

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