spslater / obsidian-cursor-location-plugin Goto Github PK
View Code? Open in Web Editor NEWDisplay the cursors line and column in Obsidian
License: MIT License
Display the cursors line and column in Obsidian
License: MIT License
I think compared to the rigid total line number, people usually are more concerned about the logical location in the whole article.
preamble
indicator when the cursor inside the frontmatter of a markdown file.top
or bottom
when the cursor is located on the front part or bottom part of an article.Finally, thank you for your great jobs in creating such plugin. I love it!
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?
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.
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).
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:
Allow for custom patterns on how to display character / line number. For example, instead of ch:line/total
have ch - line (total)
.
as it does not make sense there anyway.
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. :) )
https://github.com/spslater/obsidian-cursor-location-plugin/releases/tag/0.3.0 only contains https://github.com/spslater/obsidian-cursor-location-plugin/releases/download/0.3.0/manifest.json and https://github.com/spslater/obsidian-cursor-location-plugin/releases/download/0.3.0/versions.json assets, preventing installing & enabling the plugin from both Community Plugins and BRAT.
Clean up the settings options, giving better defaults and some advanced options (that are hidden by default)
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.