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

Enhancement: separate keys to go to next folder and open a file #61

Open
desgua opened this issue Nov 15, 2020 · 0 comments
Open

Enhancement: separate keys to go to next folder and open a file #61

desgua opened this issue Nov 15, 2020 · 0 comments

Comments

@desgua
Copy link

desgua commented Nov 15, 2020

I'm sorry I'm not a developer, so I will just describe how I've done that:

      1) Add to config.h:

        // Go Open 
        #define KEY_OPENFILE ';'
        

      2) Change cf.c:

        -- add (after //Go to child directory around line 2307):

            // Open file 
            case KEY_OPENFILE:
                goOpen();
                break;

        -- add (after function "void goForward() around line 1966):

            /*
                Opens a file 
            */
            void goOpen()
            {
                if(len_preview == -1)
                {
                    // Open file
                    openFile(next_dir);
                    clearFlag = 1;
                }
            }

        -- delete the following lines from goForward function:
        
            else
            {
                // Open file
                openFile(next_dir);
                clearFlag = 1;
            }

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

No branches or pull requests

1 participant