Re: [tw5] Re: Plugin prototype: Command Palette

2020-08-02 Thread E Browns
Aww thanks so much for the help! I'll try this (after numerous backups just
in case I mess it up haha)

On Mon, Aug 3, 2020, 06:56 Souk21,  wrote:

> Sorry I must be tired today, I meant
>
> on line 466 of *commandpalettewidget.js*, before this line
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/09Ful62YG1g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/6d965bcd-9f66-4412-8453-f6b6d220984do%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAOAd_aXHmdGbv_shkf%2BCoNrUaHZ1ResScGizS2%2BCOm2XAgwQfg%40mail.gmail.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-08-02 Thread Souk21
Sorry I must be tired today, I meant 

on line 466 of *commandpalettewidget.js*, before this line

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6d965bcd-9f66-4412-8453-f6b6d220984do%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-08-02 Thread Souk21

>
> I thought i had my t's and l's mixed up until I scanned the JS code! Hehe! 
>
 
So sorry! I guess that's what you get for coding on a sunday morning haha
I edited the post as well as the github release. Thanks a lot for the report

I don't really have time to update it (or even try it) right now, but I 
think you can put

this.wiki.setText("$:/temp/command-palette-input","text",undefined
,this.input.value);

on line 466 of, before this line

if (this.blockProviderChange) { //prevent provider changes

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/338b9a71-bb15-4c43-b4d4-f714c3819db0o%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-08-02 Thread E Browns
That is very wild to me! Hehe! I don't even know where to insert that bit
of code in the js tiddler... It'll be the first time I'll edit anything
javascript if I do! Soo.. I'm very sorry for my current ignorance, but
where exactly should I insert it into (while we wait for Souk's update)?

Thank you so much Saq!

On Mon, Aug 3, 2020, 04:34 Saq Imtiaz,  wrote:

>
>> Sorry for bothering again but I want to share a sample scenario where
>> It'll help if the input box writes to (for example)
>> *$:/temp/command-palette-input* instead of a variable available only
>> within CP (like how sidebar search manipulates *$:/temp/search*).
>>
>
> For the rewrite I would recommend that CP use an edit-text widget for the
> input, which would make it easy to store the input in a temp tiddler.
>
> For now, adding something like this to the onInput function will save the
> value of the input to a temp tiddler whenever it is changed:
>
> this.wiki.setText("$:/temp/command-palette-input","text",undefined,text);
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/09Ful62YG1g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/84626e4c-80e8-420c-94a1-7afb928e2ceco%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAOAd_aV57kaHzYPDBSVLoiWZWoTp2n3DG_5xMzogQxNSx03YHQ%40mail.gmail.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-08-02 Thread E Browns
Hi! So far into testing I found the variable is

<>

And not

<>

I thought i had my t's and l's mixed up until I scanned the JS code! Hehe!

-jd


On Sun, Aug 2, 2020, 20:47 Souk21,  wrote:

> New version 0.0.6 ! 
> Changelog:
>
>- [BREAKING CHANGE] Renamed field 'cp-hint' to 'command-palette-hint'
>for consistency
>- New shortcut commands for customization. Allow to call an action
>string from the command palette with any prefix of your choice. Choose a
>'trigger' prefix that will override any other commands (even builtins like
>+ or @). The input (minus the prefix) is then set as a variable
><> for optional use in your action string (see
>example at the bottom)
>- actionString commands can now ask for user input. Set
>'command-palette-user-input' field to 'true'. The input is then set as a
>variable <> for use in your action string. (see
>example at the bottom)
>
>
> @Diego Mesa: While I would like to do a rewrite and there are still some
> features I'd like to add, nobody complained about losing data yet.
> Another point that might change is the name, as some people think it's
> misleading in relation to TW's color palettes
> So I would say it should be safe to use, but is probably gonna evolve a
> bit before reaching 1.0 :)
> About core/plugins, I've never looked into the process, so I'm not sure.
> Thank you !
>
>
> @TW Tones: Thanks for the kind words!
> EditorMagic looks like a really nice addition!
> If I understand correctly, it would be some kind of autocompletion engine?
> It would indeed be nice for CP to be able to interact with it.
> It should be fairly easy when the data is available.
>
>
> @JD: Thanks a lot :)
>
> how do I access the text of the CommandPalette input box and have it
>> available to an actionString - type custom command?
>>
> It was not possible before, thanks to you, it now is :)
> You only have to add the field 'command-palette-user-input' to any
> actionString command and set it to true
> The command palette will ask for user input before invoking the
> actionString (with your hint if it's set)
> You can then access the input value with <> inside
> of your macro
>
> I tried looking at recently-modified tiddlers to see which one
>> CommandPalette modifies, but there's none!
>>
> Woops. I'm a bit ashamed, but for now CP does not use state tiddlers.
> Instead the state is stored in the DOM. I know it's not really in line with
> TW philosophy, but it's way easier for me to develop it like that. I'll
> definitely try to do it at some point.
>
> command-palette-hint contains the text of the hint informing the user of
>> what the command does (for example)
>>
> I reworked the hint system and it is now available to every command (where
> it makes sense)
>
> command-palette-popup-key can contain a key which, when inputted, will
>> reveal the submenu, in context of the current custom command
>>
> For preferences on how the text string will be parsed, I wish to access a
>> preferences  page... So maybe by inputting "|" the submenu will open and
>> allow me to configure things
>>
> That's something I'd like to do in a next version, I'm still not sure
> exactly how, but I'll think about it !
>
> BTW, you can also create tiddlers with tags : '+title @tag @tag2'
>
> Let me know if those changes work for you!
> Thanks for the support :)
>
>
> @Saq Imtiaz Thanks a lot! I didn't know. That probably saved me quite a
> lot of time, and the solution is more elegant :) It's really nice of you,
> thanks again!
>
>
>
> EXAMPLES:
> Shortcut:
> command-palette-type: shortcut
> command-palette-trigger: =
> command-palette-hint: New Tiddler with name
> tags: $:/tags/CommandPaletteCommand
> title: $:/New Tiddler
> type: text/vnd.tiddlywiki
>
> <$action-sendmessage $message="tm-new-tiddler" title=< input>>/>
>
>
>
>
> actionString with user input:
> command-palette-type: actionString
> command-palette-name: New Tiddler with name
> command-palette-hint: Enter the name
> command-palette-user-input: true
> tags: $:/tags/CommandPaletteCommand
> title: $:/New Tiddler
> type: text/vnd.tiddlywiki
>
> <$action-sendmessage $message="tm-new-tiddler" title=< input>>/>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/09Ful62YG1g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/d7f5c349-a4db-422d-a591-619f27cedfb2o%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group 

