Giter VIP home page Giter VIP logo

flow.plugin.github's People

Contributors

jjw24 avatar johnthegr8 avatar taooceros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flow.plugin.github's Issues

Flow launcher crash :(

Flow Launcher version: 1.11.0
OS Version: Microsoft Windows NT 10.0.19045.0
IntPtr Length: 8
x64: True

Python Path:
Node Path:
Date: 01/25/2023 23:14:42
Exception:
GitHub Exception:
Websites: https://github.com/JohnTheGr8/Flow.Plugin.Github
Author: Ioannis G. (@JohnTheGr8)
Version: 1.2.2
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Object reference not set to an instance of an object.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at <StartupCode$Flow-Plugin-Github>.$[email protected](IEnumerable1& next) in C:\projects\flow-plugin-github\src\GithubPlugin.fs:line 0 at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase1.MoveNextImpl() in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seqcore.fs:line 371
at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase1.System-Collections-IEnumerator-MoveNext() in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seqcore.fs:line 403 at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable1 source)
at <StartupCode$Flow-Plugin-Github>.$GithubPlugin.func2@1(GithubPlugin this, FSharpChoice2 _arg4) in C:\projects\flow-plugin-github\src\unknown:line 134 at <StartupCode$Flow-Plugin-Github>[email protected](FSharpAsync1 x) in C:\projects\flow-plugin-github\src\GithubPlugin.fs:line 131
at Flow.Plugin.Github.GithubPlugin.Flow.Launcher.Plugin.IPlugin.Query(Query query) in C:\projects\flow-plugin-github\src\GithubPlugin.fs:line 148
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<<QueryForPluginAsync>b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191 --- End of stack trace from previous location --- at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 821
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 822
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Fuzzy match repository name when user is specified

Firstly, really love the perf improvements in v1.3.0.

I'd love to see a fuzzy-search implemented if you have already specified the user to search under, ie to narrow the results to a subset/a selected repo, without needing to type the name out in full.

Take the following example:

I am listing all repositories under my account, gh jamesnzl/.
image

I want to quickly open the JamesNZL/jamesnzl repository.

I start typing gh jamesnzl/jam, but this search fails until I fully match the repository name.
image

image

Can't open PR - Object reference not set to an instance of an object.

Error window pops up with these messages, steps to reproduce:

  • gh repos
  • select PR menu item
Flow Launcher version: 1.11.0
OS Version: Microsoft Windows NT 10.0.22000.0
IntPtr Length: 8
x64: True

Python Path: C:\Users\OMG\AppData\Local\Programs\Python\Python311\pythonw.exe
Node Path: C:\Program Files\nodejs\node.exe
Date: 01/05/2023 22:41:25
Exception:
GitHub Exception: 
Websites: https://github.com/JohnTheGr8/Flow.Plugin.Github
Author: Ioannis G. (@JohnTheGr8)
Version: 1.2.2
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Object reference not set to an instance of an object.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at <StartupCode$Flow-Plugin-Github>[email protected](IEnumerable`1& next) in C:\projects\flow-plugin-github\src\GithubPlugin.fs:line 0
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl() in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seqcore.fs:line 371
   at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
   at <StartupCode$Flow-Plugin-Github>.$GithubPlugin.func2@1(GithubPlugin this, FSharpChoice`2 _arg4) in C:\projects\flow-plugin-github\src\unknown:line 134
   at <StartupCode$Flow-Plugin-Github>[email protected](FSharpAsync`1 x) in C:\projects\flow-plugin-github\src\GithubPlugin.fs:line 131
   at Flow.Plugin.Github.GithubPlugin.Flow.Launcher.Plugin.IPlugin.Query(Query query) in C:\projects\flow-plugin-github\src\GithubPlugin.fs:line 148
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<<QueryForPluginAsync>b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191
--- End of stack trace from previous location ---
   at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
   at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
   --- End of inner exception stack trace ---
   at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
   at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<<QueryResults>g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 821
--- End of stack trace from previous location ---
   at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 822
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Private repositories

Hi, thanks for writing the extension!

Does the search work on private repositories in an organization? This doesn't work for me and I want to double check.

Faster search for 'my' repositories

I'd love the ability to quicky search for 'my' own repositories (ie those of a 'default user').

You could take some inspiration from @Garulf/Github-Quick-Launcher:

  1. If an access token is provided, using that as the default user.
  2. Otherwise, add a plugin setting to specify the username:
    image

Then, to search under the default user, perhaps either:

  1. gh /repo-name (ie with no username before the /)
  2. gh repo-name with a new result to Search repositories under default user

Just some ideas, cheers for the plugin!

failed

using your plugin get fail

image
image

How can i fix it?

Can't Open Repository

Clicking enter on a search result for a private repo auto-fills the name in the search bar, but then says "Search failed: Value was either too large or too small for an Int32."

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.