Giter VIP home page Giter VIP logo

obsidian-editor-shortcuts's Introduction

Code Editor Shortcuts

Note

Due to personal circumstances, active development is paused on this project until approximately mid-2024. Please continue to use the existing features, submit issues and contribute pull requests, but expect a delayed response.

Feature requests won't be individually acknowledged but will still be tracked on the project board as before.

This Obsidian plugin adds keyboard shortcuts (hotkeys) commonly found in code editors such as Visual Studio Code or Sublime Text.

Command Shortcut *
Insert line below Ctrl + Enter
Insert line above Ctrl + Shift + Enter
Delete line Ctrl + Shift + K
Duplicate line Ctrl + Shift + D
Copy line up Alt + Shift + Up
Copy line down Alt + Shift + Down
Join line below to current line Ctrl + J
Select line (repeat to keep expanding selection) Ctrl + L
Add cursors to selection ends Alt + Shift + I
Select word or next occurrence of selection Ctrl + D
Select all occurrences of selection Ctrl + Shift + L
Move cursor up Not set
Move cursor down Not set
Move cursor left Not set
Move cursor right Not set
Go to previous word Not set
Go to next word Not set
Go to start of line Not set
Go to end of line Not set
Go to previous line Not set
Go to next line Not set
Go to first line Not set
Go to last line Not set
Go to line number Not set
Delete to start of line Not set
Delete to end of line Not set
Transform selection to uppercase Not set
Transform selection to lowercase Not set
Transform selection to title case Not set
Toggle case of selection Not set
Expand selection to brackets Not set
Expand selection to quotes Not set
Expand selection to quotes or brackets Not set
Insert cursor above Not set
Insert cursor below Not set
Go to next heading Not set
Go to previous heading Not set
Toggle line numbers Not set
Indent using tabs Not set
Indent using spaces Not set
Undo Not set
Redo Not set

* On macOS, replace Ctrl with Cmd and Alt with Opt

Important notes

  • Ctrl + Enter for 'Insert line below' may conflict with the default shortcut for Open link under cursor in new tab; changing/removing one of the bindings is recommended.
  • Ctrl + L for 'Select line' may conflict with the default shortcut for Toggle checkbox status; changing/removing one of the bindings is recommended.
  • Ctrl + D for 'Select word or next occurrence of selection' will behave differently depending on how the initial selection was made. If it was also done via Ctrl + D, the command will only look for the entire word in subsequent matches. However, if the selection was done by hand, it will search within words as well.
  • 'Toggle case of selection' will cycle between uppercase, lowercase and title case.
  • If you are looking for the Alt + Up and Alt + Down shortcuts from VS Code, you can assign those hotkeys to Obsidian's built in actions "Move line up" and "Move line down".

Multiple Cursors

Most* of these shortcuts work with multiple cursors. However, undo and redo will not work intuitively in Live Preview – actions will be handled individually for each cursor, rather than grouped together. Work is underway to incrementally migrate them to the newer Obsidian editor API so they are grouped, and has been completed for the following:

  • Insert line above
  • Insert line below
  • Delete line

As a workaround, you can also switch back to the legacy editor in Settings as all actions will be grouped in that case.

* These shortcuts currently do not support multiple cursors:

  • Expand selection to quotes or brackets
  • Go to next/previous heading

Installing the plugin

Refer to the official installation instructions for third-party plugins here and search for the plugin Code Editor Shortcuts.

Configuring settings

Go to Settings → Hotkeys to customise the keyboard shortcut for each action.

The following behaviour can be configured via the settings tab for this plugin:

Setting Description
Auto insert list prefix Automatically insert list prefix when inserting a line above or below

Contributing

Contributions and suggestions are welcome – feel free to open an issue or raise a pull request.

To get started:

  • Switch to the specified Node version: nvm use
  • Install dependencies: yarn install
  • Run the extension: yarn start
  • Run tests: yarn test (use --watch for watch mode)

Support

This plugin is completely free to use, but if you'd like to say thanks, consider buying me a coffee! 😄

ko-fi

obsidian-editor-shortcuts's People

Contributors

akirataguchi115 avatar brandonaut avatar calvin-mclain avatar chrisgrieser avatar dmytro-shulha avatar hdykokd avatar kiddten avatar matthewalner avatar mk12 avatar niconekoru avatar rohanm avatar timhor 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

obsidian-editor-shortcuts's Issues