Re: [tw5] Re: Plugin prototype: Command Palette

2020-08-02 Thread E Browns
Amazing update! Thank you so much!

What I'm trying to accomplish is the creation of a tiddler with fields and
text signified by symbols within the input, and have that
save-then-nothing, or save-then-edit, or save-then-navigate. I have those
macros ready to feed into CP ^^,

Default CP action for tiddler creation can allow me only title and tags,
but that's completely fine because I believe a universal tool like CP
shouldn't already contain the very specific things I need, when I can just
use its custom command toolset! And that's what makes it all the more
amazing, I think.

That's the same sort of awesome that I also apply to Tiddlywiki ^^, the
ability to make /use/ of it endlessly customizable. Thanks again! Will test
now!

-jd



On Sun, Aug 2, 2020, 20:47 Souk21,  wrote:

> New version 0.0.6 ! 
> Changelog:
>
>- [BREAKING CHANGE] Renamed field 'cp-hint' to 'command-palette-hint'
>for consistency
>- New shortcut commands for customization. Allow to call an action
>string from the command palette with any prefix of your choice. Choose a
>'trigger' prefix that will override any other commands (even builtins like
>+ or @). The input (minus the prefix) is then set as a variable
><> for optional use in your action string (see
>example at the bottom)
>- actionString commands can now ask for user input. Set
>'command-palette-user-input' field to 'true'. The input is then set as a
>variable <> for use in your action string. (see
>example at the bottom)
>
>
> @Diego Mesa: While I would like to do a rewrite and there are still some
> features I'd like to add, nobody complained about losing data yet.
> Another point that might change is the name, as some people think it's
> misleading in relation to TW's color palettes
> So I would say it should be safe to use, but is probably gonna evolve a
> bit before reaching 1.0 :)
> About core/plugins, I've never looked into the process, so I'm not sure.
> Thank you !
>
>
> @TW Tones: Thanks for the kind words!
> EditorMagic looks like a really nice addition!
> If I understand correctly, it would be some kind of autocompletion engine?
> It would indeed be nice for CP to be able to interact with it.
> It should be fairly easy when the data is available.
>
>
> @JD: Thanks a lot :)
>
> how do I access the text of the CommandPalette input box and have it
>> available to an actionString - type custom command?
>>
> It was not possible before, thanks to you, it now is :)
> You only have to add the field 'command-palette-user-input' to any
> actionString command and set it to true
> The command palette will ask for user input before invoking the
> actionString (with your hint if it's set)
> You can then access the input value with <> inside
> of your macro
>
> I tried looking at recently-modified tiddlers to see which one
>> CommandPalette modifies, but there's none!
>>
> Woops. I'm a bit ashamed, but for now CP does not use state tiddlers.
> Instead the state is stored in the DOM. I know it's not really in line with
> TW philosophy, but it's way easier for me to develop it like that. I'll
> definitely try to do it at some point.
>
> command-palette-hint contains the text of the hint informing the user of
>> what the command does (for example)
>>
> I reworked the hint system and it is now available to every command (where
> it makes sense)
>
> command-palette-popup-key can contain a key which, when inputted, will
>> reveal the submenu, in context of the current custom command
>>
> For preferences on how the text string will be parsed, I wish to access a
>> preferences  page... So maybe by inputting "|" the submenu will open and
>> allow me to configure things
>>
> That's something I'd like to do in a next version, I'm still not sure
> exactly how, but I'll think about it !
>
> BTW, you can also create tiddlers with tags : '+title @tag @tag2'
>
> Let me know if those changes work for you!
> Thanks for the support :)
>
>
> @Saq Imtiaz Thanks a lot! I didn't know. That probably saved me quite a
> lot of time, and the solution is more elegant :) It's really nice of you,
> thanks again!
>
>
>
> EXAMPLES:
> Shortcut:
> command-palette-type: shortcut
> command-palette-trigger: =
> command-palette-hint: New Tiddler with name
> tags: $:/tags/CommandPaletteCommand
> title: $:/New Tiddler
> type: text/vnd.tiddlywiki
>
> <$action-sendmessage $message="tm-new-tiddler" title=< input>>/>
>
>
>
>
> actionString with user input:
> command-palette-type: actionString
> command-palette-name: New Tiddler with name
> command-palette-hint: Enter the name
> command-palette-user-input: true
> tags: $:/tags/CommandPaletteCommand
> title: $:/New Tiddler
> type: text/vnd.tiddlywiki
>
> <$action-sendmessage $message="tm-new-tiddler" title=< input>>/>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> 

Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-16 Thread TiddlyTweeter
I agree with Mohammad that "["  seems a bit "orphaned" ... BUT not sure 
whether list of filters should be "recent" or "*listed*" (for example those 
found under * Advanced Search > Filter *dropdown?).

