File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { fileURLToPath } from 'node:url' ;
22import path from 'node:path' ;
3+ import clipboard from 'clipboardy' ;
34
45// ┌ ┐
56// │ Paths │
@@ -23,3 +24,14 @@ export const metaEndTerm = '**/';
2324// └ ┘
2425
2526export const MAIN_FUNCTION_EXEC = 'main(this)' ;
27+
28+ // ┌ ┐
29+ // │ Notifications │
30+ // └ ┘
31+
32+ export const NOTIFY = {
33+ clipboard : {
34+ title : 'Clipboard value change' ,
35+ subtitle : 'You have a new value in your clipboard'
36+ }
37+ } ;
Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ import fs from 'node:fs';
22import path from 'node:path' ;
33import type { Metas } from './types.js' ;
44import { Script , type ScriptArguments } from './models/Script.js' ;
5- import { defaultScriptPath , metaEndTerm , metaStartTerm } from './const.js' ;
5+ import {
6+ defaultScriptPath ,
7+ metaEndTerm ,
8+ metaStartTerm ,
9+ NOTIFY
10+ } from './const.js' ;
611import { matchesMetas , stringRange } from './utils/utils.js' ;
712import { ScriptExecution } from './models/ScriptExecution.js' ;
813import { Clipboard } from './utils/clipboard.js' ;
@@ -100,7 +105,8 @@ export class ScriptManager {
100105
101106 //TODO: Possibly change location in futur
102107 // Notify User from change
103- FlowLauncher . showMessage ( 'test' ) ;
108+ const { title, subtitle } = NOTIFY . clipboard ;
109+ FlowLauncher . showMessage ( title , subtitle ) ;
104110 }
105111 }
106112}
You can’t perform that action at this time.
0 commit comments