ShaderEdittor Needs An Undo, And A Redo Button

in #utopian-io5 years ago

Repository:

https://github.com/markusfisch/ShaderEditor

Suggested on the project repository.

Components

My suggestion will require two buttons to be added at the top of the Editor's interface.

Proposal

There are some basic, or necessary features an app needs to have. Although, it doesn't mean every app out there must have every basic feature, but at least have the basic ones that are related, or needed to give better, or good user experience.

A few days ago, I had a lot of fun using ShaderEdittor. While using the app as an editor for my shaders code, there are some options I found missing, as these options are;

  • Ability to undo
  • Ability to redo the undone.

Effect of not having those features

Currently, while typing in the editor, and the user mistakenly deletes a line of their vital codes, the action can't be undone because there is no such key to undo the action. It'd be nice to have these two options implemented.
The two opinions should act similar to the undo, and redo we see on other apps. Here's a brief definition;

  • Undo: Erases the last change done to the codes. reverting it to an older state.

  • Redo: The opposite of undo is to redo. The redo command reverses the undo action.

One more request

Currently, the top of Editor's interface looks occupied as you can see from the image below.
Screenshot_20190414-050622.png

So, I was wondering if the available icons can be made smaller? So as to have space for Redo, and Undo option. But, if making the icons smaller isn't possible, then I suggest the removal of the Tab button.

I understand that the tab button helps the user to modify their codes for easy readability. But, I believe that the space bar on the user's keypad can also be used to create tabs. So, the Redo an undo option is more Important than the Tab option.

Mockups / Examples

The first image below shows the Tab button, and how occupied the options are. The second screenshot shows the replacement of the tab button with the suggested options.

hey1.png

How can this be done?

I have taken the time to find the sample code. And, I am glad to provide this awesome code by zeleven.


public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button redoBtn = (Button) findViewById(R.id.redo);
        Button undoBtn = (Button) findViewById(R.id.undo);
        EditText editText = (EditText) findViewById(R.id.edittext);
      
        // pass edittext object to TextViewUndoRedo class
        TextViewUndoRedo helper = new TextViewUndoRedo(edittext);
        
        // call the method from TextViewUndoRedo class
        redoBtn.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            helper.redo(); // perform redo
          }
        });
        undoBtn.setOnClickLisener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            helper.undo(); // perform undo
          }
        });
    }
}


The complete codes can be found Here.

Benefits of Undo & Redo button

I would love to generally state the overview importance of Redo and undo button over the Tab option.

  • If the Tab option isn't available, users will be able to create tabs will space keypad.
  • If the Redo, and undo option is missing, users who might have mistakenly cleared their codes would have to start typing all over again.

GitHub Account

Realrufans

Sort:  

Hello @rufans!
Thank you for contributing.
The contribution is written nicely and you have explained every section in good detail, well done for that!
I admit that undo and redo are features of some importantance to this application but we expect much better, unique and original feature suggestions from our contributors.
I know you have the ability to contribute consistently with excellent ideas, all you need to do is to be unique and original while contributing. Don't suggest the features which are seen in every other similar application, by doing this, you will get a better score and of course a better reputation within the utopian.

We are already looking for your next contribution.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @syedumair! Keep up the good work!

Hi @rufans!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hi, @rufans!

You just got a 1.72% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hey, @rufans!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.32
TRX 0.12
JST 0.034
BTC 64647.93
ETH 3160.25
USDT 1.00
SBD 4.09