Just a comment!
TT

Mohammad wrote:
>
>
> Small comments on ideas:
> - Filter operation history (with tiddler history? or when input is [ ?)
>   Why not to show filter history when just you type [ and narrow it while 
> typing in searchbox and when press enter show final result!  
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e761fdb9-9751-4e03-b20a-857f0f4be8d3o%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-14 Thread Mohammad Rahmani
Souk21,
 Many thanks for the new update! Command Palette is really wonderful and
very useful!

Small comments on ideas:
- Filter operation history (with tiddler history? or when input is [ ?)
  Why not to show filter history when just you type [ and narrow it while
typing in searchbox and when press enter show final result!


Repeated small recommendation
Keep it simple, and there may be ground for sub-plugins!






Best wishes
Mohammad


On Mon, Jun 15, 2020 at 4:57 AM Souk21  wrote:

> New version 0.0.3 is up! 
>
>
> *New:*
>
>- The palette now opens with you current text selection by default
>(this can be disabled with the setting 'Use selection as search query').
>There's also a new keyboard shortcut in the Control Panel that bypasses
>this setting and always open the palette with the selection. So you can use
>both the 'never-selection' and the 'always-selection' with a different
>shortcut if you like.
>- Pressing escape now goes back to previous state if possible (setting
>'Escape to go back')
>- New setting to show/hide the history on empty search ('Show history
>on open'), also added a 'Show history' command to still be able to access
>the history
>
>
> *Changes:*
>
>- Improved settings loading/parsing
>- Improved 'Welcome' tiddler on demo page to better reflect the
>different features
>- Changed 'Max hint size' setting name to 'Field preview max size'
>
> *Bugs:*
>
>- Fixed bug with tag search
>
>
> @Adam S. Thanks for the kind words, it means a lot! Sorry for the bug,
> it's fixed now :)
>
> @TiddlyTweeter I'm sorry I forgot to answer to your thoughts about
> security. But you're definitely right! It's as dangerous as any other
> plugin. Thanks for the input!
>
> @TiddlyTweeter @Adam S. I tried to make the 'Welcome' tiddler on the demo
> page more explicit about the different functions, I'd love to have your
> feedback on it !
>
> @SteWilson I'm sorry, I didn't get the time to work on mobile yet. I think
> I'm gonna wait for the plugin to be a bit more mature before considering
> adding mobile support
>
> @TW Tones Thanks for the feedback, I added your idea of a 'show history'
> setting for when you need to stay focus on what you're doing
> I also implemented the 'escape goes back' behavior. I tried to cover all
> cases, tell me if I missed some :)
> Opening with selection was a great idea as well. It composes well with
> existing keyboard shortcuts (ctrl+shift+p opens with '>yourSelection' as a
> command)
> It's gonna be easy to create a shortcut to open all tiddlers tagged with
> current selection for example (@yourSelection)
>
> I was looking for {{$:/HistoryList!!current-tiddler}} ! Thank you haha
> In that regard, I've indeed been quite conservative with how selecting a
> tiddler to act on works. Actually, it's the only place where the first
> result is not automatically selected.
> I did that to avoid a user double-pressing enter by mistake and doing
> something to the wrong tiddler.
> I do think the plugin needs a better way to handle acting on the current
> tiddler, and I like the idea of another shortcut.
> Keeping in mind it could be good to avoid having to many different
> keyboard shortcuts
> So yeah, definitely something important to tackle, but I'm not really sure
> in what form yet.
> Any feedback is greatly appreciated :)
>
> What if we could program keyboard shortcuts to the "command"  first
>> letters eg ctrl-. (Unsifted >) becomes = "ctrl=P >"
>>
> I'm not sure I understand. Do you mean having a keyboard shortcut to open
> the palette with a '@' for example?
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/c5eeefa7-ab4f-4402-a278-f64984837d6do%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMACniJk0svc9MC9N7Gdfk68vZxB5%2BbiAP76264cnOu2%3DA%40mail.gmail.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-11 Thread Diego Mesa
YE!!!

FINALLY!!!

I posted about this (in a dead thread) in january of 2018!!!

https://groups.google.com/d/msg/TiddlyWiki/yKrgs5ENAII/521K7N7BAAAJ

Thank you so much for this! 

On Thursday, June 11, 2020 at 10:21:10 AM UTC-5, TiddlyTweeter wrote:
>
> Souk21 wrote:
>
>> ... a command could potentially execute code on your computer, and 
>> definitely execute commands in your wiki.
>
>
> I very much doubt it could execute into the OS via single Wiki 
> maliciously, though it could trash your wiki.
>
> But that is NOT something to worry about overmuch. It is no more powerful 
> than normal tools in TW. Just more "compactly helpful".
>
> Its more, I think, about warning users to back-up---especially if they 
> into experimenting with defining new "actions"---because the tool is 
> powerful, much to its merit.
>
> Just a comment.
> TT
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f07351a1-c234-45d7-adf8-3ea2a7dd24cdo%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-11 Thread TiddlyTweeter
Souk21 wrote:

> ... a command could potentially execute code on your computer, and 
> definitely execute commands in your wiki.


I very much doubt it could execute into the OS via single Wiki maliciously, 
though it could trash your wiki.

But that is NOT something to worry about overmuch. It is no more powerful 
than normal tools in TW. Just more "compactly helpful".

Its more, I think, about warning users to back-up---especially if they into 
experimenting with defining new "actions"---because the tool is powerful, 
much to its merit.

Just a comment.
TT

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8a0b00fd-adb1-496a-8a61-f27b513a9426o%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-11 Thread Souk21
@TiddlyTweeter Yup I agree it can be confusing. I like 'Action Menu', 
thanks for your ideas :) 
Before changing the name I'm gonna wait for the prototype to be closer to 
'finished', so in the meantime if anyone has a thought about it, feel free 
to weight in !

@TW Tones Indeed I need to write a little bit of doc about creating 
commands.
About centralizing in a repo, I was more thinking about security for the 
users, as a command could potentially execute code on your computer, and 
definitely execute commands in your wiki.
So it would be a way to 'vet' commands.
Anyway, I would say that's an idea for later, let's work on the 
customization part first and see :)

> someone wanting add a new custom field to tiddlers with a given tag

Ohhh I really like this one!

> I am wondering if we could do the same when in a text field editing 
content so ctrl-p in a text field would insert [[Welcome]] into the tiddler

Didn't think about that! That's really interesting as well

> Basically adding a way to add tags to the current tiddler by typing into 
command pallet.

This one is already possible! Try >Add tag or >Remove tag :)
I still need to do the same for fields.


