Code Monkey home page Code Monkey logo

Comments (4)

mediapathic avatar mediapathic commented on June 19, 2024 1

Sorry it took me a while to get to this. It seems to work great! And now I have title renaming as a bonus! Thanks so much.

from zetteldeft.

rotlaus avatar rotlaus commented on June 19, 2024

Currently the title is '#+title:' + filename without extension.
Do we want a customizable prefix (default '#+TITLE:') + filename without extension?
What about a variable zd-title-prefix and then we should rename zd-insert-org-title to zd-insert-title. Only Problem i currently see is how the rename function could work with an empty prefix.
Otherwise i could look into that.

from zetteldeft.

mediapathic avatar mediapathic commented on June 19, 2024

I hadn't even thought about the impact on the rename function, since, because I don't use org-style #+title 201905240117 title and instead use markdown style # 201905240117 title , rename only affects filenames for me.

That said, what I would personally prefer would be just setting a customizable prefix as per your first suggestion.

from zetteldeft.

EFLS avatar EFLS commented on June 19, 2024

This should be fixed with the latest commit: df7228a.

There are now two customizable variables:

  • zd-title-prefix
  • zd-title-suffix (previously zd-string-after-title, make sure to update your configuration)

This means that the function zd-file-rename should now also work for the customized title prefixes.

@mediapathic could you test this out? Make sure to first set zd-title-prefix to "# ", and then try to use zd-file-rename.

from zetteldeft.

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.