Page 1 of 1

[FASM] Eagle - лаунчер

Posted: Mon Jan 19, 2015 4:37 pm
by e-andrew
Eagle v0.1

По сути это просто лаунчер файлов(не только исполняемых)/папок, а так же урезанный файловый менеджер (просмотр списка файлов), а так же в будущем простая консоль/терминал. Ввод имени файла для меня намного удобнее, чем блуждание по меню.

Список файлов/папок/биндов(ярлыков) фильтруется строкой из поля ввода. Выводятся только те файлы, в имени которых есть подстрока из поля ввода. В поле ввода может быть так же символ "?", означающий ОДИН любой символ, и символ "*", означающий ЛЮБОЕ КОЛИЧЕСТВО (нуль и более) любых символов. Работает это пака что криво.

Если первый символ поля ввода - "/", то выводится список папок желтым цветом (фильтр уже считается со второго символа). Если выделить папку курсором и нажать "right" (стрелка вправо), то текущая директория меняется на эту папку и в списке файлов будут файлы из данной директории. При нажатии "left" (стрелка влево) независимо от позиции курсора будет возврат в предыдущую директорию. По нажатию "enter" открывается eolite в папке под курсором.

Если первый символ поля ввода - ":", то выводится список биндов (ярлыков) на папку/файл (фильтр уже считается со второго символа). Список биндов берется из /sys/settings/eagle.ini , а так же к нему добавляется бинды из файла eagle.ini из текущей директории. Бинд может вести как на папку, так и на файл, поэтому нажатие "right" на бинде к папке будет работать так же, как если бы это была папка.

Если первый символ не является ни ":", ни "/", то выводится просто список первых 17 файлов, проходящих фильтрацию. Если в eagle.ini из (/sys/settings/ !) в секции Config значение ключа only_exec равно 1, ты выводится список файлов БЕЗ РАСШИРЕНИЯ. При нажатии "enter" исполняемый файл запускается, а не исполняемый открывается согласно таблице ассоциаций из /sys/file managers/eolite.ini . Если подоходящей программы нет, то открывается с помощью tinypad.

Сейчас программа запускается по хоткею Win/Super + R (себе же я поставил просто на Win/Super) и закрывается по "escape". Следовательно программа призвана замениь run. Или ничего не замнить, если вам не понравится. Пока что в ней нет возможности ввести параметры, поэтому она не может тягаться с run, но я уже понял, как это сделать.

В архиве в папке Sources находятся сорцы, для компилиции которых нужен срез svn (пути к инклюдам поправить самому, или переместить папку Sources в /svn/programs/system/). В папке Release хранится готовый бинарник и два конфига к eagle и panel. Нужно просто скопировать содержимое этой папки в /sys/ и перезапустить panel. В папке Screenshots лежат скриншоты (где моя лодка, капитану нужна лодка). Файл install.sh запускается непосредственно из колибри и сам ставит eagle со всеми настройками и перезегрузками. Kolibri.img - чистый образ с уже установленым eagle.

Все скриншоты на имугуре
Spoiler:Тут только первые несколько
1.png
1.png (120.77 KiB)
Viewed 8281 times
4.png
4.png (125.04 KiB)
Viewed 8281 times
5.png
5.png (124.2 KiB)
Viewed 8281 times
Заменять ли им run после добавления возможности ввода параметров?

Re: [FASM] Eagle - лаунчер

Posted: Mon Jan 19, 2015 9:04 pm
by buyerninety
(Only cursory test)

Test system condition; previously installed Kolibri5365 (english) ISO via Rufus
onto a USB flash. That system working, using resolution 1024x768 .
Renamed (5365)Kolibri.img to Kolibri.old, placed (EagleTest)Kolibri.img onto
USB flash. (EDIT: ..so boot, and now testing is with (EagleTest)Kolibri.img )

Minor headscratching - with Eolite, Far, open, and looking a tinyPad-TXT of your
Eagle (forum) explanation - I notice cannot 'on-top' make overlap of Eagle
with other program panels. Eagle on top, then click e.g. Eolite {underneath},
causes instantly Eagle to disappear. Actually, Eagle disappears instantly
whenever any another program panel is clicked.
(But I understand this is minor 0.001 version Eagle - not fully polished, so
such is a later time for fixing.)