@Saq @Mohammad So there would be a 'core' plugin and then 'packages' 
plugins (e.g server commands) having the core plugin as a dependency ?
Thanks a lot for the invite! I'll definitely come over and ask a couple 
questions in the Dev group :)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5445f755-62d2-4399-aff2-07d0f5848a59o%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-11 Thread Mohammad Rahmani
@Souk21
As Saq siad! I highly recommend keeping it simple and lightweight!

Best wishes
Mohammad


On Thu, Jun 11, 2020 at 6:03 PM Saq Imtiaz  wrote:

> @Souk21 you have a great set of features already and a nice long list of
> ideas to implement. I would however recommend taking a modular approach and
> not adding too many niche features to the default installation of the
> plugin.
>
> For instance, the plugin could by default come with a standard set of
> commands that would be useful to most users.
> Extra commands, such as those related to server usage, or exports, could
> be made available as sub-plugins (or just tiddlers).
>
> The goal being to keep the plugin lightweight and without bloat, and
> letting users opt in for extra features.
>
> Regarding development, managing state and refresh etc, feel free to post
> specific questions in the Dev group and we will endeavor to help. You can
> also request a review of a specific part of the plugin code that you are
> unsure about, to get things rolling.
>
> TW dev: https://groups.google.com/forum/#!forum/tiddlywikidev
>
> Cheers,
> Saq
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/62f9c783-4fd8-41fc-8a09-9b737864cdfdo%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDg%3Dy%2B2-DVapiEroVDssfovVsQRQzAb5MFcDugFbGDLOg%40mail.gmail.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-11 Thread Guido B
This is on the PC provided by my employer, so I still have to use the old 
Edge browser

