Giter Club home page Giter Club logo

Comments (8)

manihindrich avatar manihindrich commented on August 20, 2024 3

If you use Templater, paste to template this code:

<%*
const waypoint = "%% Way" + "point %%";
tR += waypoint;
%>

Works for me :)

from waypoint.

Accelsnow avatar Accelsnow commented on August 20, 2024 1

Came across this problem as well. Creating a template file with %% Waypoint %% will result in immediate evaluation, and an error message(waypoint cannot be used in folder notes) replaces the waypoint. My current workaround for this is that I created a folder note for my template folder and put the waypoint command in this folder note. This produces valid waypoint, and whenever I use the template (for example, in Folder Note), the waypoint is then re-evaluated and updated to the correct value. I imagine if you need different templates with waypoint commands in them, then you can create a folder for each of them and put the template in the corresponding folder notes.

from waypoint.

JoelAnderson-UU avatar JoelAnderson-UU commented on August 20, 2024

I have the same problem. What I do is use %% waypoint %_% with a space, so that it doesn't automatically give an error message (about the template file not being a folder note).

Potential solution would be an option to override the automatic error setting, so that you could manually allow the syntax to appear in notes that are not folder notes.

from waypoint.

offbrands-studio avatar offbrands-studio commented on August 20, 2024

Responded to a different issue and found a solution that might help.

#SilentVoid13/Templater#1329 (reply in thread)

Not sure how to link to a discussion, apologies.

from waypoint.

francisHugo avatar francisHugo commented on August 20, 2024

Thanks @manihindrich , I will have a try.

from waypoint.

francisHugo avatar francisHugo commented on August 20, 2024

it really works! thanks a lot, cheers!

from waypoint.

manihindrich avatar manihindrich commented on August 20, 2024

I was happy to help :) so you can close the issue.

from waypoint.

offbrands-studio avatar offbrands-studio commented on August 20, 2024

Another way to have a template not activate

%% Waypoint %<% tp.file.cursor(1) %>%

If set up this way, it will activate whenever you create a Folder Note without the initial template activating.

You can use Templater to create a Hotkey for Waypoint as well if you want more control.

%% Waypoint %<% tp.file.cursor(1) %>%

  • Create a Template with only this in the body of the note
  • Set up the Hotkey in Templater settings
  • Pick keys to create (I used CTRL CMD W)
  • After creating a Folder Note via Folder Notes Plugin, insert the command via the Hotkey or Command Menu, and you should be good to go.

I hope I've explained this well enough, if not, I'll try to expand if anyone has questions.

from waypoint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.