[Feature Requests] New Expand and Transform commands

Hi @timhor! Thanks so much for creating this plugin, I find myself using it all the time!

Wondering if you would be open to adding a few commands to complement the existing set:

  1. Add a new "Expand selection to..." command that expands the selection to any markdown symbols so it could be using to quickly select the text between bold, italics, strikethrough, etc..
  2. Building off a 1, it would be great if this could be enhanced to also select the markup symbols if you hit the command again. This way you could quickly replace or delete any marked up text by hitting at most two hotkeys.
  3. A final suggestion, similar to your "Transform selection..." commands, would be to add commands for Transform the selection/word to styled text without even having to select it first e.g. bold, italic, strikethrough, highlight, etc.
    1. Ideally, executing the command again toggles the styling e.g. toggles bold.

Thanks again for sharing this plugin!

Remove Delete line?

Is "delete line" the same as "delete paragraph" built in obsidian?
Side-Note: the new editor has ctrl-shift-k already bind to delete line.

[FR] Create a number/bullet when adding lines in a list

So I've put something together in Keyboard Maestro that allows me to add new lines above/below, which actually adds new numbered entry (as it simulates the [return] keystroke) when in a numbered list. Would you consider setting up the new line shortcuts so that they would do the same (or at least providing an option for that)? Currently they add a blank line, which is not that handy when what you're trying to achieve is to get a new list entry midway through.

Some hotkeys don't work on mac

I'm on macOS, Obsidian v0.14.7. Some default hotkeys don't work, like cmd + D and cmd + enter. However I can execute these commands from the command palette. Also, if I bind them to other hotkeys, like cmd + Q and ctrl + shift + Enter, then they will work.

Also, I use Advanced Cursors before, which also has a feature to select word/ next occurrence. I used to bind this command to cmd + D as well, and it worked fine.

[Feature Request] Custom selection transform

Hi!

I was looking for a way to transform selected text to other formats. My use case was that I wrote a list comma separated and not markdown formatted, and I wanted to transform it via a command.

From:

apple, banana

To:

- apple
- banana

I've seen this plugin supports Transform selection to uppercase which is similar, only the logic is different.

I was wondering if something like Transform selection to uppercase with custom js code could be supported or if you know any plugins that have this functionality.

Thank you for the help.

Doesn't increase cursors when we use not English (Select word or next occurrence of selection)

Thank you for the great plugin! Especially, Select word or next occurrence of selection is very exciting for me :)

I found an unexpected behavior when I used Select word or next occurrence of selection other than English.

Reproduction procedure

  1. Input words other than English (Ex: Japanese, Chinese)
  2. Exec Select word or next occurrence of selection

2022-06-07

ああ ああ ああ

It succeeded in selecting the current word but didn't increase cursors.

Expected

2022-06-07

Note

I read your code and found it to satisfy my requirements by changing it as follows.

https://github.com/timhor/obsidian-editor-shortcuts/blob/master/src/actions.ts#L175

    const nextMatch = findNextMatchPosition({
      editor,
      latestMatchPos,
      searchText,
-     searchWithinWords: isManualSelection,
+     searchWithinWords: true,
      documentContent: editor.getValue(),
    });

But I believe it is contrary to your intent. It would be great to solve my problems if you know better solutions :)

Thank you!!

[Feature Request] move cursor up and down

At first , thanks very much for this plugin, it's a good way, and the only way AFAIK to implement emacs keybindings in obsidian on windows and linux OS.
I notice that there are move cursor right / left commands and go to previous line /next line commands, but emacs need move cursor up and down commands, because go to previous line is not useful on the lines which are wraped, I need move up as i see,not the previous line as the editor deal with.

Select/move/delete by sentence

Something missing from Obsidian at present is the ability to perform operations on sentences, rather than lines.

You can do this in Vim mode, but that has other drawbacks. I can see, sort of, how sentences might be defined in pseudocode

  • (search backwards for "[\?\!\.] " ;
  • search forwards for the same pattern or the end of the text;
  • select everything in between)

but I don't know how to put that into typescript or indeed any language other than Python.

Once a sentence is defined as a unit of movement, you can put in the commands that prose writers need:

  • move to next/previous sentence
  • delete from cursor to end/beginning of sentence (I use this all the time, when I get half way through a sentence and realis it has gone wrong)
  • cut and even sometimes copy sentence.

