Giter Site home page Giter Site logo

Get link to note about nixnote2 HOT 16 CLOSED

robert7 avatar robert7 commented on July 20, 2024
Get link to note

from nixnote2.

Comments (16)

MRC01 avatar MRC01 commented on July 20, 2024 1

OK, I'm looking into this, and adding a new hotkey for it.

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

Yes. I think its a good topic for your next pull request! :)

I almost always only using one window, so it is no problem to me, but I agree it would be improvement (the note linking itself i'm using often - hotkey would be nice).

from nixnote2.

rodelrod avatar rodelrod commented on July 20, 2024

Has this been fixed since? I can do Ctrl-Shift-k do get the note link from any window.

from nixnote2.

MRC01 avatar MRC01 commented on July 20, 2024

from nixnote2.

rodelrod avatar rodelrod commented on July 20, 2024

I found out about it right-clicking on the note's body. Here's a screenshot (on version 2.1.0-beta-3-67ed083):
tooltip_024

from nixnote2.

MRC01 avatar MRC01 commented on July 20, 2024

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

@MRC01
its Edit_Copy_Note_Url Ctrl+Shift+K // Copy the current note URL to the clipboard
I added this now as default (in 2.1.2-b).

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

@MRC01 pls recheck if it works as expected, so we can eventually close this.
Btw the function was actually there from beginning, I just didn't know myself 😄

from nixnote2.

MRC01 avatar MRC01 commented on July 20, 2024

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

@MRC01
I guess you made some typo in the "shortcuts.txt" or something similar.
First recheck in log, that correct "shortcuts.txt" is loaded.
Like this:
screen_20181211_02

Then you could compare the files with default version in development branch: https://github.com/robert7/nixnote2/blob/develop/shortcuts.txt

This is the commit: 30459db

As alternative you can try AppImage build from development version:
https://github.com/robert7/nixnote2/releases/download/continuous-develop/NixNote2-x86_64.AppImage

There is also PPA for the development version: https://code.launchpad.net/~robert7/+recipe/nixnote2-develop (but you should not combine PPA for stable & development)

I will merge the changes to "stable" version soon.

from nixnote2.

MRC01 avatar MRC01 commented on July 20, 2024

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

@MRC01 with the trace level logging (e.g. ./appdir/usr/bin/nixnote2 --logLevel=0 )
you can now see in the log which key was set to what
you need to use the last version "2.1.2-d"

then the terminal output looks like

DEBUG 2018-12-11 18:01:51.007 src/gui/shortcutkeys.cpp:48 Loading "/d/dev/nixnote2/appdir/usr/share/nixnote2/shortcuts.txt"
TRACE 2018-12-11 18:01:51.008 src/gui/shortcutkeys.cpp:116 Removing by action "file_note_add"
TRACE 2018-12-11 18:01:51.008 src/gui/shortcutkeys.cpp:100 Setting "file_note_add" to "ctrl+n"
TRACE 2018-12-11 18:01:51.008 src/gui/shortcutkeys.cpp:116 Removing by action "file_note_reindex"
TRACE 2018-12-11 18:01:51.008 src/gui/shortcutkeys.cpp:116 Removing by action "file_note_modify_tags"
TRACE 2018-12-11 18:01:51.008 src/gui/shortcutkeys.cpp:116 Removing by action "file_note_delete"
TRACE 2018-12-11 18:01:51.008 src/gui/shortcutkeys.cpp:100 Setting "file_note_delete" to "ctrl+shift+d"
TRACE 2018-12-11 18:01:51.008 src/gui/shortcutkeys.cpp:116 Removing by action "file_note_restore"
..........

DEBUG 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:39 About to load user shortcuts from "/home/robert7/.nixnote/shortcuts.txt"
DEBUG 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:48 Loading "/home/robert7/.nixnote/shortcuts.txt"
TRACE 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:116 Removing by action "edit_html_simplify"
TRACE 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:107 Removing by shortcut "ctrl+space"
TRACE 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:100 Setting "edit_html_simplify" to "ctrl+space"
TRACE 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:116 Removing by action "edit_insert_hyperlink"
TRACE 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:107 Removing by shortcut "ctrl+k"
TRACE 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:100 Setting "edit_insert_hyperlink" to "ctrl+k"
TRACE 2018-12-11 18:01:51.018 src/gui/shortcutkeys.cpp:116 Removing by action "edit_insert_todo"
DEBUG 2018-12-11 18:01:51.044 src/global.cpp:923 Loading theme "Default"

then the key is TRACE 2018-12-11 18:01:51.014 src/gui/shortcutkeys.cpp:100 Setting "edit_copy_note_url" to "ctrl+shift+k"

note that in case you want to override the key, you don't need to copy the whole file shortcuts.txt to ~/.nixnote - just the lines you want to change

further, in case there is syntactic error, this will be ignored (as the parsing of the file is quite lame); but should work if you don't have any syntactic errors 😄

from nixnote2.

MRC01 avatar MRC01 commented on July 20, 2024

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

OK. With the last version ""2.1.2-d" the "Edit_Copy_Note_Url Ctrl+Shift+K" is already set as default... so you don't even need the customized shortcuts file

from nixnote2.

MRC01 avatar MRC01 commented on July 20, 2024

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

One remaining bug is that Nixnote occasionally crashes with a seg fault
saying something about a timer thread

ok. doesn't happen to me. if you can pinpoint then describe it as new issue

yes. there are some issues open from you, i think.. i plan to improve the sorting

from nixnote2.

Related Issues (20)

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.