gmcclure382 / stexbar

Automatically exported from code.google.com/p/stexbar
0 stars 0 forks source link

unexpected wok of "console" command over the file #251

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
if i open the context menu for any file, then the shell is opened in 
Windows\system32

which is kind of dfeatign the very purp[ose of that command in the context menu

Proposal:
  if "Console" is opened from the context menu with file(s) selected, then

a: if the selection is singular and it is a folder - then open the shell inside
b: if the selection is multiple and files do not belong to the same folder - 
then the command is disabled/hidden
c: if the seleciton is a singluar executable file then

c1: present to user the edit box asking him to (optionally) enter the command 
line
c2: would be nice to also show the big exe icon and app title from the 
VERSIONINFO
c3: if the user presses OK, then run "cmd.exe /k " + exe-name + command-line
c4: preparing the commandline perhaps would ask for GetACP()/GetOEMCP() 
conversion or using unicode xxxxW aPI.

d: if the selection is an existing file(s) and (if multiple) they are in the 
same folder then:

d1: present to user the edit box asking him to adjust the command line
d2: pre-populate that edit box with comma-separated values for the selection
d3: run "cmd.exe /k " edit-box-content

Original issue reported on code.google.com by Arioch...@gmail.com on 26 Dec 2014 at 12:41