Closed bahusoid closed 4 years ago
Cud already has Command Palette (F1 or Ctrl-shift-P), it does the similar thing.
Cool! Thanks for quick response and sorry for a poor job finding this functionality -seems pretty easily discoverable now :) Though it doesn't look for opened file names - can it be added to wish list?
Good wish, cmd palette will show items “opened file: .......” since next version.
@kvichans @dinkumoil
What is new in "opened file:..."?
@kvichans Command palette now has items “opened file: ...”
what new the commands do?
Wow! That was really quick! I've tested it - seems to be working fine.
A bit unrelated - Home/End buttons don't move caret in search edit box to first/last position. Instead it reacts to list of search results - it kinda makes sense. But still would be good to have this ability in edit box. Maybe as Ctrl+ Home/Ctrl+End?
And another small wish is ability to quickly filter search to single group (like search only in menus, only in opened files, only in plugins, only in [some grouped items]) . In Visual Studio it's implemented by special prefixing search like @m searchString
- search will be done only in menus. But ideally such filtering should also work with suffixes searchString @m
.
@kvichans
Allows to quickly search across opened tabs by file name and switch to it.
@bahusoid Thanks
Made a change
In Visual Studio it's implemented by special prefixing search
You can enter files:
with ":" to make such a filter, or plugin:
or lexer:
.
Do we need more prefixes?
Do we need more prefixes?
I've just start playing with Cuda so not sure. Will let you know if something comes to mind.
You can enter
files:
with ":" ... orplugin
: orlexer
:
Yeah I got it (actually files:
doesn't work, it seems you meant file:
). But it still gives many unrelated results and first suggested result is not for opened files. And in most cases I enter simply search string and only when I see too many results I want to apply additional filtering. So suffix filtering is much more convenient to me. But I understand it might be an overkill to implement such functionality here...
I offer a short form:
\bf:
as f[iles]:
\bp:
as p[lugin]:
\bl:
as l[exer]:
But I really like this idea
by special prefixing search like @m searchString - search will be done only in menus. But ideally such filtering should also work with suffixes searchString @m.
@bahusoid @kvichans @dinkumoil
I made this as hash-symbol plus letter: #l - lexers, #p - plugins, #f - files.
on typing #
Cmd Palette shows
then we can type string.
Nice, I like it! :+1:
But what's about searching in the menu?
Yeah! Looks awesome. I also wonder how to make VIM like search results navigation...I think maybe Ctrl+H,J,K,L can be added as left, up, down, right alternatives in command palette?
VIM navigation will be beyond editor scope (yes we have Vim Mode plugin but it's plugin).
But what's about searching in the menu?
Why to search in menu, when all menu commands are already in CmdPalette?
Why to search in menu, when all menu commands are already in CmdPalette?
Menu entries are what users see all the time when working with the program. Command names and menu entry texts are not necessarily the same. But OK, the main menu can be customized by a plugin, I guess it would be really overkill to deal with that.
Thank you for the extensions you already made!
I've played a bit with it - no issues so far!
Regarding VIM navigation: I understand just thought as long Ctrl+J and Ctrl+K combinations are not usable anyway in command palette - would be cool to make it work as up/down keys to avoid additional hand frictions...
done
@OlehL
по пункту 2 нет подсветки совпадающих символов (как на предыдущем скрине синим) для лексеров, открытых файлов. Или так и планировалось?
@OlehL Fixed, thanks
So basically I'm asking for Visual Studio
Ctrl+Q
functionality. It's also present in Notepad++ as NppMenuSearch plugin.So there is no need to remember full menu structure - you can just open this search menu window type "utf" and search should find and and allow to execute all UTF related menus/actions like:
File -> Encoding -> Convert -> Convert To -> UTF-8
and others.Would be cool to have this functionality in CudaText.