joshuakto / fit

File gIT (FIT) to sync your files across mobile and desktop devices using GitHub.
https://obsidian.md/plugins?id=fit
MIT License
34 stars 7 forks source link

Bug: Can't set repository name. #11

Open metruzanca opened 3 months ago

metruzanca commented 3 months ago

I have 122 (public + private) repos, but the api call only seems to show 50 or so. It would be nice to be able to enter the name of the repository as an option. On mobile I had to install a text editor so that I could update the "repo":"" key in the data.json.

github-actions[bot] commented 1 month ago

Stale issue message

ciriousjoker commented 1 month ago

Same issue here, I only see a couple of repositories. Setting a name that is alphabetically "early", ie a_my_obsidian_vault or whatever shows it in the list correctly, but I'd like to not have that limitation.

ciriousjoker commented 1 month ago

https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28

This seems to only send the first page by default. One solution would be to increase the page count and concat the pages client side, but the better solution is definitely to add a new text field to enter the name directly.

ciriousjoker commented 1 month ago

Somewhat of a workaround:

  1. Rename to "a_yourname"
  2. Do the setup in fit (repo now shows up first)
  3. Rename back (Github seems to keep old names indefinitely and redirect them to the current name)
metruzanca commented 1 month ago

(Github seems to keep old names indefinitely and redirect them to the current name)

Yeah github does this to prevent breaking every contributors remote url, which is nice. It'll work so long as you don't make a new repo with the same name I thini.

joshuakto commented 2 weeks ago

thanks @anpigon for making the PR, the feature for showing more repos utilizing pagination is now in the pre-release version of the plugin, you can find the pre-release version here. To install the pre-release version, you need to download the following files

  1. main.js
  2. manifest.json
  3. styles.css , put them in the plugin's folder (.obsidian/plugins/fit) and then reload obsidian for the new script to be loaded

It'd be great if someone could reply in this thread after testing the pre-release (including your device type)

MinSomai commented 2 weeks ago

LGTM. tested in mac m2.