mirror of
https://github.com/kepler155c/opus
synced 2025-05-04 08:24:13 +00:00
neural + copy file path
This commit is contained in:
parent
00461483e1
commit
fc9981bff0
@ -48,6 +48,7 @@ local Browser = UI.Page {
|
|||||||
{ text = 'Edit', dropdown = {
|
{ text = 'Edit', dropdown = {
|
||||||
{ text = 'Cut ^x', event = 'cut' },
|
{ text = 'Cut ^x', event = 'cut' },
|
||||||
{ text = 'Copy ^c', event = 'copy' },
|
{ text = 'Copy ^c', event = 'copy' },
|
||||||
|
{ text = 'Copy path ', event = 'copy_path' },
|
||||||
{ text = 'Paste ^v', event = 'paste' },
|
{ text = 'Paste ^v', event = 'paste' },
|
||||||
UI.MenuBar.spacer,
|
UI.MenuBar.spacer,
|
||||||
{ text = 'Mark m', event = 'mark' },
|
{ text = 'Mark m', event = 'mark' },
|
||||||
@ -228,7 +229,6 @@ function Browser:updateDirectory(dir)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Browser:setDir(dirName, noStatus)
|
function Browser:setDir(dirName, noStatus)
|
||||||
|
|
||||||
self:unmarkAll()
|
self:unmarkAll()
|
||||||
|
|
||||||
if self.dir then
|
if self.dir then
|
||||||
@ -379,6 +379,11 @@ function Browser:eventHandler(event)
|
|||||||
self:setStatus('Copied %d file(s)', Util.size(copied))
|
self:setStatus('Copied %d file(s)', Util.size(copied))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
elseif event.type == 'copy_path' then
|
||||||
|
if file then
|
||||||
|
os.queueEvent('clipboard_copy', file.fullName)
|
||||||
|
end
|
||||||
|
|
||||||
elseif event.type == 'paste' then
|
elseif event.type == 'paste' then
|
||||||
for _,m in pairs(copied) do
|
for _,m in pairs(copied) do
|
||||||
local s, m = pcall(function()
|
local s, m = pcall(function()
|
||||||
|
@ -149,7 +149,9 @@ local function sendInfo()
|
|||||||
if device.neuralInterface then
|
if device.neuralInterface then
|
||||||
info.status = device.neuralInterface.status
|
info.status = device.neuralInterface.status
|
||||||
if not info.status and device.neuralInterface.getMetaOwner then
|
if not info.status and device.neuralInterface.getMetaOwner then
|
||||||
info.status = 'health: ' .. device.neuralInterface.getMetaOwner().health
|
info.status = 'health: ' ..
|
||||||
|
math.floor(device.neuralInterface.getMetaOwner().health /
|
||||||
|
device.neuralInterface.getMetaOwner().maxHealth * 100)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device.wireless_modem.transmit(999, os.getComputerID(), info)
|
device.wireless_modem.transmit(999, os.getComputerID(), info)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user