Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optional extension for graphic command #151

Closed
MAKIO135 opened this issue Jun 28, 2019 · 10 comments
Closed

optional extension for graphic command #151

MAKIO135 opened this issue Jun 28, 2019 · 10 comments
Labels
enhancement New feature or request

Comments

@MAKIO135
Copy link
Collaborator

MAKIO135 commented Jun 28, 2019

Since using .gif / .png with the graphic command is the reason for multiple forks, setting extension could be optional:

'graphic': (p) => { terminal.theme.setImage(terminal.source.locate(p.parts[0] + '.' + (p.parts[1] || 'jpg'))) },

.jpg would still be the default extension, thus not breaking anything, but anyone could use .gif and other supported formats for background-image (PNG, SVG, JPG, GIF, WEBP)

-> Usage: graphic:1;gif

Instead of the current fixed .jpg extension:

'graphic': (p) => { terminal.theme.setImage(terminal.source.locate(p.str + '.jpg')) },

'graphic': (p) => { terminal.theme.setImage(terminal.source.locate(p.str + '.jpg')) },

@MAKIO135 MAKIO135 added the enhancement New feature or request label Jun 28, 2019
@neauoire
Copy link
Member

I like it, I think the full extension is better so I don't have to make changes anytime someone want to add a new one.

@MAKIO135
Copy link
Collaborator Author

Yes, plus prevents jpg / jpeg errors

@neauoire
Copy link
Member

neauoire commented Jun 30, 2019

  • Implemented gr:name;ext.
  • Also implemented a $ operator that automatically sends the command to Orca, without going through UDP! Like $gr:0;gif

@martinberlin
Copy link
Contributor

The $ dollar sign definitely does not work on my Ubuntu PC.
The only things I can see with SHIFT pressed and the numbers are: !%

Or this only though to be like a command using Ctrl+K?

@neauoire
Copy link
Member

neauoire commented Aug 7, 2019

You're supposed to be able to type the $ character into the grid.
Dunno why it's not working for you.

@martinberlin
Copy link
Contributor

It's maybe something to do that I'm using Gnome and Ubuntu 18? Did someone tried this on Ubuntu?
But the funny thing is that it works on the command Orca CTRL-K so it's really strange I would love to know if someone else can help me out find what it is, since it's really bugging me.

@MAKIO135
Copy link
Collaborator Author

MAKIO135 commented Aug 10, 2019 via email

@martinberlin
Copy link
Contributor

martinberlin commented Aug 12, 2019

The last one that is available on master branch. Wrong-> I just checked and it's like 2 weeks old, so I will pull again when home and test it again. Sorry my bad!

@martinberlin
Copy link
Contributor

Everything working as expected. Turns out apart of pulling latest master I had to make a npm install to get the latest vendor updates. Is working as expected now many thanks to all the team

@neauoire
Copy link
Member

I'm glad to hear :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants