Code Monkey home page Code Monkey logo

Comments (5)

takaxp avatar takaxp commented on June 11, 2024 1

Could you try to set org-tree-slide-cursor-init equal to nil? The user variable can control the cursor position when starting of your slideshow, yes, automatically move it to the first heading when the variable is t. So, after setting it to nil, move the cursor on the heading of Regular expressions as you kindly provided. And just activate org-tree-slide-mode. The presentation will start from the heading, not from the beginning of the file.

from org-tree-slide.

rdrg109 avatar rdrg109 commented on June 11, 2024

@takaxp Thanks for the quick reply. I didn't know that org-tree-slide-cursor-init could be used to set that behavior.

Before posting this issue, I read the docstring of all defcustom variables in org-tree-slide.el, but it wasn't clear to me that org-tree-slide-cursor-init could set that behavior. The first line of the docstring mentions exit slideshow, but it doesn't mention that it sets the starting slide.

(defcustom org-tree-slide-cursor-init t
"Specify a cursor position when exit slideshow.
Non-nil: the cursor will move automatically to the head of buffer.
nil: keep the same position."
:type 'boolean
:group 'org-tree-slide)

I'd suggest that the docstring explicitly mentions that it also sets the starting slide. The first line in the docstring in the code block below is my suggestion.

(defcustom org-tree-slide-cursor-init t
  "Specify a cursor position at start and exit of the slideshow.
Non-nil: the cursor will move automatically to the head of buffer.
nil: keep the same position."
  :type 'boolean
  :group 'org-tree-slide)

from org-tree-slide.

takaxp avatar takaxp commented on June 11, 2024

@rdrg109 Thank you for reading the docstrings. The variable was introduced at very early stage of development, and as you pointed the description is not good and also not reflect the actual function. I agree with your comment then it will be updated in the next update of this package. Thanks!

from org-tree-slide.

rdrg109 avatar rdrg109 commented on June 11, 2024

@takaxp Thanks for considering users' feedback for improving this project!

from org-tree-slide.

takaxp avatar takaxp commented on June 11, 2024

@rdrg109 Yeah, thank you for providing me an opportunity to improve this project :)

from org-tree-slide.

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.