All of these operations are really useful if you're writing continuous prose. I can have a try myself, but I can't guarantee success.

Can't update to 1.13.1

Thanks for your plugin. But I can't update to version 1.13.1, could you please help with this issue?

Feature request: move current line up/down

Shortcut that moves current line up and down (Alt + / is the VS Code analog).

Ideally, this should also properly skip indented lists (as is behavior in VS Code), for example:

* A
* B
    * C
 * D

moving B down one line should move it before D:

* A
    * C
 * B
 * D

Navigation Shortcuts for Lists

First of all, thx for this great plugin. Although i don't use obsidian for any coding purposes whatsoever, i really love a few shortcuts for navigating through open files (e.g. jump to next heading, or jump to next line, select line)

It would be really great if a few Shortcuts for navigating lists would exist too.
For example:

  • jump up / down to the next list entry in the same level of hierarchy, therefore bypassing sublevel entries (preferably with the cursor not jumping to another hierarchy level once it reached the end of all current level list entries)
  • Shortcuts to jump the to next top-level or sub-level bullet, therefore quickly navigating the bullet hierarchy (especially upwards)

Thx again for the great work :)

Expand selection to word/phrase/etc?

I commonly use expanding selection in both Emacs and Intellij, for example, something like this (with the cursor and selection denoted by |):

testRegisteredDomainProcessor(buildEvent("goog|leapis.com"), "googleapis.com", null, "googleapis.com", null);
*expand*
testRegisteredDomainProcessor(buildEvent("|googleapis|.com"), "googleapis.com", null, "googleapis.com", null);
*expand*
testRegisteredDomainProcessor(buildEvent("|googleapis.com|"), "googleapis.com", null, "googleapis.com", null);
*expand*
testRegisteredDomainProcessor(buildEvent(|"googleapis.com"|), "googleapis.com", null, "googleapis.com", null);
*expand*
testRegisteredDomainProcessor(|buildEvent("googleapis.com")|, "googleapis.com", null, "googleapis.com", null);
*expand*
|testRegisteredDomainProcessor(buildEvent("googleapis.com"), "googleapis.com", null, "googleapis.com", null);|

It would be great if this worked for text also, for example, just expanding to the current word would be super helpful. Something like:

Hello. This "is so|me text. Yep."
Hello. This "is |some| text. Yep."
Hello. This "|is some text.| Yep."
Hello. This "|is some text. Yep.|"
Hello. This |"is some text. Yep."|
Hello. |This "is some text. Yep."|
|Hello. This "is some text. Yep."|

I picked the unit that made the most sense to me (word -> sentence -> quotes -> outside quotes -> enclosing sentence -> entire text), but even just having "expand to word" would be very useful.

Thanks for this plugin!

Can't contribute to this plugin: git clone dev version doesn't work

Hello! First of all, thank you for this great plugin. Using these functions in my vimrc provides an even further vim-like writing experience.

I'm currently trying to extend this plugin's functionality by creating two functions: deletePrevChar and deleteNextChar.

deletePrevChar would simply delete the character to the left of the cursor (equivalent to the keyboard key Backspace). <ctrl-h> is mapped as backspace in Insert mode in vim. I tried remapping in .obsidian.vimrc but it doesn't work due to CodeMirror limitation, hence I'm trying to achieve the same result with this seemingly unnecessary function. By creating these functions I could do the following in my .obsidian.vimrc:

exmap deletePrevChar obcommand obsidian-editor-shortcuts:deletePrevChar
imap <C-h> :deletePrevChar