(Also, perhaps with only 15 files listed, instead of 17, Far or TinyPad could be
situated at the bottom of the screen, and Eagle would not overlap. (On this
matter, I mean you could merely move Far or tinyPad to the bottom of screen,
without having to stop to do an additional step of resizing their panels.)

Search works OK. One point of concern - when Eagle search e.g. '.' , see OK
all (first) 17 '.' files. Press again '.' (now have '..') . All the 17 displayed files
disappear. Now press 'enter'. Of course, macros.inc opens in TinyPad.
Would Prefer, instead, after 'press enter', to see something that says e.g.
" OPEN file 'macros.inc' ? " . This acts as warning and reminder
of which file is to be acted on.
Also, because your finger already on the 'enter' key, no time will be lost in
finger movement - only have to think " Do I want to run that file? " , then press
or not press key.
This is precautionary thing, where the file is a program, or such a file that
performs some action (a deletion of something, for instance).

===============

(And now, further comment, almost certainly not fault relating to Eagle.)
Noticed something, when using this EagleTest.img , - clicked 'Board' on
Desktop - Board panel opens, (russian title text is seen,) BUT no text is
written inside Board panel. This recent Bug of 'Board'?. {Restarted and
checked start screen, EagleTest is from svn5381.}
Shutdown, rename files, back into previous setup, (5365)Kolibri.img OK,
and there 'Board' has no bug.

===============
Further comment, relating to 'Shell'. Noticed command 'Ver' gives output
v0.74, all good. Thought to try input 'svn' (and also 'build') as commands,
to quickly see what svn or build that EagleTest.img comes from - but no,
these commands do not exist.
Developers, please consider making adding command 'svn' to 'Shell', to
return what svn is being used.
===============
e-andrew Regrets, ;
"Заменять ли им run после добавления возможности ввода параметров?"
"Replace if they run after adding the possibility of entering the parameters?"
The English translation is unclear, or is unclear to me.

Re: [FASM] Eagle - лаунчер

Posted: Mon Jan 19, 2015 9:52 pm
by e-andrew
Wow, thanks you for this feedback.
Minor headscratching - with Eolite, Far, open, and looking a tinyPad-TXT of your
Eagle (forum) explanation - I notice cannot 'on-top' make overlap of Eagle
with other program panels. Eagle on top, then click e.g. Eolite {underneath},
causes instantly Eagle to disappear. Actually, Eagle disappears instantly
whenever any another program panel is clicked.
(But I understand this is minor 0.001 version Eagle - not fully polished, so
such is a later time for fixing.)
It is not a bug. It is imposible to make window on-top right now. Eagle behaves as menu (for example context-menu).
(Also, perhaps with only 15 files listed, instead of 17, Far or TinyPad could be
situated at the bottom of the screen, and Eagle would not overlap. (On this
matter, I mean you could merely move Far or tinyPad to the bottom of screen,
without having to stop to do an additional step of resizing their panels.)
I can't sort list as I want, it is work of kernel (sysfunc 70.2). But if you want to run tinypad you can just enter "tin" and press "enter". Or add it to binds. Far is located at /sys/file managers/ thats why there isn't far in list. You can add it to binds in eagle.ini and run it as ":far". Or just ":f". Or write "/fi", press "right". Far will be at list.
Search works OK. One point of concern - when Eagle search e.g. '.' , see OK
all (first) 17 '.' files. Press again '.' (now have '..') . All the 17 displayed files
disappear.. ....
It is a bug. Fixed.
Would Prefer, instead, after 'press enter', to see something that says e.g.
" OPEN file 'macros.inc' ? " . This acts as warning and reminder
of which file is to be acted on.
Also, because your finger already on the 'enter' key, no time will be lost in
finger movement - only have to think " Do I want to run that file? " , then press
or not press key.
This is precautionary thing, where the file is a program, or such a file that
performs some action (a deletion of something, for instance).
Good idea.
e-andrew Regrets, ;
"Заменять ли им run после добавления возможности ввода параметров?"
"Replace if they run after adding the possibility of entering the parameters?"
The English translation is unclear, or is unclear to me.
"Can I replace app 'run' from kolibri by my 'eagle', if I will add posibility to write params?"

Re: [FASM] Eagle - лаунчер

Posted: Tue Jan 20, 2015 4:57 am
by buyerninety
..not a bug. It is imposible to make window on-top right now. Eagle behaves as menu
Ah, I understand.
==========

buyerninety says;
(Also, perhaps with only 15 files listed, instead of 17, Far or TinyPad could be
situated at the bottom of the screen, and Eagle would not overlap. (On this
matter, I mean you could merely move Far or tinyPad to the bottom of screen,
without having to stop to do an additional step of resizing their panels.)
e-andrew says;
I can't sort list as I want...
There is a misunderstanding. I meant, instead, where there could
be a circumstance something like the following;
Example - You are working with KOS in resolution of 1024 x 768.
You receive message from someone asking if some files are on your
system, he writes that the filenames are;
t7f9!lPs.txt and gleiFmG!hj.txt and hrst5uVst-4eq.txt .

Open message in TinyPad, click Eagle. Eagle covers TinyPad panel.
Ok, so move TinyPad to bottom of screen, away from (where Eagle
appears at) top.
Click Eagle again, you're inputting, say, hrst5u... er, what were the other
characters that filename? - You can't see it in TinyPad now, even though
TinyPad is at bottom of 1024 x 768 screen, because the 17 found
files list, maybe intrudes over the section of the TinyPad (default size)
panel that has the filename you want to see.

Minor point I was making, was that if there were only perhaps 15 or
certainly 14 files listed by Eagle, then the size of a 14 name file list
shown by Eagle, (if resolution of 1024 x 768 is being used,) should not
intrude over a (default size) TinyPad panel, if TinyPad is placed at the
bottom of the screen. (Perhaps I cling nostalgically :) to this resolution,
when other persons using KolibriOS usually use higher resolutions??)

Of course, you can resize TinyPad, :wink: but that is additional step, :roll:
perhaps an unnecessary additional step, if it were a Eagle 14 name file list.
Therefore, unless there is specific reason for choice of number 17, can
be shown that there is a reason, in resolution 1024 x 768 at least, for
displaying 14 instead...
Cheers
EDIT:
"Заменять ли им run после добавления возможности ввода параметров?"
Ah,
Replace if they run after adding the possibility of entering the parameters?
Should Eagle allow apps the possiblity to also 'run' in KolibriOS, if this 'parameter' is added?
Ha, well my vote would have been Yes :)

Re: [FASM] Eagle - лаунчер

Posted: Tue Jan 20, 2015 11:42 am
by e-andrew
Hm, I can add a hotkey Ctrl+Up/Ctrl+Down, which remove/add line to list. 17 is a random number.

Should Eagle allow apps the possiblity to also 'run' in KolibriOS, if this 'parameter' is added?
No no no, there is one application in kolibri, "/sys/run", you can run it by Win+R in night build. That app can run other apps with parameters (or example "@notify Hello", "rdsave H"). My eagle didn't have this future and my idea is a replace "/sys/run/" by me eagle when I will add this future to eagle.

Sory for my english)