Am Donnerstag, 11. Juni 2020 09:35:13 UTC+2 schrieb Mohammad:
>
> Hi Guido,
>
> I am using Microsoft Edge (Chromium) and it works like a charm! Microsoft 
> itself does recommend the new Edge!
>
>
> Best wishes
> Mohammad
>
>
> On Thu, Jun 11, 2020 at 10:27 AM Guido B  > wrote:
>
>> Souk21,
>>
>> Great plugin and it would fit perfectly into my workflow. Using it on my 
>> Mac with Safari or Firefox works fine. However, using it on a Windows10 
>> machine running the Edge browser, I get the following error message: 
>> "Undefined widget 'commandpalettewidget'". Being not a JS-person, I have no 
>> idea where this error comes from. 
>>
>> Another remark: I had to increase the z-index in the css-File to not 
>> having the palette appear behind the open tiddlers. Maybe you could do this 
>> by default. 
>>
>> Guido
>>
>> Am Mittwoch, 10. Juni 2020 19:31:24 UTC+2 schrieb Souk21:
>>>
>>> Hello everyone!
>>>
>>>
>>> I discovered TiddlyWiki a couple weeks ago, and I set myself to use it 
>>> for note taking.
>>> I really enjoy the trip so far, it really is a interesting piece of 
>>> software.
>>> The only thing missing for me is a proper way to search with the 
>>> keyboard only.
>>>
>>> There’s a shortcut to focus the search field, but unfortunately, you 
>>> can’t navigate the results with the arrows, and you can’t close the 
>>> dropdown with escape.
>>>
>>>
>>> I looked around for a plugin, but I wasn’t able to find any that worked 
>>> for me.
>>> So, in a tiddlywiki mindset, I decided to try and make my own.
>>> I took a lot of inspiration from VSCode command palette.
>>> By default you open it with Ctrl+P, but you can change the shortcut from 
>>> the tw settings
>>> You can search tiddlers by text or with a filter expression, search 
>>> tags, list all tiddlers with a tag,...
>>> If you type ‘>’ you enter the ‘command’ mode and you can select (or 
>>> search) from a list of commands.
>>> You can access help if you type '?'
>>>
>>>
>>> I tried to make it the more customizable I could, there’s still work but 
>>> it’s already quite customizable. Most of the commands are only tiddlers!
>>> It’s a prototype, and my first tw plugin as well, so obviously the code 
>>> is a mess! It could have unexpected behavior (most probably does) and you 
>>> shouldn’t use it in your own wikis yet!
>>>
>>>
>>> I tried my best, but for now, the plugin is not really working as tw 
>>> expects plugins to.
>>> The plugin always returns ‘refresh=false’ and manages his own DOM 
>>> itself, storing state inside of it in the way.
>>> I was not sure where to ‘instantiate’ the view, so for now I’m using 
>>> $:/View/AboveStory which I believe is not ideal.
>>> So yeah, really not the tw way.
>>>
>>>
>>> There are still some other problems, I’m not sure how to escape a filter 
>>> operation parameter for example so the search sometimes returns errors
>>>
>>> Obviously it’s not really optimized yet either.
>>>
>>> I do plan to fix it and include more features (I still have a tiddler 
>>> full of ideas)
>>>
>>>
>>> I’m posting here to see what people think of this prototype and if 
>>> there’s any interest in such a plugin.
>>>
>>> If so, I’m probably gonna need some guidance into how things are 
>>> supposed to work so I can make it work more nicely with tw.
>>>
>>> Considering the state of the project, I didn’t take the time to write 
>>> any doc yet.
>>>
>>> You can demo it here : https://souk21.github.io/TW-commandpalette/
>>>
>>> Let me know :)
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/e5e8c28e-f304-4713-a667-0a26e277165eo%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5d4a92ff-d87c-4a26-94db-0a9c3178773fo%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-11 Thread Mohammad Rahmani
David,
 Many popular editors including VS Code, Sublime, Atom use Command Palette!
 This inline with them and you will get used to!

Best wishes
Mohammad


On Thu, Jun 11, 2020 at 4:27 AM David Gifford  wrote:

> Yeah I got all excited about it being something for color palettes. I
> agree the name needs changing.
>
> On Wednesday, June 10, 2020 at 2:53:43 PM UTC-5, TiddlyTweeter wrote:
>>
>> Looks very interesting!
>>
>> TBH, I don't think the name is right as "Palette" in TW has been used so
>> far for COLOR.
>> TW has a sophisticated system for color palette manipulation.
>>
>> TBH, on First look I thought that was what it was about! :-) and got
>> confused.
>>
>> Now I better see what it is! Very interesting indeed.
>>
>> *Could you name it a different way?*
>>
>> TT
>>
>> On Wednesday, 10 June 2020 19:31:24 UTC+2, Souk21 wrote:
>>>
>>> Hello everyone!
>>>
>>>
>>> I discovered TiddlyWiki a couple weeks ago, and I set myself to use it
>>> for note taking.
>>> I really enjoy the trip so far, it really is a interesting piece of
>>> software.
>>> The only thing missing for me is a proper way to search with the
>>> keyboard only.
>>>
>>> There’s a shortcut to focus the search field, but unfortunately, you
>>> can’t navigate the results with the arrows, and you can’t close the
>>> dropdown with escape.
>>>
>>>
>>> I looked around for a plugin, but I wasn’t able to find any that worked
>>> for me.
>>> So, in a tiddlywiki mindset, I decided to try and make my own.
>>> I took a lot of inspiration from VSCode command palette.
>>> By default you open it with Ctrl+P, but you can change the shortcut from
>>> the tw settings
>>> You can search tiddlers by text or with a filter expression, search
>>> tags, list all tiddlers with a tag,...
>>> If you type ‘>’ you enter the ‘command’ mode and you can select (or
>>> search) from a list of commands.
>>> You can access help if you type '?'
>>>
>>>
>>> I tried to make it the more customizable I could, there’s still work but
>>> it’s already quite customizable. Most of the commands are only tiddlers!
>>> It’s a prototype, and my first tw plugin as well, so obviously the code
>>> is a mess! It could have unexpected behavior (most probably does) and you
>>> shouldn’t use it in your own wikis yet!
>>>
>>>
>>> I tried my best, but for now, the plugin is not really working as tw
>>> expects plugins to.
>>> The plugin always returns ‘refresh=false’ and manages his own DOM
>>> itself, storing state inside of it in the way.
>>> I was not sure where to ‘instantiate’ the view, so for now I’m using
>>> $:/View/AboveStory which I believe is not ideal.
>>> So yeah, really not the tw way.
>>>
>>>
>>> There are still some other problems, I’m not sure how to escape a filter
>>> operation parameter for example so the search sometimes returns errors
>>>
>>> Obviously it’s not really optimized yet either.
>>>
>>> I do plan to fix it and include more features (I still have a tiddler
>>> full of ideas)
>>>
>>>
>>> I’m posting here to see what people think of this prototype and if
>>> there’s any interest in such a plugin.
>>>
>>> If so, I’m probably gonna need some guidance into how things are
>>> supposed to work so I can make it work more nicely with tw.
>>>
>>> Considering the state of the project, I didn’t take the time to write
>>> any doc yet.
>>>
>>> You can demo it here : https://souk21.github.io/TW-commandpalette/
>>>
>>> Let me know :)
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/3af86bcf-266f-4b7f-bd1e-df9bc8785949o%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDavdrkw3X%3DgQKHf4yfnOufkQ8cAt26orxg8Xcn8HSssA%40mail.gmail.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-11 Thread Mohammad Rahmani
Hi Guido,

I am using Microsoft Edge (Chromium) and it works like a charm! Microsoft
itself does recommend the new Edge!


Best wishes
Mohammad


On Thu, Jun 11, 2020 at 10:27 AM Guido B  wrote:

> Souk21,
>
> Great plugin and it would fit perfectly into my workflow. Using it on my
> Mac with Safari or Firefox works fine. However, using it on a Windows10
> machine running the Edge browser, I get the following error message:
> "Undefined widget 'commandpalettewidget'". Being not a JS-person, I have no
> idea where this error comes from.
>
> Another remark: I had to increase the z-index in the css-File to not
> having the palette appear behind the open tiddlers. Maybe you could do this
> by default.
>
> Guido
>
> Am Mittwoch, 10. Juni 2020 19:31:24 UTC+2 schrieb Souk21:
>>
>> Hello everyone!
>>
>>
>> I discovered TiddlyWiki a couple weeks ago, and I set myself to use it
>> for note taking.
>> I really enjoy the trip so far, it really is a interesting piece of
>> software.
>> The only thing missing for me is a proper way to search with the keyboard
>> only.
>>
>> There’s a shortcut to focus the search field, but unfortunately, you
>> can’t navigate the results with the arrows, and you can’t close the
>> dropdown with escape.
>>
>>
>> I looked around for a plugin, but I wasn’t able to find any that worked
>> for me.
>> So, in a tiddlywiki mindset, I decided to try and make my own.
>> I took a lot of inspiration from VSCode command palette.
>> By default you open it with Ctrl+P, but you can change the shortcut from
>> the tw settings
>> You can search tiddlers by text or with a filter expression, search tags,
>> list all tiddlers with a tag,...
>> If you type ‘>’ you enter the ‘command’ mode and you can select (or
>> search) from a list of commands.
>> You can access help if you type '?'
>>
>>
>> I tried to make it the more customizable I could, there’s still work but
>> it’s already quite customizable. Most of the commands are only tiddlers!
>> It’s a prototype, and my first tw plugin as well, so obviously the code
>> is a mess! It could have unexpected behavior (most probably does) and you
>> shouldn’t use it in your own wikis yet!
>>
>>
>> I tried my best, but for now, the plugin is not really working as tw
>> expects plugins to.
>> The plugin always returns ‘refresh=false’ and manages his own DOM itself,
>> storing state inside of it in the way.
>> I was not sure where to ‘instantiate’ the view, so for now I’m using
>> $:/View/AboveStory which I believe is not ideal.
>> So yeah, really not the tw way.
>>
>>
>> There are still some other problems, I’m not sure how to escape a filter
>> operation parameter for example so the search sometimes returns errors
>>
>> Obviously it’s not really optimized yet either.
>>
>> I do plan to fix it and include more features (I still have a tiddler
>> full of ideas)
>>
>>
>> I’m posting here to see what people think of this prototype and if
>> there’s any interest in such a plugin.
>>
>> If so, I’m probably gonna need some guidance into how things are supposed
>> to work so I can make it work more nicely with tw.
>>
>> Considering the state of the project, I didn’t take the time to write any
>> doc yet.
>>
>> You can demo it here : https://souk21.github.io/TW-commandpalette/
>>
>> Let me know :)
>>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/e5e8c28e-f304-4713-a667-0a26e277165eo%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAnasWaKf%3DchdA4hKdM0-Kka0SEe0UCeoW3dBpd-pz5YA%40mail.gmail.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-10 Thread TiddlyTweeter