(deleteNextChar is just for the symmetry (I won't personally use it)).

The problem is that I can't develop this plugin.

Steps to reproduce:

  1. Uninstall the release version in Obsidian
  2. cd /home/user/Obsidian/Obsidian-vault/.obsidian/plugins
  3. Make sure the above dir doesn't contain the dir obsidian-editor-shortcuts
  4. git clone https://github.com/timhor/obsidian-editor-shortcuts.git
  5. cd obsidian-editor-shortcuts
  6. Switch to the specified Node version: nvm use
  7. Install dependencies: yarn install
  8. Run the extension: yarn start
  9. Restart Obsidian
  10. Enable the plugin in Obsidian
  11. Trigger a shortcut
  12. Open console to see the following:
Command failed to execute:  obsidian-editor-shortcuts:goToPrevChar
app.js:1 TypeError: cm.operation is not a function
    at withMultipleSelections (eval at <anonymous> (app.js:1), <anonymous>:108:8)
    at Object.editorCallback (eval at <anonymous> (app.js:1), <anonymous>:587:35)
    at Object.e.mobileOnly.xb.isMobile.e.checkCallback (app.js:1)
    at Mz (app.js:1)
    at e.executeCommandById (app.js:1)
    at e.onTrigger (app.js:1)
    at e.handleKey (app.js:1)
    at t.e.handleKey (app.js:1)
    at t.handleKey (app.js:1)
    at e.onKeyEvent (app.js:1)

screenshot-2022-04-24-10-33-37

Any idea as to why Obsidian wouldn't recognize the development version? The file size of main.js emitted from yarn run is also different from the released version.

Any help is much appreciated. Thank you!

Failed to install

I'm trying to install the plugin in the standard way (browse community plugins). When I click install, it gives me an error message: "Failed to install plugin"

The console spits out a not-very-informative error as well

app.js:1 Error: Request failed, status 404
    at new t (app.js:1:717762)
    at Jw (app.js:1:717954)
    at app.js:1:718631
    at app.js:1:235836
    at Object.next (app.js:1:235941)
    at a (app.js:1:234680)

I'm running Obsidian Version 1.1.16 on macOS Monterey 12.3.1.

[Feature Requests] Additional key binding suggestions

As a Sublime Text user, here are some other key binding suggestions:

Code Editor Shortcut: Expand selection to brackets
Ctrl + Shift + M
Code Editor Shortcut: Insert cursor above
Ctrl + Alt + (up arrow)
Code Editor Shortcut: Insert cursor below
Ctrl + Alt + (down arrow)

Command palette: Open command palette
Ctrl + Shift + P
Quick switcher: Open quick switcher
Ctrl + P

This one isn't related to Sublime Text but just something I added personally:

Code Editor Shortcut: Expand selection to quotes
Ctrl + '

inserting a line after frontmatter fence

If the cursor is on a boundary of frontmatter and I insert a line, I get a line with a -. But this isn't a list item--it's just a fence.

--- %%cursor could be here%%
tags:
updated: '2023-01-09 11:06-08:00'
created: '2023-01-09 11:06-08:00'
--- %%or cursor could be here%%
- %%inserting a line incorrectly adds a `-`%%

FR: Join Lines removing bullets points

say I want to merge two lines:

- one point
- second point

here, the result would be:

- one point- second point

A much more elegant result, however, would be to remove the preceding -:

- one point second point

[Feature Request] New Command: Select Table

Hello @timhor !!!!!!

Before talking about my FR, I wanna say thank you for creating this amazing plugin. I use it a lot and everyday :)

My FR

My FR is simple to explain: would be amazing if we have a new command to select a markdown table.

It’s the same meaning of Select Word Applied to markdown tables: if the caret cursor is inside a table,it will select the whole table when the new command is pressed

Why Are you asking for this FR?

Let me explain: there is a new plugin in beta called Markdown Table Editor that lets you edit markdown tables inside Obsidian !

  • The starting point of the plugin is to have the table that will be edited selected before hitting the command.

That’s why I’m asking for this feature :)


Thanks for reading this!

Have a great day!!!!!!

Save All

Would it be possible to add a save all hotkey for edited files? Or something of the sort? I can't keep up with what I have edited and what I haven't currently.

[FR] more navigation shortcuts for emacs emulation

With this plugin I can go a little bit of the way towards emacs-like navigation (e.g. with the plugin I can map a shortcut to go to the start of a line and to go to the end of a line). It would be great if I could use it for other emacs shortcuts, for example by allowing the following to be mapped:

  • Go to start/end of current word (skipping to the next word when the cursor is not inside a word; i.e. what ctrl+left arrow and ctrl+right arrow do now)
  • Move cursor up/down by one line (i.e. what the up/down arrows do now)
  • Go to next/previous character (i.e. what the left/right arrows do now)
  • Go to start/end of note
  • Go to start/end of paragraph (skipping to the next paragraph when the cursor is not inside a paragraph, analogous to "go to start/end of current word")

Add convert to Title Case

Would it be possible to extend the case conversion routine to change the word to title case, as well as toggling between upper and lower case? It looks as if it should be simple enough.

Detecting if cursor is within a codeblock

I appreciate that you specify "Ctrl + Enter for 'Insert line below' may conflict with the default shortcut for Toggle checklist status; changing/removing one of the bindings is recommended."

