Giter Club home page Giter Club logo

Comments (9)

Vinzent03 avatar Vinzent03 commented on July 21, 2024 1

Great to hear that the problem does not exist anymore. But you are right, these duplicate files cannot be the reason.

from obsidian-sort-and-permute-lines.

Vinzent03 avatar Vinzent03 commented on July 21, 2024

Are you on the latest version? If so can you explain what is happening exactly? Does it nothing?

from obsidian-sort-and-permute-lines.

janpeeters70 avatar janpeeters70 commented on July 21, 2024

Hi @Vinzent03, yes I'm on the latest version. What's happening is that I create a list of wikilinks, select them and chose the Sort Aphabetically option from the command window. It does do something just not sort it in the right order.
I have included a video in which you can see the behavior.
At the end I undo and redo the sorting so that you can see what changed.

Screencapture.2021-04-16.at.09.23.46.mp4

from obsidian-sort-and-permute-lines.

Vinzent03 avatar Vinzent03 commented on July 21, 2024

I am really confused. I cannot reproduce it with the same text. (Windows and Linux, although I don't know why the OS should make a difference). In my case it sort correctly from

[[So that its a real list]]
[[This is another note]]
[[More notes]]
[[Almost a list now]]
[[Better type on more]]
[[A note]]

to

[[Almost a list now]]
[[A note]]
[[Better type on more]]
[[More notes]]
[[So that its a real list]]
[[This is another note]]

The only thing I think of is to remove white spaces before sorting. But I don't know why in your case Bettter...comes after More... . Are there any error in the console?(ctrl + shift + i)

from obsidian-sort-and-permute-lines.

janpeeters70 avatar janpeeters70 commented on July 21, 2024

This is indeed really weird. There's no error in the console.
I've tried deactivating all community plugins and the California Coast theme but that didn't change a thing.

I've tried to remove the spaces but even then it doesn't sort the lines right. It's not that it doesn't work at all some lines look they're being sorted just one or two are out of order. I've tried to sort on line length, but it also doesn't work.

When I remove the wikilink characters [[ the alphabetical sorting works just fine. But the sorting on line length doesn't.

So I don't know what makes it not work.

from obsidian-sort-and-permute-lines.

Vinzent03 avatar Vinzent03 commented on July 21, 2024

I have not idea what's the problem. Everything is working fine for me. Which OS are you on? Are you so interested in fixing this, that you would try an extra version with a lot of logging?

from obsidian-sort-and-permute-lines.

janpeeters70 avatar janpeeters70 commented on July 21, 2024

I'm on macOS 11.2.3.
I would be interested to get this fixed so also to run a test version with lots of logging.
Let me know when you have something. This weekend I'm poorly available but from next Monday I can test.

from obsidian-sort-and-permute-lines.

Vinzent03 avatar Vinzent03 commented on July 21, 2024

Sorry for the late answer. I was very busy with Obsidian-git. Please replace your <vault>/.obsidian/plugins/obsidian-sort-and-permute-lines/main.js with the main.js from the attached zip. Sorry for zip, GitHub doesn't allow .js files. Then restart Obsidian and send me your logs. Thanks.
main.zip

from obsidian-sort-and-permute-lines.

janpeeters70 avatar janpeeters70 commented on July 21, 2024

Hi @Vinzent03, no problem. I was also busy.

I just downloaded your zip and wanted to install it. When I opened your plugin folder I found duplicates of all files with a ' 2' after the filename.
I'm not sure what made the duplicates, maybe the beta Obsidian iOS client that I'm testing.
After removing these files everything worked like it should.

To be honest it might as well be something else that fixed it, because I wouldn't know how these duplicates would influence the behavior of the plugin.

So it's fixed. Sorry that you had to put time in supporting me with this.

I'm going to have a look at getting Obsidian Git to work now. I seem to have been using an old authentication method when setting up my git and it stopped synching :-(
Thanks for developing these plugins! Really appreciated.

from obsidian-sort-and-permute-lines.

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.