Re: [FASM] Eagle - лаунчер

Posted: Tue Jan 20, 2015 2:43 pm
by Leency
Looks great! And seems to be very useful util.

Posted: Wed Jan 21, 2015 12:59 am
by punk_joker
Отличная утилита. Осталось подобрать подходящую кнопку вместо Win (отсутствует как таковая) и можно пользоваться. В принципе даже удобней run.

Posted: Wed Jan 21, 2015 1:11 am
by punk_joker
Может я неправильно что-то делаю, но как запускать программы не из системного диска, а с флешки например? При попытке ввода пути, запускается eolite с какойто папкой из sys

Re:

Posted: Wed Jan 21, 2015 1:28 am
by e-andrew
punk_joker wrote:Может я неправильно что-то делаю, но как запускать программы не из системного диска, а с флешки например? При попытке ввода пути, запускается eolite с какойто папкой из sys
Пока что запускать можно только с /sys/. Если нужно запустить что-то с флешки, то можно прописать бинд на а)флешку (flash=/usbhd0/1/, последний символ именно /) или на папку на флешке. Если выделить такой бинд и нажать enter - откроется через eolite, если "right" - папка откроется в самом eagle; б) прописать бинд на сам файл с флешки,

Сейчас работаю над режимом отображения разделов (после ввода "\"), а так же введу возможность выполнения содержимого поля ввода независимо от того, что в списке, т.е. можно ввести полный путь к файлу, нажать Ctrl+Enter или Tab и он запустит тупо содержимое строки ввода)

Posted: Wed Jan 21, 2015 1:39 am
by punk_joker
Как все доделаешь можно будет подумать и о замене run на него. А пока не очень удобно в тгм плане, что у меня программы в основном на разных дисках, бинды это хорошо для ускорения работы, но без реализации в стандарте не оч. Жду обновления, реально круто.