>
> @TiddlyTweeter I'm not too attached to this name. If it's confusing and 
> there's better ideas I'm definitely up to change it.
>

*Command Picker?* That seems to fit okay? Stress on activity of picking a 
command to *do *something. 

Its a neat tool, bringing together common actions in a simple interface.

Best wishes
TT

 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eea43808-9acf-4a07-b9c7-9f9a1fa06abfo%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-10 Thread Souk21
@Mohammad Didn't think about filter history, thanks! Added to the list :)

@TiddlyTweeter I'm not too attached to this name. If it's confusing and 
there's better ideas I'm definitely up to change it.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3f617310-1898-4baa-898d-b7f475c6a0efo%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-10 Thread TiddlyTweeter
I agree, its actually a neat term in context of Visual Studio.

But it will cause confusion in TW because of our use of color palettes. 
It sounds like its a Commander FOR color palettes; rather than a palette OF 
Commands.

Best wishes
TT

On Wednesday, 10 June 2020 22:23:19 UTC+2, Mohammad wrote:
>
> TT, Command Palette was taken from Visual Studio Code!
> See it here: 
> https://code.visualstudio.com/docs/getstarted/userinterface#:~:text=Command%20Palette,brings%20up%20the%20Command%20Palette.
>
>
> Best wishes
> Mohammad
>
>
> On Thu, Jun 11, 2020 at 12:23 AM TiddlyTweeter  > wrote:
>
>> Looks very interesting!
>>
>> TBH, I don't think the name is right as "Palette" in TW has been used so 
>> far for COLOR. 
>> TW has a sophisticated system for color palette manipulation.
>>
>> TBH, on First look I thought that was what it was about! :-) and got 
>> confused.
>>
>> Now I better see what it is! Very interesting indeed.
>>
>> *Could you name it a different way?*
>>
>> TT
>>
>> On Wednesday, 10 June 2020 19:31:24 UTC+2, Souk21 wrote:
>>>
>>> Hello everyone!
>>>
>>>
>>> I discovered TiddlyWiki a couple weeks ago, and I set myself to use it 
>>> for note taking.
>>> I really enjoy the trip so far, it really is a interesting piece of 
>>> software.
>>> The only thing missing for me is a proper way to search with the 
>>> keyboard only.
>>>
>>> There’s a shortcut to focus the search field, but unfortunately, you 
>>> can’t navigate the results with the arrows, and you can’t close the 
>>> dropdown with escape.
>>>
>>>
>>> I looked around for a plugin, but I wasn’t able to find any that worked 
>>> for me.
>>> So, in a tiddlywiki mindset, I decided to try and make my own.
>>> I took a lot of inspiration from VSCode command palette.
>>> By default you open it with Ctrl+P, but you can change the shortcut from 
>>> the tw settings
>>> You can search tiddlers by text or with a filter expression, search 
>>> tags, list all tiddlers with a tag,...
>>> If you type ‘>’ you enter the ‘command’ mode and you can select (or 
>>> search) from a list of commands.
>>> You can access help if you type '?'
>>>
>>>
>>> I tried to make it the more customizable I could, there’s still work but 
>>> it’s already quite customizable. Most of the commands are only tiddlers!
>>> It’s a prototype, and my first tw plugin as well, so obviously the code 
>>> is a mess! It could have unexpected behavior (most probably does) and you 
>>> shouldn’t use it in your own wikis yet!
>>>
>>>
>>> I tried my best, but for now, the plugin is not really working as tw 
>>> expects plugins to.
>>> The plugin always returns ‘refresh=false’ and manages his own DOM 
>>> itself, storing state inside of it in the way.
>>> I was not sure where to ‘instantiate’ the view, so for now I’m using 
>>> $:/View/AboveStory which I believe is not ideal.
>>> So yeah, really not the tw way.
>>>
>>>
>>> There are still some other problems, I’m not sure how to escape a filter 
>>> operation parameter for example so the search sometimes returns errors
>>>
>>> Obviously it’s not really optimized yet either.
>>>
>>> I do plan to fix it and include more features (I still have a tiddler 
>>> full of ideas)
>>>
>>>
>>> I’m posting here to see what people think of this prototype and if 
>>> there’s any interest in such a plugin.
>>>
>>> If so, I’m probably gonna need some guidance into how things are 
>>> supposed to work so I can make it work more nicely with tw.
>>>
>>> Considering the state of the project, I didn’t take the time to write 
>>> any doc yet.
>>>
>>> You can demo it here : https://souk21.github.io/TW-commandpalette/
>>>
>>> Let me know :)
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/dbcbe315-adf0-45b8-9db7-1bb660f7bc38o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/12bc2e00-237c-4bd4-a3c1-75961602c36ao%40googlegroups.com.