In Obsidian, I'd love to be able to use Ctrl + Enter for "Insert line below" when I'm in a code block, but keep it for "Toggle checklist status" when I'm anywhere else.

Not sure if/how that is possible, though.

Markdown syntax not captured in "Select word or next occurrence"

Hello, thanks for developing this plugin first of all!
Version: v1.10.0

I tend to use the "Select word or next occurrence" feature often and found that there's a bug when attempting to select Markdown formatting artifacts in Live Preview & Source mode.

To reproduce:

### Test 1
### Test 2
### Test 3

Selecting just the ### and invoking "Select word or next occurrence" should select the next instance of ### into the selection, but it does nothing. I was also able to repro using lists as well, searching for - .

The bug might be in findNextMatchPosition @ https://github.com/timhor/obsidian-editor-shortcuts/blob/master/src/actions.ts#L210

Holding keybinding for 'Go to next/previous heading' doesn't work

I set my keybindings for 'Go to next/previous heading' to > and <, respectively, and also have vim mode enabled. I was hoping to hold down > to quickly scroll through my notes by heading, but after skipping to one heading when folded, it instead starts rapidly indenting the newly-jumped-to heading (which is a result of vim's >> keybinding). This appears to mean that this plugin doesn't handle repeat keys on at least these two commands (and maybe others).

Separately, is there a way to only jump to the next heading of the same level (e.g., if you're within the text of a h2 heading, and there is a h3 heading also within that h2 block but your cursor is not in the h3 block, jump past the h3 block to the next h2 heading)?

Inserting a line doesn't recognize checbox lists

In vanilla Obsidian, if the cursor is in a checkbox list and you insert a new line, it will create a new empty checkbox (- [ ] ).

However, this plugin will instead insert a regular list item bullet point (- )

Note that the inserted checkbox should always be empty, regardless of the status of the checkbox of the line the cursor is on. It should also recognize "alternate checkboxes", which are supported by most themes.

[Feature Request] New Command: Select Word (Not Select the Next Occurrence)

Hello @timhor !!!!

A brief introduction before talking about the FR :)

1️⃣ In version 1.0.7 we had the command Select Word that selected the word based on the caret cursor position.

2️⃣ In version 1.0.8 this command gains superpower which lets us select word and select the next occurrence as well :)

  • Which is an amazing feature !!!!!

My FR is about bring back the Select Word in a separated command

  • This way we can have the option two use both commands for different workflows :)

I know that look strange to have two commands like this. Let me show how Select Word can have multiple workflows when you combine with other plugins :)

My Workflow

ℹ️ I import a lot of content to Obsdian. Especially Book Highlights, Podcasts Transcriptions and Web Artciles

ℹ️ All my writing is created inside Obsidian. Even when I have to send a message, I write first in Obsdiamn than send to external sources.

ℹ️ Additionally, I use a lot of html tags to decorate my notes.

📸 Source Mode x Reading Mode
4B7AB918-2ECC-4912-A33F-038F4DDABF27

This way I use a lot of Line Selection, Paragraphs Selection and Word Selection to easily apply this decorations to my notes.

  • Using QuickAdd I can create a macro to apply these text decorations.

📸 This is my QuickAdd Macro
B3EBF8E1-02C7-48A1-975C-01C0FC71AD3F
48E65BAA-54D9-4EB9-990F-F79C132E2C3F

This Macro automatically Select the word at the caret cursor and then apply the decoration.

The beautiful thing here is that the command respects if something where already select

  • This is amazing because I can have one hotkey to deal with selected and NOT select words;

📽 2 Selected Words Selected

IMG_0578.MOV

Why I need a separated Command ?

The video below shows why I need a command to only Select one Word

📽 3x Michael Jordan

IMG_0579.MOV

In words: when I have two words select and I have the same words before and/or after the command Select Word and the Next Occurrence will apply the decoration to the next other matches

  • Which is perfect ! It exactly what the command should do :)

But when we have a workflow where we want to apply some type of rule (in my case html tags) only to the select text and avoid the next occcurance I can use the same command.
-The best scenario for this would be the old command that only selects one Michael Jordan :)

We can apply this same insight to many workflow in Obsidian, I decided to share this one because its easy to see :)


Thanks for reading this !!!!! I hope you like my suggestion 🙏 🙏 🙏

