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

How to stop auto commit and push on saving? Even I disabled all features #22

Open
hh23485 opened this issue Nov 3, 2022 · 6 comments
Open

Comments

@hh23485
Copy link

hh23485 commented Nov 3, 2022

Each time when I save by (ctrl + s), it triggers a commit and push. even I already disabled all auto actions.
Meanwhile, it also tries to commit and push on a graph vault without git.

How to stop this in my graph vault without git? I can't just simply disable the plugin, due to another graph vault needs it.

Thanks

@hh23485
Copy link
Author

hh23485 commented Nov 9, 2022

Any idea about this problem? @haydenull , does the switch about auto abilities not working?

@hh23485
Copy link
Author

hh23485 commented Nov 10, 2022

even commit and try to push when conflict happened...

@qcts33
Copy link

qcts33 commented Nov 18, 2022

I'm having the same issue. Hoping to have a way to disable the auto push after ctrl+s.

@ClarkGuilty
Copy link

I have the same issue.
In principle one could fork the repository, change the line from 'mod+s' to something more sensible (like mod+alt+s) and recompile(?). But in the long run it should be easier to just change the defaults of the repo or adding the possibility of changing the shortcut inside logseq.

@ClarkGuilty
Copy link

ClarkGuilty commented Mar 7, 2023

So, turns out we can change rather easily the git commit && git push shortcut:

  1. Go to where the plugin is installed (if you are using Mac or Linux then it probably is in $HOME/.logseq/plugins/logseq-git)
  2. In dist/assets there should be a file named something similar to index.5fb3be5c.js (the 5fb3be5c might change, but it always should start with "index." and end with "js". Open that file.
  3. At the bottom of the file change binding:"mod+s",mode:"global" to the shortcut you want, i.e: binding:"mod+p",mode:"global".
  4. (optional) remove any default logseq shortcut to that combination (Maybe only necessary if logseq complains).

@k2s
Copy link
Contributor

k2s commented Aug 9, 2023

Each time when I save by (ctrl + s), it triggers a commit and push. even I already disabled all auto actions. Meanwhile, it also tries to commit and push on a graph vault without git.

How to stop this in my graph vault without git? I can't just simply disable the plugin, due to another graph vault needs it.

Thanks

this is addressed in #39 :

  • the plugin is installed globally
  • you have to enable GIT actions per graph
    • this is stored in graphs config
    • it is possible to disable it later too
    • if enabled local git repository will be created
  • the Ctrl+S is now mapped to new Sync method
    • it will commit only if plugin is enabled on this graph
    • it will push only if remote repository is set as upstream of working branch (see I can't push #28 (comment) for details)

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

5 participants
@k2s @qcts33 @ClarkGuilty @hh23485 and others