Re: [tw5] Re: Plugin prototype: Command Palette

2020-06-10 Thread Mohammad Rahmani
TT, Command Palette was taken from Visual Studio Code!
See it here:
https://code.visualstudio.com/docs/getstarted/userinterface#:~:text=Command%20Palette,brings%20up%20the%20Command%20Palette.


Best wishes
Mohammad


On Thu, Jun 11, 2020 at 12:23 AM TiddlyTweeter 
wrote:

> Looks very interesting!
>
> TBH, I don't think the name is right as "Palette" in TW has been used so
> far for COLOR.
> TW has a sophisticated system for color palette manipulation.
>
> TBH, on First look I thought that was what it was about! :-) and got
> confused.
>
> Now I better see what it is! Very interesting indeed.
>
> *Could you name it a different way?*
>
> TT
>
> On Wednesday, 10 June 2020 19:31:24 UTC+2, Souk21 wrote:
>>
>> Hello everyone!
>>
>>
>> I discovered TiddlyWiki a couple weeks ago, and I set myself to use it
>> for note taking.
>> I really enjoy the trip so far, it really is a interesting piece of
>> software.
>> The only thing missing for me is a proper way to search with the keyboard
>> only.
>>
>> There’s a shortcut to focus the search field, but unfortunately, you
>> can’t navigate the results with the arrows, and you can’t close the
>> dropdown with escape.
>>
>>
>> I looked around for a plugin, but I wasn’t able to find any that worked
>> for me.
>> So, in a tiddlywiki mindset, I decided to try and make my own.
>> I took a lot of inspiration from VSCode command palette.
>> By default you open it with Ctrl+P, but you can change the shortcut from
>> the tw settings
>> You can search tiddlers by text or with a filter expression, search tags,
>> list all tiddlers with a tag,...
>> If you type ‘>’ you enter the ‘command’ mode and you can select (or
>> search) from a list of commands.
>> You can access help if you type '?'
>>
>>
>> I tried to make it the more customizable I could, there’s still work but
>> it’s already quite customizable. Most of the commands are only tiddlers!
>> It’s a prototype, and my first tw plugin as well, so obviously the code
>> is a mess! It could have unexpected behavior (most probably does) and you
>> shouldn’t use it in your own wikis yet!
>>
>>
>> I tried my best, but for now, the plugin is not really working as tw
>> expects plugins to.
>> The plugin always returns ‘refresh=false’ and manages his own DOM itself,
>> storing state inside of it in the way.
>> I was not sure where to ‘instantiate’ the view, so for now I’m using
>> $:/View/AboveStory which I believe is not ideal.
>> So yeah, really not the tw way.
>>
>>
>> There are still some other problems, I’m not sure how to escape a filter
>> operation parameter for example so the search sometimes returns errors
>>
>> Obviously it’s not really optimized yet either.
>>
>> I do plan to fix it and include more features (I still have a tiddler
>> full of ideas)
>>
>>
>> I’m posting here to see what people think of this prototype and if
>> there’s any interest in such a plugin.
>>
>> If so, I’m probably gonna need some guidance into how things are supposed
>> to work so I can make it work more nicely with tw.
>>
>> Considering the state of the project, I didn’t take the time to write any
>> doc yet.
>>
>> You can demo it here : https://souk21.github.io/TW-commandpalette/
>>
>> Let me know :)
>>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/dbcbe315-adf0-45b8-9db7-1bb660f7bc38o%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAxoeStkaJxgC0VUeMVc8JvYgZbkhm9pgWT9%3DgmMAEhEA%40mail.gmail.com.