Code Monkey home page Code Monkey logo

Comments (5)

davisriedel avatar davisriedel commented on September 21, 2024 3

I created a new plugin based on this one, which has many new features. I also fixed this issue. You can check it out here. The plugin is currently in beta. At first I wanted to post a PR to this plugin, but because I had to completely rewrite most parts (to make the new features possible), I decided to turn it into a new plugin, as discussed in #44.

from cm-typewriter-scroll-obsidian.

drventure avatar drventure commented on September 21, 2024 1

Was going to add a feature request but looks like it's already here.

Basically, what I'd suggest is 2 new options.

  1. enable/disable scrolling to center at the top
  2. enable/disable scrolling to center at the bottom

Essentially, if enabled, it would continue to work as you have it.
if disabled, once the cursor got to within (height/2) lines from the top, scrolling would stop and the cursor would simply move up to the topline without all the extra space.

Same thing at the bottom.

And of course, if the note wasn't even a full screen of lines, then no scrolling at all.

from cm-typewriter-scroll-obsidian.

yarub123 avatar yarub123 commented on September 21, 2024

Same issue here:
image

from cm-typewriter-scroll-obsidian.

yarub123 avatar yarub123 commented on September 21, 2024

@davisriedel Awesome. Sorry to hear you had to rewrite it all man 😬. Nonetheless, it is a learning experience and you gained new workarounds now. Thanks for updating us. This is a beautiful plugin. Appreciate you.

Btw, curious if anyone still has the extra gap still at the top with the beta plugin?

I still have it unfortunately. Not a big deal though, I ended up disabling it for now.

from cm-typewriter-scroll-obsidian.

meljadyn avatar meljadyn commented on September 21, 2024

@yarub123 It works for me. I just had to change the setting inside the plugin to enable "Only Maintain Typewriter Offset When Reaches."

I also restarted Obsidian because it didn't immediately take effect for me (though that may be because I hadn't restarted since removing the previous typewriter scroll plugin)

Really appreciate this new plugin by davisriedel, it was my biggest gripe with the typewriter scroll plugin!

from cm-typewriter-scroll-obsidian.

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.