Possibility to add a keyboard hotkey to copy size

Have a suggestion for "Everything"? Please post it here.
Post Reply
voidme
Posts: 12
Joined: Sun Sep 27, 2020 9:54 pm

Possibility to add a keyboard hotkey to copy size

Post by voidme »

Could you add the possibility to add a keyboard hotkey to: File / Copy property / Size?
The size of the file that is currently selected.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Possibility to add a keyboard hotkey to copy size

Post by tuska »

Hi,
For example, you can create bookmark(s) with the following command(s) and create (a) shortcut(s):
⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
Bookmark
Name: RESULT_LIST_COPY_TSV_NO_HEADER - Shortcut: e.g. ALT + K
Search: Custom ...

Code: Select all

/command 41182 nop:Mark file(s)

Remark:
/command 41182  <-- press Alt + ENTER to create a line break or simply copy the CODE and paste it into the bookmark! | nop:
⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
Bookmark
Name: RESULT_LIST_COPY_TSV_WITH_HEADER - Shortcut: e.g. ALT + L
Search: Custom ...

Code: Select all

/command 41183 nop:Mark file(s)

Remark:
/command 41183  <-- press Alt + ENTER to create a line break or simply copy the CODE and paste it into the bookmark! | nop:
⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
"Size" is always output in Bytes, even if in 'Everything' Options - 1.5.0.1383a (x64) > View > Size format: Auto ... is present.
⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺

Further information can be found here:
Copy field contents to clipboard for all columns defined in the bookmark

____________________________________________________
Windows 11 Pro (x64) Version 23H2 (OS Build 22631.3810)
'Everything' 1.5.0.1383a (x64) - "Portable on system drive C:"
void
Developer
Posts: 16732
Joined: Fri Oct 16, 2009 11:31 pm

Re: Possibility to add a keyboard hotkey to copy size

Post by void »

To create a keyboard shortcut to copy size information:
  • From the Bookmarks menu, click Add to Bookmarks....
  • Change the Name to: Copy Size
  • Change the Search to: /copy $size:
  • Set a keyboard shortcut.
  • Click OK.


To copy the size from the current selection without a keyboard shortcut:
  • Right click your selection under the Size column and click Copy Size.
    -or-
  • From the File menu, under the Copy Property submenu, click Copy Size.
voidme
Posts: 12
Joined: Sun Sep 27, 2020 9:54 pm

Re: Possibility to add a keyboard hotkey to copy size

Post by voidme »

void wrote: Mon Jul 08, 2024 7:17 am To create a keyboard shortcut to copy size information: ...
I have changed my mind. I have too many keyboard shortcuts.
Would it be possible to change the context menu?
Add the option 'Copy Size' (without using the submenu Copy Property, which has no underlined letter, so a keyboard script is not feasible) under Alt+f.

With an option to assign a key, for example S, to be underlind. That is currently assigned to 'Create Shortcut', but I don't use that option (maybe I can remove it or change the underlined letter?).

So that a keyboard script (for a programmable keyboard) with 'Alt+f, s' copies the size.

While we are at this context menu: I'd like to remove Options like Export, Open, Delete and Rename from the context menu. If possible :).
For Open I use Enter, for Delete I use the DEL key, for Rename I use the F2 key.
Edit: I see you said "Full context menu customization is on my TODO list." in November 2022... :P
void
Developer
Posts: 16732
Joined: Fri Oct 16, 2009 11:31 pm

Re: Possibility to add a keyboard hotkey to copy size

Post by void »

Would it be possible to change the context menu?
The context menu is mostly hard coded.
Some items can be shown/hidden under Tools -> Options -> Advanced -> ( search for context_menu )


Add the option 'Copy Size' (without using the submenu Copy Property, which has no underlined letter, so a keyboard script is not feasible) under Alt+f.
I have put on my TODO list to look into executing search commands from custom open commands.
Custom open commands are shown in the context menu.
You can prefix a letter with & to use it as a context menu keyboard shortcut. (eg: Copy &Size )
Maybe there's a third party tool out there that copies the size from the specified filename?
The search command to copy size is: /copy $size:


With an option to assign a key, for example S, to be underlind. That is currently assigned to 'Create Shortcut', but I don't use that option (maybe I can remove it or change the underlined letter?).
Customizing strings in Everything 1.5
Not all strings can be customized yet.
I am working on this for localization..

For example, to remove the S shortcut for Create shortcut:
Open your Everything.ini in the same location as your Everything.exe
Add the following line to the end of the file:
localization_strings=927=Create Shortcut


So that a keyboard script (for a programmable keyboard) with 'Alt+f, s' copies the size.
Please consider a bookmark, but set the name to:
Copy &Size
Now you can use Alt + B, S

You will need to disable menu_escape_amp to allow & in bookmark names:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    amp
  • Select: menu_escape_amp
  • Set the value to: false
  • Click OK.

While we are at this context menu: I'd like to remove Options like Export, Open, Delete and Rename from the context menu. If possible :).
I have put on my TODO list to add an option to remove common context menu items (like rename and delete).


Edit: I see you said "Full context menu customization is on my TODO list." in November 2022... :P
Not for Everything 1.5, hopefully in Everything 1.6.
Post Reply