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

Needs config file for assigning custom key combos #1

Open
baogorek opened this issue Aug 16, 2019 · 6 comments
Open

Needs config file for assigning custom key combos #1

baogorek opened this issue Aug 16, 2019 · 6 comments

Comments

@baogorek
Copy link
Owner

Called .scrollrc, perhaps?

Just had the idea that there could be a calibration function where the user presses each key named in the file to ensure the right key code is being used.

Also, this idea could be extended so that there's actually an interactive session that lets the user set the custom keys. It could even be part of package onboarding.

@prerit912
Copy link
Collaborator

Ben, saw your video. If you guys need some extra hand I can assist.

Fill me up with the details on this one. I can see these are currently hard coded. Are you looking for something like this ---


  • Scroll up | W | <- Press Any Key --- (User Presses Up arrow)


  • Scroll up | ↑ | <- New Key Assigned

@baogorek
Copy link
Owner Author

baogorek commented Dec 7, 2019

Hi @prerit912 , that's correct. We'd like to offer a way to override the default keybindings, perhaps with a config file named .datascroller. I don't know much about handling user configuration, so help would definitely be appreciated in that space.

There's a binary that comes with datascroller which is getkey. Run that, tap 2 keys in sequence and you'll get the two keycodes. So far the basic keys have been the same on PC and Mac, but John and I ran into a little trouble when we started trying Command combinations on the Mac. Just something to be aware of.

@prerit912
Copy link
Collaborator

Perfect, I'll start researching into this.

@baogorek
Copy link
Owner Author

baogorek commented Dec 15, 2019

FYI, @prerit912, @kjmerf is joining the project and is interested in adding a database connection to the initialization file. Just wanted to sync with you to see if you've had any thoughts on that file format.

Update: Just tried the environment variable startup options described here and was able to get a python file to run prior to starting either a python or ipython session.

@prerit912
Copy link
Collaborator

prerit912 commented Dec 16, 2019

@kjmerf Hello!!
@baogorek Yes, this looks a tad similar to .Rprofile file in R that can be set by user. We just need to be careful not to include computationally "heavy" code at the startup.

@baogorek FYI, I am in India for few months, will be coming back somewhere around February. And I have some great news, I got engaged last week. :D

@baogorek
Copy link
Owner Author

Congrats, @prerit912!!!

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

2 participants