Coder Social home page Coder Social logo

obsidian-cursor-location-plugin's People

Contributors

bb010g avatar spslater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

obsidian-cursor-location-plugin's Issues

Show the percent of the current line number to the total line number

Support Location Percent Display

I think compared to the rigid total line number, people usually are more concerned about the logical location in the whole article.

Additional Improvement

  1. Add more user-friendly settings:
  • Use the preamble indicator when the cursor inside the frontmatter of a markdown file.
  • Use the top or bottom when the cursor is located on the front part or bottom part of an article.
  1. Allow users to use the formatted string style in the setting.
  • I.e. use the placeholder to customize result.

Finally, thank you for your great jobs in creating such plugin. I love it!

Left-Padding or / fixed width for statusbar item

Only a minor visual thing, but when moving from line 9 to 10 (or line 99 to 100), the statusbar item changes its width, and consequently pushes all other statusbar items to the left, which looks a bit glitchy. Same thing for the column number

Could the plugin maybe add some padding to the left, to prevent this behavior?

Freeze on tab close/switch

Closing a tab or switching between open tabs freezes the editor while this plugin is enabled. I tried looking at the console, but there's no useful output regarding the issue (to my non-web dev eyes).

Repro is simple - install, enable, and try closing an open tab or switching to another one.

Allow for display of "lines selected"

When highlighting, showing the amount of selected lines would be very useful to quickly count tasks/ToDo's (since usually one line is used per task).

Update values when active window is changed

Unfortunately, the values don't change when changing active window. See screenshots:

1: Highlighting 3 lines on the left -> the count is correct
2: Highlighting 5 lines on the right -> the count is correct
3: Switching back to the left window -> the count is wrong, still displaying previous result. The "word" and "character" count are displayed correctly

Screenshots:

1:
2021 09 12, 15 25 28 Window

2:
2021 09 12, 15 25 35 Window

3:
2021 09 12, 15 25 42 Window

Custom Pattern for Display

Allow for custom patterns on how to display character / line number. For example, instead of ch:line/total have ch - line (total).

Do not Show Cursor location when in empty note

Minor issue similar to #9 โ€“ I noticed that when I close the last pane and that pane was in edit mode, the status bar still shows a cursor location โ€“ even though an empty pane obviously does not have any sort cursor location.

(In case it helps to resolve this quickly, the Better Word Count Plugin changes the statusbar item when the pane is empty, so the code for this should be there. :) )

Advanced Settings

Clean up the settings options, giving better defaults and some advanced options (that are hidden by default)

Bug: Not working in New Editor (CM6)

With the new editor (CM6) used by Obsidian 0.13+, the plugin does not seem to work anymore. Multiple cursors are not recognized, and the cursor position is only determined when loading the note, but not when the note changes.

Ability to capture the current line number value

Love this plug-in! Would be great to be able to use this plug-in to capture the current line number. perhaps being able to assign a hotkey and copy to clipboard or being able to paste the line number value in the 'go to line' function text box.

I use voice recognition to write my notes I need the current line number value to tell my program which lines to manipulate.

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.