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

Support Paste operation in fields #6

Closed
renjithn opened this issue Oct 12, 2017 · 6 comments
Closed

Support Paste operation in fields #6

renjithn opened this issue Oct 12, 2017 · 6 comments
Assignees

Comments

@renjithn
Copy link

Environment - macOS, Is this currently supported? Links, Location Ids, Tags etc need to typed in, can't copy + paste.

Thanks for building this cool utility

@ahmadudin
Copy link
Owner

Actually, electron usage on macOS requires to manually set copy/paste keybindings. However, there is no macOS here so i am not aware of this issue, thanks for pointing it out.

Can you please help me to try this tweak and tell me if it works on macOS?

on main.js:
add

const menu = require('electron')

and then change

app.on('ready', createWindow)

to

app.on('ready', () => {
  createWindow()
  if (process.platform === 'darwin') {
    var template = [{
      label: 'FromScratch',
      submenu: [{
        label: 'Quit',
        accelerator: 'CmdOrCtrl+Q',
        click: function() { app.quit(); }
      }]
    }, {
      label: 'Edit',
      submenu: [{
        label: 'Undo',
        accelerator: 'CmdOrCtrl+Z',
        selector: 'undo:'
      }, {
        label: 'Redo',
        accelerator: 'Shift+CmdOrCtrl+Z',
        selector: 'redo:'
      }, {
        type: 'separator'
      }, {
        label: 'Cut',
        accelerator: 'CmdOrCtrl+X',
        selector: 'cut:'
      }, {
        label: 'Copy',
        accelerator: 'CmdOrCtrl+C',
        selector: 'copy:'
      }, {
        label: 'Paste',
        accelerator: 'CmdOrCtrl+V',
        selector: 'paste:'
      }, {
        label: 'Select All',
        accelerator: 'CmdOrCtrl+A',
        selector: 'selectAll:'
      }]
    }];
    var osxMenu = menu.buildFromTemplate(template);
    menu.setApplicationMenu(osxMenu);
  }
})

@ahmadudin ahmadudin self-assigned this Oct 12, 2017
@renjithn
Copy link
Author

Thanks. Works like charm 👍 . Just a small edit;

need to access menu as 'electron.Menu' from here

I've seen some other bugs with macOS which i'l report later. For now we are good.

@ahmadudin
Copy link
Owner

ahmadudin commented Oct 12, 2017

Great!, thank you. Can't wait for your report.

@renjithn
Copy link
Author

renjithn commented Oct 12, 2017

Couple of quick spots;

  • Spaces within a comment sentence trimmed out (have a different parser function may be?)
  • 'interact with followed user' (when used with "Follow user followers") with doesn't seem to work properly ( Error: File "quickstart.py", line 7 session.set_user_interact(amount=, random=True, percentage=) ^ SyntaxError: invalid syntax)

@ahmadudin
Copy link
Owner

Yes, i haven't made parser for comments yet. The error on interact, did you fill the 'interact amount' field with non-number character? I forgot to make it only receive number input.

@ahmadudin
Copy link
Owner

Those bugs have been fixed, please let me know if you found another bug.

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