Sorry for the long text. My idea was to show to you that a isolated command is something really important :)

Let me know if you need more information !!!

Have a great day 🌞

Merge `Expand selection to quotes` and `Expand selection to Brackets` into one command

many code editor basically merge those two commands in an "smart expand" command that looks ahead and behind whichever the current scope is. I am a bit used to having both in one command, so it's kind of weird for me to use them as two commands here. And I assume it shouldn't be hard to implement, since the bracket command already considers multiple different types of brackets?

Feature Request: Quick Copy, Paste with Indention & Expand Selection

Hi, thanks for this useful plugins! I like the idea, it's simple but still useful. I use Sublime and I'd love to see the following commands added to Obsidian via this plugin as well.

  • Expand Selection to next match (Sublime Command:find_under_expand)
  • Paste & Indent (Sublime: paste_and_indent)
  • Expand to Brackets (Sublime: expand_selection to brackets)
  • Quick Copy & Quick Cut: without selection, using copy or cut will instead copy/cut the whole line (Sublime: copy_with_empty_selection, found in the preference section, not the keybindings section)

Add `vscode` to the description for easy searching

Installing this plugin for the several dozenth time on a new vault , had trouble remembering the name though.

What I Did

From within Obsidian, when Browsing Community Plugins, I tried searching for:

1. vscode

2. alt up (and variants/variations?)

  • Hoping to find it by the keyboard shortcut I wanted to use to copy a line up/down.

2. edit

  • Hoping to find "code editor" or something like that.
  • Lots of results, but I found you! ♥

What I think could be Better

  • Recommend adding vscode somewhere in the description that shows up in the screenshot.
  • I will/can/fork/whatever if you like, just busy at the moment and I knew I'd forget this.
  • So used to filing issues in daily work these seemed natural.
  • Sorry if annoying, and thank you for the extension 🙏

image

[Feature Request] `Select Word` command: Support for non-ASCII characters (e.g. á ã é í ó )

Hello again @timhor !!!!!!

My FR is to add support for non-ASCII characters to the command Select Word :)

When you select a word in a language like Portuguese or Finnish, we have this as result:

8F8539F5-736B-42FE-9FE9-0DD753085AD4
49BEB65A-65EB-4CF6-A7A3-A6568AB10A14

As you can see form the images, it’s only selecting the characters until the non-ASCII characters.

This is a list of non-ASCII characters for the Portuguese and Finnish language:

áàâãéèêíïóôõöúçÁÀÂÃÉÈÍÏÓÔÕÖÚÇ

My Background

Since I was born in 🇧🇷, Portuguese is my mother language. These type of characters are the used in every portuguese word as you can see above:

English Portuguese
Coffee Café
Sugar Açúcar
John João

The same behavior applied to 🇫🇮 and many countries :)


I hope you could add support for these characters 🙏 🙏 🙏 .

Thank you very much for reading this !!!

Have a great day 🌞

Selecting to beginning of line doesn't work

Selecting a line creates inconsistent behavior.

I set "Go to start of line" to ⌃← and "Go to end of line" to ⌃→ and this works properly.

However, when I try to select the words that I'm trying to move past by holding shift (⇧), the cursor jumps much farther in the text then where the line ends. For example, if I select ⇧⌃←, instead of going to the start of the line, the selection goes back through the doc to the first bullet point it reaches. Using ⇧⌃← on a bullet pointed line seems to have proper behavior.

Obsidian Version 1.1.9 on macOS Ventura 13.0.1 on a M2 Macbook AIr (2022). Code editor shortcuts v1.13.0

Feature Request Delete to Start of Line

Opposite of the Delete to End of Line command. I use the sentence Navigator plugin for this but it would be great to remove this and just keep code editor

[Feature Request] Vertical select

E.g. alt/option - command + up or down arrow to vertically insert cursors across multiple lines. Apologies if I overlooked something and this is already possible!

click with option

Hi there, thank you for the amazaing plugin. I'm wondering if you could add the function that when one holds down the mouse and drag and hold option at the same time, the cursor will choose the scope that the mouse chooses, just like what we can do in sublime.

Go to end of line / Go to start of line not working

I've assigned Command + Right Arrow to "Go to end of line" and Command + Left Arrow to "Go to start of line" on my Mac:

Screen Shot 2022-05-16 at 8 10 36 AM

This is having no effect, however. Plugin is installed and enabled, and working otherwise.

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.