jibedoubleve / lanceur-bis Goto Github PK
View Code? Open in Web Editor NEWA free adaptation of Slickrun written in .NET
License: GNU General Public License v3.0
A free adaptation of Slickrun written in .NET
License: GNU General Public License v3.0
A pomodoro that notify user on a regular basis
Command | Explanation |
---|---|
pomodoro start |
Starts the pomodoro with the configured values or default |
pomodoro for 4 hours |
Starts the pomodoro for 4 hours |
pomodoro stop |
Stops the pomodoro |
pomodoro set 30 15 40 |
Set values for (in that order) Work, Pause, Big Pause |
main
to develop
master
develop
master
main_pr
Quand MainView
passe en arrière plan puis en avant plan, le texte reste dans la fenêtre. Il faut que la fenetre disparaisse quand elle passe en arrière plan
When launching alias, we launch process. I should handle error.
Flow.Launcher does it like this:
protected async Task<Stream> ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token = default)
{
using var process = Process.Start(startInfo);
if (process == null)
{
Log.Error("|JsonRPCPlugin.ExecuteAsync|Can't start new process");
return Stream.Null;
}
var sourceBuffer = BufferManager.GetStream();
using var errorBuffer = BufferManager.GetStream();
var sourceCopyTask = process.StandardOutput.BaseStream.CopyToAsync(sourceBuffer, token);
var errorCopyTask = process.StandardError.BaseStream.CopyToAsync(errorBuffer, token);
await using var registeredEvent = token.Register(() =>
{
if (!process.HasExited)
process.Kill();
sourceBuffer.Dispose();
});
try
{
// token expire won't instantly trigger the exception,
// manually kill process at before
await process.WaitForExitAsync(token);
await Task.WhenAll(sourceCopyTask, errorCopyTask);
}
catch (OperationCanceledException)
{
await sourceBuffer.DisposeAsync();
return Stream.Null;
}
switch (sourceBuffer.Length, errorBuffer.Length)
{
case (0, 0):
const string errorMessage = "Empty JSON-RPC Response.";
Log.Warn($"|{nameof(JsonRPCPlugin)}.{nameof(ExecuteAsync)}|{errorMessage}");
break;
case (_, not 0):
throw new InvalidDataException(Encoding.UTF8.GetString(errorBuffer.ToArray())); // The process has exited with an error message
}
sourceBuffer.Seek(0, SeekOrigin.Begin);
return sourceBuffer;
}
FlowLauncher is using RecyclableMemoryStream
Sometimes when I type ? some criteria
, the alias ?
is not recognised.
They are issues with the assets
This model contains a behaviour that should be removed. This code is maybe even not used
Look to ExecutionService
that maybe should be removed as well from the model.
lanceur-bis/src/Lanceur.Core/Models/AliasQueryResult.cs
Lines 84 to 89 in 5ec7b30
Plugins lacks documentation. Documents how it works
Faire un ADD
ne prérempli pas les champs
??
est considéré comme ?
avec '?' comme paramètre.
When loading settings and select the shortcuts list, it's not loaded the first time?
Les alias
doivent être trié par ordre alphabétique et par utilisation
Line 158 in 97c17f3
The delegates are never unsubscribed, it is a potential memory leak.
lanceur-bis/src/Lanceur/Views/MainView.xaml.cs
Lines 53 to 58 in 5ec7b30
Dans MainViewModel.OnExecuteAliasAsync
ne passer que les paramètres utilisateur et plus la Commandline
Create a repository where user can find & download plugins
lanceur-bis/src/Lanceur/Views/MainViewModel.cs
Lines 190 to 194 in 2b40327
lanceur-bis/src/Lanceur.Infra/Managers/CmdlineManager.cs
Lines 28 to 36 in 5ec7b30
We have an extension method and an interface to do the same thing. Maybe it is possible te remove the interface or the mixing class
These two tests should be deactivated as the success depends on the state of the machine. In other words, Microsoft To Do version 2.85.53361.0 should be installed. And as soon as this version is updated, these tests will start to fail.
lanceur-bis/src/Lanceur.Tests/Functional/PackagedAppManagerShould.cs
Lines 11 to 30 in c498d3c
With a keyword, some lorem ipsum is set in the clipboard.
Examples:
Command | Explanations |
---|---|
lorem |
Put for instance 150 words in the clipboard |
lorem 255 |
Put 255 words in the clipboard |
There's a free API HERE
private async Task<Unit> OnSaveOrUpdateAlias(AliasQueryResult alias)
. The idea is to create an UpdateAction
Some logs are incomplete
Executing 'C:\Program Files (x86)\Log Reader\Probel.LogReader.exe' with args ''
Current QueryResult is null
. Should indicate the query textThis code can maybe be reordered as followed
lanceur-bis/src/Lanceur/Views/MainViewModel.cs
Lines 179 to 221 in 5ec7b30
flowchart TD
id1(Build cmdline from user query)
id2{{Has cmdline parameters?}}
id3(Replace params with user params)
id4{{Is CurrentAlias null}}
id5(Nothing to execute)
id6{{Is Executable}}
id7(Execute it)
id8(Display results)
id4 -->|yes| id5
id4 -->|no| id6
id6 -->|yes| id1
id1 --> id2
id2 -->|no| id3
id3 --> id7
id2 -->|yes| id7
id6 -->|no| id8
id7 --> id8
Failed to extract thumbnail for C:\Users\jibedoubleve\AppData\Local\Programs\signal-desktop\Signal.exe
System.Runtime.InteropServices.COMException (0x80004005): Error while extracting thumbnail for C:\Users\jibedoubleve\AppData\Local\Programs\signal-desktop\Signal.exe
---> System.Runtime.InteropServices.COMException (0x8000000A): The data necessary to complete this operation is not yet available. (0x8000000A)
at Lanceur.Ui.WindowsThumbnailProvider.GetHBitmap(String fileName, Int32 width, Int32 height, ThumbnailOptions options) in D:\Projects\lanceur-bis\src\Lanceur\Ui\WindowsThumbnailProvider.cs:line 134
at Lanceur.Ui.WindowsThumbnailProvider.GetThumbnail(String fileName, Int32 width, Int32 height, ThumbnailOptions options) in D:\Projects\lanceur-bis\src\Lanceur\Ui\WindowsThumbnailProvider.cs:line 150
at Lanceur.Ui.ThumbnailLoader.GetThumbnail(String path, ThumbnailOptions options) in D:\Projects\lanceur-bis\src\Lanceur\Ui\ThumbnailLoader.cs:line 47
at Lanceur.Ui.ThumbnailLoader.Get(String path) in D:\Projects\lanceur-bis\src\Lanceur\Ui\ThumbnailLoader.cs:line 85
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.