GithubHelp home page GithubHelp logo

davidegiacometti / redmine_shortcuts Goto Github PK

View Code? Open in Web Editor NEW
28.0 7.0 10.0 56 KB

Simple Redmine plugin that provides keyboard shortcuts

Home Page: https://www.redmine.org/plugins/redmine_shortcuts

License: MIT License

HTML 26.81% JavaScript 56.47% Ruby 9.48% CSS 7.24%
redmine redmine-plugin redmine-shortcuts redmine-hotkeys keyboard-shortcuts ruby

redmine_shortcuts's People

Contributors

davidegiacometti avatar kporras07 avatar pkonopelko avatar tofi86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_shortcuts's Issues

Feature Request: Let Admin enable/disable each shortcut individually

I really like your plugin, but there are some shortcuts that make me don't want to use it at the moment, like copy and delete....

Could you implement a plugin configuration so that the administrator can enable/disable each shortcut globally?

A simple settings page with the shortcut and checkboxes would suffice (of course, those settings must then be saved and read, and the javascript must check it and the help dialog should show only the enabled shortcuts).

Ctrl+C triggers "Ticket copy"

Hi,

thanks for the rgeat plugin.

I have a bug report: When pressing Ctrl+c to copy a text string from a page, the "Ticket copy" action get's triggered.

This should be prevented.

Thanks,
Tobias

Polish localization

In order to give some input and thank you for your work done on #8, I will add a PR with Polish localization in a moment

QuestionMark integration proposal

Hi,
I've just started using this plugin and I really like it. I would like to propose a improvement and would like to know if this is something you'd be interested.

I would like that if user presses the "?" key, we get the help (pretty much what happens on Github out of any textarea). Would you be interested in adding integration with https://github.com/impressivewebs/QuestionMark.js to do this? If you agree, I could start working on this and submit a PR.

[feature] "Code" shortcut

Hello @davidegiacometti,
Thank you for developing this plugin, I really like it and found it very useful!

The only thing I miss is a "Code" Screenshot 2020-12-02 at 3 22 31 PM shortcut. Would it be possible to add it as e.g. Ctrl/Command+@ a.k.a. Ctrl/Command+Shift+2?

Thanks,
Piotr

Problem at login page

On the Redmine authorization page, the field of remembered logins "jumps" this happens 10 times (similar visual error behavior is observed only in FireFox and Safari).
Perhaps this is due to the parallel installation of the plugin Shortcuts and PlantUml, but I'm not sure.
Our engineer suggested such a solution, it's work:
--- redmine_shortcuts/assets/javascripts/view_layouts_base_body_bottom_questionmark.js 2021-06-03 21:08:20.171967086 +0000
+++ view_layouts_base_body_bottom_questionmark.js 2021-06-03 21:09:24.074637694 +0000
@@ -3,7 +3,9 @@
$questionMarkModal = $('

')
$questionMarkModalRoot.append($questionMarkModal);
$questionMarkModal.append('<iframe width="500px" height="500px" src="' + window.location.origin + '/redmine_shortcuts/help"></iframe>');
-$('body').append($questionMarkModalRoot);
+if ($('.controller-welcome').length) {
+$('body').append($questionMarkModalRoot);
+}
$(document).on('keypress', function(e) {
e = e || window.event;
var charCode = e.keyCode || e.which;

Off by one issue in function styleSelectedText

selectionEnd was being set 1 greater than expected for ctrl-p, so you would end up with something like below when you started typing.

<pre>
asdf</pre>

The code should use prepend.length when calculating selectionEnd

--- view_layouts_base_body_bottom_textile.js.orig       2021-11-15 13:50:15.822980038 -0500
+++ view_layouts_base_body_bottom_textile.js    2021-11-15 13:50:38.928515973 -0500
@@ -11,13 +11,13 @@
         textarea.val($content);
         textarea.focus();
         textarea.prop('selectionStart', $start - prepend.length);
-        textarea.prop('selectionEnd', $end - append.length);
+        textarea.prop('selectionEnd', $end - prepend.length);
     } else {
         $content = $content.slice(0, $start) + prepend + $content.slice($start, $end) + append + $content.slice($end, $content.length);
         textarea.val($content);
         textarea.focus();
         textarea.prop('selectionStart', $start + prepend.length);
-        textarea.prop('selectionEnd', $end + append.length);
+        textarea.prop('selectionEnd', $end + prepend.length);
     }
 }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.