fit icon indicating copy to clipboard operation
fit copied to clipboard

Bug: Can't set repository name.

Open metruzanca opened this issue 1 year ago • 7 comments

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.

metruzanca avatar Apr 06 '24 21:04 metruzanca

Stale issue message

github-actions[bot] avatar Jun 06 '24 01:06 github-actions[bot]

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 avatar Jun 06 '24 22:06 ciriousjoker

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 avatar Jun 06 '24 22:06 ciriousjoker

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)

ciriousjoker avatar Jun 06 '24 22:06 ciriousjoker

(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.

metruzanca avatar Jun 06 '24 22:06 metruzanca

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)

joshuakto avatar Jun 22 '24 09:06 joshuakto

LGTM. tested in mac m2.

MinSomai avatar Jun 26 '24 03:06 MinSomai

Stale issue message

github-actions[bot] avatar Aug 26 '24 01:08 github-actions[bot]