Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Added a Zen mode#35

Merged
Menci merged 1 commit intoMoeditor:masterfrom
Wamadahama:master
Jul 28, 2016
Merged

Added a Zen mode#35
Menci merged 1 commit intoMoeditor:masterfrom
Wamadahama:master

Conversation

@Wamadahama
Copy link
Contributor

Added a Zen Mode toggle, as requested Issue 34

The editor looks amazing. It would be great if I could have the raw-markdown part in the middle of the screen, with nothing beside it. No preview

I made the following changes

  • Added CSS for toggling between Zen mode and not Zen
  • Added a zen button at the bottom
  • Added moe-zen.js which handles the toggle code

@Wamadahama
Copy link
Contributor Author

Here is a gif of zen mode

@Menci Menci mentioned this pull request Jul 28, 2016
@Menci
Copy link
Member

Menci commented Jul 28, 2016

Good job!

@Menci Menci merged commit 3f3234c into Moeditor:master Jul 28, 2016
@Menci
Copy link
Member

Menci commented Jul 28, 2016

Now I am having trouble pulling the merge. The local code was modified and not commited recently. And the git output is

Menci@Menci-Laptop:~/Projects/Moeditor$ git pull
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
From github.com:Moeditor/Moeditor
   44453c5..3f3234c  master     -> origin/master
Updating 44453c5..3f3234c
error: Your local changes to the following files would be overwritten by merge:
    browser/index.html
    browser/moe-style.css
Please, commit your changes or stash them before you can merge.
Aborting

What should I do?

@tmr232
Copy link
Contributor

tmr232 commented Jul 28, 2016

# Create a new branch for your local changes
git checkout -b my-new-branch

# Commit the changes
git commit -am "My cool changes"

# Return to the master branch and pull
git checkout master
git pull

# If your changes are still relevant, merge them into master
git merge my-new-branch

You can also try and use git stash, but I find it easier this way.
Committing your changes directly to master is also a possibility, but it might result in ugly history.

@Menci
Copy link
Member

Menci commented Jul 28, 2016

Thanks, I'll try it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants